WIP: fix(recipe): Prevent crash when recipe has no previous tag or release #706
Closed
p4u1
wants to merge 1 commits from
(deleted):fix-crash-sync into main
pull from: (deleted):fix-crash-sync
merge into: :main
:main
:renovate/golang-1.27
:renovate/github.com-charmbracelet-bubbletea-2.x
:fix/492
:local-integration-testing
:renovate/github.com-charmbracelet-lipgloss-2.x
:renovate/otel-weaver-0.x
:renovate/codespell-2.x
:renovate/tonistiigi-xx-1.x
:renovate/alpine-3.x
:renovate/github.com-charmbracelet-log-2.x
:chore-deps
:fix/deps
:fix/613
Labels
Clear labels
bug
build
ci/cd
critical fix
design
documentation
duplicate
easy-first-issue
enhancement
help wanted
i10n
i18n
installer
invalid
question
release
release-candidate
security
tech-debt
test
wontfix
Something is not working
go build related issues
Building things with CI/CD
https://docs.coopcloud.tech/federation/resolutions/passed/010/
UI/UX
Documenting all the things
This issue or pull request already exists
Something for new people to get stuck into. We hope it's easy!
New feature
Need some help
Everything to do with localisation
Everything to do with internationalisation
Everything to do with the install script.
Something is wrong
More information is needed
Release management
Related to the new release candidate
Security related
Unit/integration testing
This won't be fixed
No labels
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/abra#706
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.
Thanks @p4u1.
One comment, as I'm not quite sure on the approach.
And an integration test, which creates a new recipe and syncs it, would be great.
🙏
@@ -132,3 +133,3 @@}latestRelease := tags[len(tags)-1]latestRelease := "0.0.0+0.0.0"Isn't the left-hand side supposed to be
1.0.0/0.1.0following:I thought this case was covered 🤔 The logic of the code above doesn't look right because it tests
len(tags) == 0and then accesstagslater on 😬 I would assume if have no previous release/tag we can construct a choice from the above question and the tag of theapp? Otherwise, probably0.0.0+0.0.0is going to explode somewhere else 🙃dc0cc20141toe11f775260@decentral1se thanks for the review. I still have to dive deeper into this... I'm just adding fixes while working on a new recipe and abra panicing
@p4u1 I wired up a bunch of tests to cover some cases where this might have been going wrong:
ce1aa3d870It doesn't seem to be failing in any obvious way? I'd be curious if you can reproduce your stack trace?
Bonus: it's actually not that bad to simulate user input with the 'ol
bash -c "echo ... | ..."trick!#738
I am trying to develop a recipe for Friendica. I think I ran into this problem. I run this command for the first time:
abra app deploy friendica.example.dk --chaosAnd I get:
Do you have a quick fix I can use, while you get the fix into abra release?
Thanks!!
@jeppebundsgaard can you open up a new issue with the output of the command while using
--debug? Thanks!Pull request closed