"foo + unstaged changes" written to .env file #651
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ran into this with @knoflook, don't have a reproduction now. But we've seen that a chaos version ala
foo + unstaged changes
gets commited to the.env
as-is, so you haveRECIPE=foo + unstaged changes
written in the file and this obviously explodes instantly 😂I can have a look at this. Will try to make it to the kite flying hour this week
decentral1se referenced this issue2024-12-21 19:28:13 +00:00
I'm not totally sure what to do here. When writing
foo + unstaged changes
it indicates that a chaos version is currently deployed. Which would be important for coworkers. But maybe this is an information we should store on the server with a label instead?@p4u1 in coop-cloud/abra#454 I'm re-working
+ unstaged changes
to be+U
so this can be shown more compactly in overviews (re: decentral1se/cctuip#1 / #447).In general, I think it would be nice to show this fact in the label, that there are unstaged changes deployed (beyond just a regular chaos commit) and you'd better check out with your coworkers what is going on before touching the app (you will not know who tho until we coop-cloud/organising#467).
recipe.ChaosVersion()
does handle the inclusion of this marker for all code paths AFAICT.The problem is that when you try to deploy again and it reads the value from the
.env
, then it explodes because<hash>+U
is not something you cangit checkout
. We need to parse that part off when doing git ops?I'm gonna merge coop-cloud/abra#454 and run the integration test suite. I think after merging, this one can be picked up properly.
@p4u1 lemme know if you can pick this one up this week, otherwise, I can take a stab at it. Just this and #467 left to close off 🧨
Related: #662