-
Notifications
You must be signed in to change notification settings - Fork 148
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
[CI] use container instead of chroot for Debian #1878
Conversation
Passing `GITHUB_STEP_SUMMARY="$GITHUB_STEP_SUMMARY"` through to the chroot was not working, so let's try using a container instead
Can you point me to what was not working? |
Look at the failing debian CI before 6bce0ff, where I reverted the change that broke things. GitHub Actions defines GITHUB_STEP_SUMMARY (per step, I think) but the chroot doesn't seem to know about it |
|
Could you please point me to the code where you tried to set the variable inside the chroot? I would like to go back to that setup and I don't think it would be hard to fix. |
Oh, is 6bce0ff#diff-66eee238a3c2480cc0fb962e08ff6a6b91570e9944ab4058a7ed9fe5cff62360L42 the code? That does not work because the rhs is evaluated inside chroot as well, failing because the variable is unset there. See here for how it works in the alpine script -- I am not sure passing through all the variables is great, which is why I didn't imitate it, but if we could pass just the ci-script-derived ones that would be good. (Does github actions stash them in some file already?) Or we could just imitate that. |
(As I have just confirmed, it's not chroot that messes with the env anyway, it's sudo) |
Yes
Ah, I see
Sure, I'm happy to revert this in favor of the chroot solution. Do you have a preference for chroot over docker container?
Yes, the file name is stored in |
Yes. When chroot goes wrong, I have some idea of how to troubleshoot it. |
Passing
GITHUB_STEP_SUMMARY="$GITHUB_STEP_SUMMARY"
through to the chroot was not working, so let's try using a container instead