Skip to content

Fixes issues with the docker images build #1663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexis-opolka
Copy link

@alexis-opolka alexis-opolka commented Apr 9, 2025

This PR should fix most issues encountered when building docker images.

As a reminder of the docker build images currently failing:

@alexis-opolka alexis-opolka requested a review from a team as a code owner April 9, 2025 06:51
@alexis-opolka
Copy link
Author

@Emilgardis Would you mind giving a review and tell me if you need me to change anything?

@alexis-opolka alexis-opolka changed the title [TEST] Fixes some issues with the CI Fixes issues with the docker images build Apr 9, 2025
@Emilgardis
Copy link
Member

/ci try

This comment has been minimized.

@Emilgardis
Copy link
Member

Thank you! I've left some comments :)

@alexis-opolka
Copy link
Author

Thank you! I've left some comments :)

I saw that XD

@alexis-opolka
Copy link
Author

I have tried my best to answer your comments. ^-^
Let me know if you need me to better explain my choices or if you want me to remove some changes I've made.

@alexis-opolka
Copy link
Author

We really need to find out why the macos target doesn't run at all.
And maybe put a limit on the time a CI can run because 24h is a bit too much.

This comment has been minimized.

@Emilgardis
Copy link
Member

Canceled the try run. I remember something about macos :latest now being apple silicon, that might be the reason

@Emilgardis
Copy link
Member

/ci try

This comment has been minimized.

This comment has been minimized.

@alexis-opolka
Copy link
Author

alexis-opolka commented Apr 11, 2025

/ci try

Unfortunately I do not have the power of maintainers to trigger the mighty CI bot.

@Emilgardis
Copy link
Member

/ci try

This comment has been minimized.

This comment has been minimized.

@alexis-opolka
Copy link
Author

alexis-opolka commented Apr 12, 2025

@Emilgardis What do we do with the centos version?

From the 404 errors that I get, you're still with centos 7 which has been deprecated along with centos 8.
The new versions are now called centos-X-stream where X is the version, for example here is the HTTPS URL for the packages of centos-9-stream: https://mirror.stream.centos.org/9-stream/BaseOS/aarch64/os/Packages/

Do I try to update the centos versions to centos 9 stream or do I redirect the URLs to the vault mirror considering we'll still build for EOL releases?

@Emilgardis
Copy link
Member

the centos images exists for users that really want old versions, so yes, it should use an archive/vault. Preferably, in the future, we'd just tarball the centos image and just unpack it in newer versions, but that's a bit annoying. Honestly I'd be ok with making the centos dockerfiles into FROM ghcr.io/cross-rs/*:0.2.5-centos.

@alexis-opolka
Copy link
Author

I added the vault mirror for now, it seems to have fixed this issue, at least.

@Emilgardis
Copy link
Member

/ci try

This comment has been minimized.

This comment has been minimized.

@alexis-opolka
Copy link
Author

alexis-opolka commented Apr 13, 2025

@Emilgardis Do you have an idea why on FreeBSD tar cannot unpack the packagesite.txz archive?
I'm trying to find out since yesterday and haven't really found any solutions.

I'm testing with the x86_64 target, btw:

cargo xtask build-docker-image -v "x86_64-unknown-freebsd"

(Sorry to ping you on a sunday 👀 )

@Emilgardis
Copy link
Member

The error suggest bad flags, what was wrong with what was there initially?

@alexis-opolka
Copy link
Author

Initially, there was this error:

11.67 + curl --retry 3 -sSfLO https://pkg.freebsd.org/FreeBSD:13:amd64/quarterly/packagesite.txz
24.03 + tar -C /opt/freebsd-packagesite -xJf packagesite.txz
24.04 xz: (stdin): File format not recognized
24.04 tar: Child returned status 1
24.04 tar: Error is not recoverable: exiting now

@alexis-opolka
Copy link
Author

I tried to dig around a bit but I'm always stuck with some kind of file format not recognized error or something related.

And I don't really know what to do anymore to fix this issue.

@alexis-opolka
Copy link
Author

I stop on trying to work on this specific issue, I need to do some other work.
Feel free to try and test things out, I'll try again tomorrow and see if I can finally solve the freebsd build.
You can always ping me if you need.

@alexis-opolka
Copy link
Author

