-
Notifications
You must be signed in to change notification settings - Fork 39
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
The "second push" (force_ci_trigger()
) incorrectly pushes to the HTTPS remote, and as a result, Github Actions CI is not started for CompatHelper PRs
#500
Comments
It may be related to this issue of workflow runs can't be triggered by processes authenticated with the repository's GITHUB_TOKEN: https://github.com/orgs/community/discussions/57484 Was the CompatHelper job automatically triggering the workflows in the past? |
Yes, this makes sense. But isn't that the reason to have a
Yes, it used to work in the past. |
Ah yes, I forgot that's what the key was for. Then I also have this issue, and I don't know how to fix it. I've tried some things below that could help, but it still didn't work. Background: I'm on a Github Enterprise with a self-hosted runner. I believe something isn't work in this part of the code: CompatHelper.jl/src/utilities/git.jl Lines 34 to 41 in e72bd6b
I edited my workflow file to enable debug for CompatHelper and - name: "Run CompatHelper"
run: |
import CompatHelper
CompatHelper.main()
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
JULIA_DEBUG: CompatHelper
JULIA_COMPATHELPER_ENABLE_SSH_VERBOSE: true According to the advice here, the workflow must run on push, so I modified my CI workflow to run on name: CI
on:
pull_request:
types: [opened, ready_for_review, synchronize]
push:
branches:
- main
- 'compathelper/**' I also tried modifying CompatHelper.jl to add git_ssh_command = isnothing(pkey_filename) ? ssh : "$(ssh) -i $pkey_filename -o IdentitiesOnly=yes" When I run the workflow, the debug lines show what command is being run, but I don't get any verbose
If I run locally, then GIT_SSH_COMMAND="ssh -vvvv -i /tmp/jl_kNDBcL/privatekey -o IdentitiesOnly=yes" git pull successfully pulls and prints verbose GIT_SSH_COMMAND="ssh -vvvv -o IdentitiesOnly=yes" git pull errors due to insufficient permisions but still prints the verbose Since the verbose |
force_ci_trigger()
) incorrectly pushes to the HTTPS remote, and as a result, Github Actions CI is not started for CompatHelper PRs
We are using
CompatHelper.jl
for our flow solver project Trixi.jl. However, since some time, our CI workflow does not start anymore for PRs opened by github-actions bot triggered by CompatHelper.We are using the workflow file linked on https://github.com/JuliaRegistries/CompatHelper.jl. We also use Documenter.jl and have
DOCUMENTER_KEY
set up as suggested. Our current workaround is to just close and reopen the PR, which then triggers CI. We also tried with a new Documenter key, which however did not help.Do have any idea what could be in the way?
The text was updated successfully, but these errors were encountered: