[Bug] Deploying old app versions doesn't work if compose-files don't match with latest main commit #617
Closed
opened 2024-06-14 14:38:12 +00:00 by simon
·
3 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#617
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Issue
Deploying old app versions doesn't work if compose-files don't match with latest main commit.
Steps to reproduce
With: https://git.coopcloud.tech/coop-cloud/nextcloud
app deploy -n --debug --force --no-converge-checks <domain> 5.0.3+27.0.1-fpmFATA[0001] stat /home/sth/.abra/recipes/nextcloud/compose.apps.yml: no such file or directoryWhat's happening?
is beeing executed before this happens:
Afterwards this is executed:
Possible solution?
Don't call GetComposeFiles before EnsureVersion
@simon I'm not sure I understand what you're goal was here. You make a local commit and then don't use
--chaosbut pass a version. Shouldn'tabracheck out5.0.3+27.0.1-fpmand the files should all be there? If youreCOMPOSE_FILES=...has a file that doesn't exist in the old version then I expect this error? Apologies, I think I'm missing something here.Also, a note on process for using the "Critical fixes" project, please see R010: "The process for adding a ticket to the board requires getting confirmation from at least one other member of the federation." This is usually done in the Fedi/Tech chats on Matrix.
@decentral1se My goal was to redeploy a nextcloud-deployment with a different configuration but the same version as previously deployed. But at the same time I was working on the nextcloud recipe due to a completely unrelated issue, including local changes I had to commit to provide a clean working environment for abra.
And you're right,
abrashould check out5.0.3+27.0.1-fpmbut it doesn't, as it maps the compose from the config with the latestmaincommit, doesn't find thecompose.apps.ymlanymore and crashed, before even beeing able to check out5.0.3+27.0.1-fpm.You should be able ro reproduce this as described above and abra should return an error on a missing compose.apps.yml
Expected behavior is that abra doesn't miss that compose.apps.yml as it clearly is available in
5.0.3+27.0.1-fpmAnd thanks on the note to "Critical fixes". I think in the meantime, @3wordchant too voted for this.
@simon lemme know what you think of coop-cloud/abra#411 🙏
decentral1se referenced this issue2024-06-20 05:45:39 +00:00