-
Notifications
You must be signed in to change notification settings - Fork 328
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
Autobuild with working-directory doesn't always work #2316
Comments
That's very curious indeed, thanks for reporting! In the non-working log I spotted some lines that are not present in the other log. I'm not sure how that is possible, because both jobs seem to run with the same CodeQL version (2.17.3). Perhaps something changed in the github/codeql-action/autobuild action. Could you check in your logs which version and commit SHA of the
Could you try re-running the failed working with debug logging enabled? That should make the log more verbose and it also attaches a debug artifact to the job with much more data. I see you redacted your project name, I assume this is a private repository. You may want to create an enterprise support ticket and attach the more verbose logs there instead of using a public issue ticket. |
Comparing the logs in more details I spotted: The working log has a lot of additional environment variables indicating that the CodeQL tracer was started by the codeql-action/init step.
In addition the working log has
where the non-working log has
This difference seems related to the following codeql-action/src/autobuild.ts Lines 170 to 177 in 19a81bf
It looks like the new "build mode" feature is not working properly for your repository. I'll ask the team to have a look. |
@melwynpkb The team has confirmed the problem, and have disabled the feature. Could you check if things are working again for you? Thanks! |
thanks @aibaars for looking at this quickly. It's a long holiday weekend here in NZ. I'll verify and report back on Tuesday. |
@aibaars can confirm autobuild is running against the specified working directory again now. Since, the old behavior was restored with a feature flag, how would this be addressed in the new 'build mode' feature? I'm happy to close this issue for now but will continue using manual mode until the bug in the 'build mode' feature is fixed and rolled out. |
Hi,
I'm working in a monorepo setup and was using the following CodeQL setup to run CodeQL on a sub directory
`
Initially, in some runs, the autobuild step correctly picked up a .sln file from the specified working directory but since yesterday, in several runs, the option can be seen to be overriden by the autobuild script and it uses the github.workspace directory i.e., the root of the monorepo.
From the logs, I can see a difference in the environment variables and how the autobuild.sh is run
not-working.log
working.log
I'm using manual build as a workaround for now.
The text was updated successfully, but these errors were encountered: