-
Notifications
You must be signed in to change notification settings - Fork 0
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
Workflow fixes #5
Conversation
This will help with installing releases of the module via pip, which fails to parse Git URLs for refs with a "@" in their name.
Also refactor "yarn lint" of each module/package to run whatever lint task is appropriate for it
Also remove redundant tests from that build job
TODO: This was supposed to make the Synapse build job run after the tests job. Ideally it should also start after the static analysis job. |
I think this one is probably for the server folk. We probably ought to fix the codeowners to assign appropriately. |
in an attempt to get it to run in CI before being merged
This is only because "lint:ts" is still an expected job. Eventually the expected job should be changed to just "lint".
workflow_run isn't playing nice, so for now just revert to running on PRs and pushes to main.
@langleyd @t3chguy Should CI push images of the Synapse module on every run of the build job? Currently it pushes only on changes to
With that said, an image is always pushed for releases (which is what |
If this is getting too complicated, I'm happy to split just the release job fix to its own PR. |
For some historic context, from nordeck POV: This was originally happening since we wanted to be able to deploy PR branches at times. And the secret was only accessible for nordeck and iirc dependabot or renovate (cant remember which one was used in this repo). |
That secret doesn't exist here, we should not be relying on pushing with secrets in a PR unless we wire it up safely to also work on forked pull requests, inconsistent contribution experience is unfair and also really annoying to deal with as a reviewer. I think we should not be pushing on PRs, if you want the CI could upload the exported image as an artifact for local testing. Or go the full hog, escalate privileges via workflow_run and upload it to a secondary docker image, with the tag being the PR number, executing zero untrusted code in the workflow_run environment to ensure no secrets get leaked to nefarious contributors. |
Publish builds of the synapse guest module only on pushes to main
Thanks for the explanation & suggestions. The secret is removed by 1001f7d.
For now I won't do this, since the image is simple enough to build & test with locally. But your suggestion is a good idea if anyone needs to use the image in CI runs. |
The most important fix is to the Synapse Guest Module release job.