-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[prtester] improve prtester.py and prhtmlgenerator.yml for running in forks #4313
base: master
Are you sure you want to change the base?
[prtester] improve prtester.py and prhtmlgenerator.yml for running in forks #4313
Conversation
add parameter "--artifact-base-url" and "--artifact-directory"
Thanks for all the help with this! Because I've run into this before and maybe you know how to do it: If you re-run the test manually within github, I've had the behavior that it cant identify the github event number (because the run wasnt caused by a commit but by a manual re-run request) and thus, the github event number defaults to "none". I'm not sure if you can recreate that and if so, have a fallback to use something else but the github event number. |
I could not recreate that behavior by re-running the pipeline or single jobs of the pipelines. |
@Bockiii can this get merged? |
I honestly dont understand whats happening in the code and which fail overs are in place.
Not every github user has setup a github.io page.
Definitely no one has setup either this (undocumented) variable or has setup a repo named "rss-bridge-tests". As an alternative, I would check if the workflow is run in the original repo or not and if not, dont do the upload to a repository. The github action will still have the artifact uploads, so you can just download the html files and check. You could also create an alternate comment in the PR that just says "go to the action and download the artifacts to check" or so. |
|
@Bockiii does that explain it? |
This now happened for PR #4324 (see the error @Bockiii or @dvikan would be nice if you could merge this to get that fixed |
i dont wanna mess with python and prtester sorry. @Bockiii |
This PR will improve
prtester.py
andprhtmlgenerator.yml
for running in forks. It makes the hard-coded repo name and base url to the newrss-bridge-tests
repo dynamic/configurable (by using the repo owners name and an optionalARTIFACTS_REPO
variable). TheUpload tests
job will be skipped when the secretRSSTESTER_ACTION
is missing (which will always be the case for forks, by default) instead of always failing. Additional small fixes to theUpload tests
job: It failed when theprs
directory did not exist yet and it failed when there was no change to the html files.