ci: modified codeql-action steps to have the same version - #916
Conversation
✅ Deploy Preview for urunc canceled.
|
|
To prevent this from happening again, we need to update dependabot.yaml and group these 3 together so there is no drift |
Yeap, that sounds a good idea. Let;s add it in this PR. |
|
Totally agree, adding the changes to the dependabot.yaml to the PR. |
|
Thank you @OdysseasKalaitsidis , you will also need to add yourself in https://github.com/urunc-dev/urunc/blob/main/.github/contributors.yaml |
|
@cmainas thank you for the instruction, added myself as odykal on contributors.yaml |
Hey, you also removed some of the past contributors. Also, ensure that the commits are DCO-signed and there are no merge commits. |
|
@Nachiket-Roy Thank you for appointing the issues with my PR. Fixing, wont happen again |
The init, autobuild and analyse in codeql.yml had drifted to different CodeQL versions 4.37.4 vs 4.36.2, causing codeql runs to fail Fixes: urunc-dev#915 Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com>
Modified dependabot.yml to group codeql-action so dependabot groups all steps together in a single PR instead one at a time, preventing the version drift that caused urunc-dev#915 Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com>
0ae62ce to
822dda5
Compare
cmainas
left a comment
There was a problem hiding this comment.
Thank you @OdysseasKalaitsidis for updating the PR,
just make sure to use your github handle.
|
Thank you @OdysseasKalaitsidis , could you squash it with the commit that introduced the entry in the first place? |
0611e39 to
3475cbd
Compare
|
Squashed into a single commit @cmainas , thank you again! |
|
Hello @OdysseasKalaitsidis , the failure in the check is about your name. You can either replace your name from the commit with something like "adding myself" or add your name here too https://github.com/urunc-dev/urunc/blob/main/.github/linters/urunc-dict.txt. |
Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com>
3475cbd to
12f6d4d
Compare
|
Hey @cmainas , saw the error log, added my name and surname to the urunc-dict.txt |
cmainas
left a comment
There was a problem hiding this comment.
Thank you @OdysseasKalaitsidis
The init, autobuild and analyse in codeql.yml had drifted to different CodeQL versions 4.37.4 vs 4.36.2, causing codeql runs to fail Fixes: #915 PR: #916 Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk> Approved-by: Charalampos Mainas <cmainas@nubificus.co.uk>
Modified dependabot.yml to group codeql-action so dependabot groups all steps together in a single PR instead one at a time, preventing the version drift that caused #915 PR: #916 Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk> Approved-by: Charalampos Mainas <cmainas@nubificus.co.uk>
PR: #916 Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk> Approved-by: Charalampos Mainas <cmainas@nubificus.co.uk>
The init, autobuild and analyse in codeql.yml had drifted to different CodeQL versions 4.37.4 vs 4.36.2, causing codeql runs to fail Fixes: #915 PR: #916 Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk> Approved-by: Charalampos Mainas <cmainas@nubificus.co.uk>
Modified dependabot.yml to group codeql-action so dependabot groups all steps together in a single PR instead one at a time, preventing the version drift that caused #915 PR: #916 Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk> Approved-by: Charalampos Mainas <cmainas@nubificus.co.uk>
PR: #916 Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk> Approved-by: Charalampos Mainas <cmainas@nubificus.co.uk>
|
@cmainas @Nachiket-Roy Thank you for the warm introduction to the urunc community, more than happy to contribute more and grow together. |
Description
After investigating the CodeQL workflow, I found that commit 9d371bc changed only the init step to v4.37.4 but left the autobuild and analyze steps on the older version of v4.36.2. Since all steps come from the same codeql-action and need to stay on the same version, the version drift caused the init to write a config file newer than the analyze could read and the run failed with
"Loaded a configuration file for version '4.37.4', but running
version '4.36.2'"
The PR modifies the codeql.yml to point to the same new version v4.37.4
Related issues
Fixes #915
How was this tested?
I pulled the actual failed run 31158525443 to confirm the error and checked via GitHub API the version tag and the commit SHA it points to. It confirmed that the init step new SHA is the v4.37.4 so the comment # v3.29.5 next to it in the file was wrong and that the old SHA is still used by the autobuild and analze which was the v4.36.2
LLM usage
Claude Sonnet 5 assisted me in investigating the failing run. I reviewed the diagnosis and the fix myself before submitting this PR.
Checklist
make lint).make test_ctr,make test_nerdctl,make test_docker,make test_crictl).