What is weird is that the aarch64 target doesn't have this issue but x86_64 (https://github.com/alexis-opolka/cross/actions/runs/14430180716/job/40464118598) has it.

@Emilgardis
Copy link
Member

btw, this pr tracks your main branch, which means that a rebase will likely screw up the PR and autoclose it, going to leave this here how to solve that. https://gist.github.com/robertpainsi/2c42c15f1ce6dab03a0675348edd4e2c

another way is to on the remote repo change the head-branch to something else

@alexis-opolka
Copy link
Author

alexis-opolka commented Apr 13, 2025

btw, this pr tracks your main branch, which means that a rebase will likely screw up the PR and autoclose it, going to leave this here how to solve that. https://gist.github.com/robertpainsi/2c42c15f1ce6dab03a0675348edd4e2c

another way is to on the remote repo change the head-branch to something else

What? 😕

I don't understand what you're talking about, I'm not going to do a rebase. Why would I need to?

@Emilgardis
Copy link
Member

btw, this pr tracks your main branch, which means that a rebase will likely screw up the PR and autoclose it, going to leave this here how to solve that. https://gist.github.com/robertpainsi/2c42c15f1ce6dab03a0675348edd4e2c
another way is to on the remote repo change the head-branch to something else

What? 😕

once this pr gets in a good space, I'm going to ask for a force-push to squash most changes, but I know from experience that it doesn't work well when the PR is made from the main branch.

@alexis-opolka
Copy link
Author

alexis-opolka commented Apr 13, 2025

Can't you just squash the PR when merging it? It's easier.
I should be able to squash my commits without breaking the tree though.

I don't think the issue is because the PR is made from a certain branch, I think the issue comes from the people doing it.
But alright.

@Emilgardis
Copy link
Member

I like to use merge commits for PRs, I guess I could change the setting for this PR only. Problem is that merge queues only work with one method, not multiple

@alexis-opolka
Copy link
Author

Oh! Now I understand why, well, I'll squash my commits when it will be good so no worries. ^^

@Emilgardis
Copy link
Member

/ci try

This comment has been minimized.

This comment has been minimized.

@alexis-opolka
Copy link
Author

Hi @Emilgardis ,
I'm sorry for not being active last week, I have quite a lot of work to do.
I will try to take a look for the other issues during the week but I think you'll hear from me again this weekend (26/04 and 27/04).

@Emilgardis
Copy link
Member

No worries, let me know if you need any help or feel satisfied with the state currently. You don't have to fix everything in one pr

@alexis-opolka
Copy link
Author

I'm going to try to fix the most I can but I won't fix the issues which will require me to go quite deep in the debugging (such as the current state of the freebsd issue)

@Emilgardis
Copy link
Member

Freebsd has been solved in #1674

@alexis-opolka
Copy link
Author

Oh, that's nice to hear!
I'll merge upstream then.

@Emilgardis
Copy link
Member

the branch is currently not properly synced, just fyi, there's changes in d37706e which repeats what has happened upstream

@alexis-opolka
Copy link
Author

Thanks, I saw that it wasn't well synchronised but I wanted to first incorporate all changes made in upstream on my fork and have a limited number of commits so I squashed everything.

I will look at the tree for the changes to be synchronised.

@alexis-opolka
Copy link
Author

Little by little, I'm having less builds that fails! 😄

@alexis-opolka
Copy link
Author

Hi @Emilgardis !

Can you trigger a CI run? On my side, All the failing CI runs happens during the Test Image step after the docker build.

And I don't know if there aren't PRs opened for them or not so I'll wait for this PR to be merged and see If I should open another to fix the Tests from failing.

@Emilgardis
Copy link
Member

/ci try

This comment has been minimized.

Copy link

github-actions bot commented May 3, 2025

Try run for comment

Failed Jobs

List

Successful Jobs

List

@alexis-opolka
Copy link
Author

They are all failing the test image step.

Do you want me to investigate it further in this PR or do I squash all my commits to be ready for the merge?

@Emilgardis
Copy link
Member

Lets merge this and continue the work separately, thank you! Please do a squash :)

Signed-off-by: alexis-opolka <[email protected]>
@alexis-opolka
Copy link
Author

Squash done, you can review it but it seems to me the tree has been correctly fixed. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants