"foo + unstaged changes" written to .env file #651
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 changesgets commited to the.envas-is, so you haveRECIPE=foo + unstaged changeswritten 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 changesit 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 changesto be+Uso 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>+Uis 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