We’re trying to setup a pull request pipeline for automated tests to reflect in our GitHub’s server PR UI.
I’m not sure what’s missing or misconfigured, so I’d appreciate if you could assist
I have added a build event handler for our tests configuration with the following setup:
GitHub API URL: https://<hostname>/api/v3/ (our local GitHub enterprise server installation)
Username/Password: a service account + 2FA Token in the Password Field.
Access Token: left this blank.
When to run: first/last stage + complete on waiting promotion
Options: wait for results, log build messages.
I’m not sure whether or not we’re supposed to do anything on the GitHub server side for this to work.
I have a branch protection rule for a test branch that has “Require status checks to pass before merging” checked (although ideally we do not want status checks to block merging, we just want to show them in the PR UI)
But just below that checkbox it says:
No status checks found
Sorry, we couldn’t find any status checks in the last week for this repository.
When I’m trying to (manually) run the Continua CI Configuration with the event handler I described earlier -
It immediately fails and the log reads:
Executing event handlers for ‘On Before Stage Start’ build event
Executing handler ‘github-test’ for build event ‘On Before Stage Start’
No enabled Git repositories with the name ‘OurRepo’ and a valid remote url were found associated with this build.
No enabled GitHub repositories were found associated with this build
Build failed while executing event handlers for ‘On Before Stage Start’ build event
Not sure if this is related, but the Continua CI Configuration has no triggers;
It is currently triggered manually on-demand only with the play button from the UI.
Also, in contrast to the message from the log, this configuration DOES have an associated repo named ‘OurRepo’ (Global Repository, used by many other configurations)
The repo is setup to NOT checkout files to workspace if it matters.
I tried enabling “Fetch other remote refs” for this repo with
Waited for the changesets to be saved, and tried to manually trigger the build again - it failed with the same messages.
Also tried changing the refspec to:
but that triggered a ‘Repository’ system event that repeated on every repo update interval:
Repository Cannot get changes for repository @link(2002, <uuid>)[OurRepo]: Running ‘C:\Program Files\Git\cmd\git.exe’ with arguments “fetch --prune --all” failed with return code -2147483648 and error output: “The process timed out as there was no response for 20s 0ms. Process was running for 21s 614ms in total.”
So I reverted the extra refspecs back to the “merge” suggestion for now
Checking with “git ls-remote origin” I do see our pull requests as refs/pull/10016/head, so I have to wonder why it fails when this refspec is configured for that.
Any help would be much appreciated!
Continua CI 184.108.40.2065
GitHub Enterprise 2.22.3
VP Edit : make discourse show full refspec!