-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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] fix git checkout for comment-triggered CI jobs #5169
Conversation
|
😬 looking at logs like this: /__w/1/s/.ci/setup.sh: line 58: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
sudo: locale-gen: command not found
sudo: update-locale: command not found
/__w/1/s/.ci/setup.sh: line 104: curl: command not found
sh: 0: cannot open miniforge.sh: No such file
/__w/1/s/.ci/setup.sh: line 114: conda: command not found
/__w/1/s/.ci/setup.sh: line 115: conda: command not found I suspect that the default permissions in Azure DevOps linux images (or maybe the default user that jobs run as) has changed significantly. Can try to test tonight. If you or @StrikerRUS want to test fixes to this today before I get to it, you can push directly to this branch to test them. |
I just tried manually re-running the failed jobs and unfortunately they failed with the same errors. |
Comparing the logs from the failed jobs and the most recent successful job, I can see we're now getting a new version of Ubuntu from tag From failed build (link)
Ran the following to check the Ubuntu version in that image. docker run \
--rm \
-it ubuntu@sha256:2a7dffab37165e8b4f206f61cfd984f8bb279843b070217f6ad310c9c31c9c7c \
cat /etc/lsb-release
And from the most recent successful job (link)
Ran the following to check the Ubuntu version in that image. docker run \
--rm \
-it ubuntu@sha256:9101220a875cee98b016668342c489ff0674f247f6ca20dfc91b91c0f28581ae \
cat /etc/lsb-release
|
Also this announce might be related:
|
oooo interesting, thank you! I hadn't noticed that. I now strongly suspect that some of the setup just needs to be altered to account for the new Ubuntu version. If you look at the logs from the most recent build (https://dev.azure.com/lightgbm-ci/lightgbm-ci/_build/results?buildId=12636&view=results), I can see now that a few
I'll keep testing here and locally in Docker, I think I'm getting closer. |
Could we separate this PR into two: [this] one for "fix git checkout for comment-triggered CI jobs" and another one for "some of the setup just needs to be altered to account for the new Ubuntu version"? |
Yes definitely! I totally support that idea. Just reverted this PR back to only fixes for the git issue, and opened #5186 documenting the work to return the Azure jobs back to |
Thank you so much! |
Close-reopen to update CLA status. |
Hmm, what is this?.. 😕 |
.github/workflows/r_package.yml
Outdated
@@ -1,241 +1,241 @@ | |||
name: R-package | |||
name: R-package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like bad uncomment action led to extra whitespace characters were added. Please exclude this file from the diff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blegh sorry about that, just pushed commits removing this from the diff
at that link, I see
So I guess it must be another governance thing that Microsoft enabled on all its repos? @shiyu1994 can you tell us about this? |
Seems that the check has been removed. I'm not sure why it was introduced before. |
hmmm ok. Thanks for checking! |
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
See #5159 (comment).
A patch was recently pushed in
git
which fixes a newly-discovered security vulnerability. That patch causes theactions/checkout
GitHub Action to fail for containerized jobs. See #5151 for details.#5152 sought to fix that for LightGBM's CI jobs, but missed optional jobs triggered by comments.
This PR applies that fix to those jobs.
Note for Reviewers
Since the configs for these comment-triggered jobs are sourced from
master
, I think this PR will have to be merged and then we'll have to use comments on another open PR to test.