You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run bash "${TRIAGE_SCRIPT}" jdk8u jdk11u jdk17u jdk21u jdk22head
bash: ${PWD}/tooling/build_autotriage/build_autotriage.sh: No such file or directory
Error: Process completed with exit code 127.
Looks like PWD is not defined?
The text was updated successfully, but these errors were encountered:
That PWD may not be correctly specifying the location of the triage script, maybe.
That this action is triggering even when none of the triggers have been, well, triggered.
That even if the above 2 issues are resolved, we then see a failure that could be caused by the github action secrets.GITHUB_TOKEN environment variable lacking permissions to generate an issue in a repository.
Current working theories:
That PWD does not correctly expand when specified in a github action's "env" section.
Fix: Moving the PWD to the "Run Build Triage" section appears to have resolved the issue.
If a commit modifies one of the three files associated with the build-autotriage.yml github action, then pushing a branch containing that commit will trigger this action even if the user has not modified those files in their own commits specific to that branch. Current theory is that this is because github identifies "new" commits by comparing the branch to the default branch in the fork. If the user has not updated their master branch to contain the latest autotriage files, the action will trigger every time they commit a branch.
Fix?: The latest fix for this was to only run the action when the commit is in a pull request.
That we get the github token from the old repository, but we try to create the issue in the new repository. As a token's scope is the repository in which it was generated, this is a problem.
Fix?: Currently working on this. One option is to print the script's output to the console if it's in a PR, but to perform as normal if it's triggered by the workflow. We could just make two options, but I'd rather not have code duplication if possible.
Ok, I've removed the pull-request logic entirely. I can always add it into a copy of this action that is exclusive to my repository (and ignored) for testing changes.
https://github.com/andrew-m-leonard/openjdk-build/actions/runs/7044337061/job/19171821242
Looks like PWD is not defined?
The text was updated successfully, but these errors were encountered: