Github Action push failure on bluefin-lts{-dx,-hwe,-dx-hwe}

could someone help me out with the github actions on bluefin-lts?
51 Replies
tulip🌷
tulip🌷OP•2mo ago
i really dont know what to do here this is the last blocker to getting -hwe and -dx working on this @p5 friendly ping since i believe this might be of your interest OH MY GOD I GOT IT its doign lts-amd64 without like any reason to do so it should be just :lts
Robert
Robert•2mo ago
@tulip It needs to push the images to lts-<arch> The images are pushed first to the registry under that tag, then they are tagged with just lts in the manifest job
tulip🌷
tulip🌷OP•2mo ago
it doesnt seem to have pushed the images properly :( i think i brome something check this out OH thats why then!!!
tulip🌷
tulip🌷OP•2mo ago
No description
tulip🌷
tulip🌷OP•2mo ago
it got pushed like this
Robert
Robert•2mo ago
Yeah. That's normal
tulip🌷
tulip🌷OP•2mo ago
man so this really makes me wonder then, why dont the other ones work...
Robert
Robert•2mo ago
So to summarise: 1. Create a matrix JSON from the required architectures 2. Build, rechunk and push to lts-<arch> in matrix 3. Collect all outputs from builds and push a single manifest, with the required end-user facing labels and tags Is something not working?
tulip🌷
tulip🌷OP•2mo ago
i changed the first step, i just put a matrix directly there pretty sure that broke it.
Robert
Robert•2mo ago
Oh, main branch is broken? I can take a look
tulip🌷
tulip🌷OP•2mo ago
yuuup... sorry for the trouble tho you used the include: thing to get the matrix going, with the -hwe + -dx suffixes that would mean like 8(?) includes? (+ some weird logic) so i just put the matrix there thinking nothing would break 😭
Robert
Robert•2mo ago
Nope. At that time, I wasn't aware of plans to use -hwe and -dx.
What I'm going to do is turn it into a reusable workflow, then have separate YAML files that call the reusable build for each
tulip🌷
tulip🌷OP•2mo ago
ooh! why do we do that tho? like, does the matrix thing not work for that? tbh, same?
tulip🌷
tulip🌷OP•2mo ago
the logic on the build step is fine tho, fixed it later on a separate commit
tulip🌷
tulip🌷OP•2mo ago
GitHub
bluefin-lts/.github/workflows/build-image.yml at 02ee360352d2f0033f...
Bluefin LTS, built on CentOS Stream with bootc. Contribute to ublue-os/bluefin-lts development by creating an account on GitHub.
Robert
Robert•2mo ago
https://github.com/ublue-os/bluefin-lts/pull/219/files Does this approach look okay?
like, does the matrix thing not work for that?
Nope. The matrix on the build step itself doesn't work since this will then try and put all 8 images inside a single manifest, which won't work. bluefin:lts would contain hwe, dx, non-dx, non-hwe etc. We need to call the workflow separately for each image because we need to make a single manifest for each image
Robert
Robert•2mo ago
Depending on how GITHUB_ENV is handled between different jobs, I may need to do something more
tulip🌷
tulip🌷OP•2mo ago
looks perfect to me! - the only thing is that like, we need -hwe-dx too dunno if that handles that its kinda like the current bluefin workflows ooooooooooh thats why oh my god 😭 i would never figure that out
Robert
Robert•2mo ago
I've not changed your build logic, so that should just be a new file with hwe-dx passed in as an input
tulip🌷
tulip🌷OP•2mo ago
perfect then! we can add that as a follow up ill merge this is that ok? LGTM tho
Robert
Robert•2mo ago
Not yet! I'm researching if I need to handle the IMAGE_NAME logic in the manifest step too
tulip🌷
tulip🌷OP•2mo ago
ooh okok
Robert
Robert•2mo ago
Going to change the image name to a test one and try a full build + push
tulip🌷
tulip🌷OP•2mo ago
the IMAGE_NAME gets changed on the build workflow so it might just work i think we should put that as a separate step too, will do that with the -hwe-dx follow up.
tulip🌷
tulip🌷OP•2mo ago
@p5 since ur doing this will apply a few suggestions i made on this one https://github.com/ublue-os/bluefin-lts/pull/215/
GitHub
chore: replace x86_64-only Flatpaks with amd64 alternatives by p5 ·...
I&#39;m not too sure how the overrides work, so please give this a good review :) This replaces Firefox with Chromium (the next best option for a browser). And removes Thunderbird, since it&...
tulip🌷
tulip🌷OP•2mo ago
OH you are already doing stuff there! oh nvm i just read it wrong
Robert
Robert•2mo ago
Okay, I'm happy with the workflow now.
Haven't tested it end-to-end, but that's what production is for 🙂 Tulip - are you able to confirm the image names are still what you were expecting?
tulip🌷
tulip🌷OP•2mo ago
HAHAHA hell yeah!!!!! lets DO IT in prod! as always :) ok so - i believe so! i just didnt want to publish new packages for no reason -hwe-dx already exists on bluefin, but dx-hwe doesnt oh i think i got it mixed up LOL lemme see its dx-hwe.
Robert
Robert•2mo ago
Cool. I'll push an update
tulip🌷
tulip🌷OP•2mo ago
No description
Robert
Robert•2mo ago
Can I check if you wanted to introduce a new Bluefin LTS skew (like bluefin-lts-surface), would you know how with the new changes? I want to make sure I'm not the only person who undertands the workflow
tulip🌷
tulip🌷OP•2mo ago
id just add a bluefin-lts-surface on the workflows id just copy any of the existing files and put that there changing the metadata where appropriate
Robert
Robert•2mo ago
Awesome! Yeah.
So copy and paste the build-whatever.yml files, then add one of your if conditions to pass the correct info to the Justfile
tulip🌷
tulip🌷OP•2mo ago
hell yeah!!! this is simple enough anyone can figure it out if necessary
Robert
Robert•2mo ago
But sorry about the first workflow not being as accessible. Should have done this from the start
tulip🌷
tulip🌷OP•2mo ago
absolutely no problem you shouldnt even begin to say sorry about anything everyone is HYPED UP because you did that amazing job with the arm stuff
Robert
Robert•2mo ago
Oh. Rechunk is broken. Need to figure that out
tulip🌷
tulip🌷OP•2mo ago
oh no LOL it seems to be fine tho
tulip🌷
tulip🌷OP•2mo ago
GitHub
chore: replace x86_64-only Flatpaks with amd64 alternatives by p5 ·...
I&#39;m not too sure how the overrides work, so please give this a good review :) This replaces Firefox with Chromium (the next best option for a browser). And removes Thunderbird, since it&...
tulip🌷
tulip🌷OP•2mo ago
this seems really happy
Robert
Robert•2mo ago
No description
tulip🌷
tulip🌷OP•2mo ago
oh.... true
Robert
Robert•2mo ago
Hmm.. Maybe there's not anything wrong with rechunk? I'm confused
tulip🌷
tulip🌷OP•2mo ago
merged that one PR lets see what happens
Robert
Robert•2mo ago
OH! We need to give the repo permissions to push to that tag Rechunk may be fine
tulip🌷
tulip🌷OP•2mo ago
omg. @j0rge
Robert
Robert•2mo ago
I'm doing it 🙂
tulip🌷
tulip🌷OP•2mo ago
but like doesnt the repo already have perms tho? oh ok then LOL
Robert
Robert•2mo ago
This is what I'm doing. The lts repo didn't have any permissions previously, so I'm providing write
No description
tulip🌷
tulip🌷OP•2mo ago
perfect then!!! didnt know that we had to do that LOL SO WE ARE DONE THEN LES GOOOOO

Did you find this page helpful?