-
Notifications
You must be signed in to change notification settings - Fork 8
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
Adding earl report for rdfjs-c14n #80
Conversation
It would be nice to automate the process and run the scripts to regenerate the report (and do something similar for test manifests), but I haven't had much success in using GH Action tools such as https://github.com/marketplace/actions/add-commit to automate the process of building files and automatically committing them. For the reports, the process is described in https://github.com/w3c/rdf-canon/tree/main/reports#readme, but for now, I simply run through it and update the PR or generate a new PR with the updates. |
Note some syntax errors in rdfjs-c14n-report.ttl which are fixed in the update. |
@gkellogg You can directly use the |
I’ll have to work on that; thanks for the pointer. |
I have created an action to generate reports locally in another repo, see: https://github.com/w3c/epub-tests/blob/main/.github/workflows/generate.yml It runs some local scripts and commits the results. It does the job, although it is not 100% smooth: if the underlying script is changed in the repo, then there are some false runs with error reports that I never really chased down. But it may still give you some inspiration... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as we should certainly accept Ivan's report from his implementation. I see this PR now has some other general fixes in it from Gregg too, which is fine. I didn't go through those line by line, there's a lot here. :)
The “other fixes”are just the result of running the tools. I’ll spend time on automating this shortly. |
@jeswr I could use some help on this.
I forked the repo, and created a workflow here which is part of gkellogg#1 after generating Any help would be appreciated. It would be very useful to be able to do this here, and in other repositories, but I keep stumbling on some of these issues. (@iherman, your process seems to update "main" after a PR is merged, while this attempts to add commits to the branch being merged). |
That is because you don't give a |
Also be warned; only use For this to work you will need to have automerge enabled in the repository settings and also add any branch protections you want in place to gate automerging (i.e. if you have any gating CI checks mark them as required in your branch protection settings for the main branch). |
What I'm hoping to do is to create a branch for the commits containing the auto update and merge it into the branch used for the PR. We don't want to generally enable automatically merging to main. But, I admit, I'm out of my depth on this particular usage pattern in GH Actions. It would be nice to have the effects of the automatic builds added to the branch used for the PR which triggers it, but I could see how that could get into an infinite loop. Perhaps @iherman's strategy of only merging to main when a PR is merged is better? But, then you won't be able to see the effects of the auto update before merging the PR. |
Ok - in that case you need to make sure to set the target branch in the previous line |
You could add an |
This is just to test the reporting mechanism... my separate tester for the rdfjs-c14n algo generates now an earl report which I have just submitted. Is there anything else that I am supposed to do?