Repository navigation
formadaptor 0.3.0: formadaptor holds no secret; planning and proposing are two steps - #6
Merged
Merged
Conversation
…he plans, apply re-checks a plan and proposes it without running target code
…blishes the spec, and propose.yml is gone
…s with its release App, planning with no secret and applying with no target code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
formadaptor 0.3.0: formadaptor holds no secret; planning and proposing are two steps
Summary
proposejob that signed in with a GitHub App of its own. Those secrets were never set, so every run skipped every target. The owner's ruling: formadaptor holds no secret; formcompiler runs the proposing with its release App.scripts/propose.pygains three commands.planruns a target's generator with no token and writesproposal.jsonand a copy of each changed file.changedlists the targets that have a plan.applytakes a token, checks the plan again (target, repository, branch, every path against the target's declared files, every file's sha256, no links, the change hash), runs nothing from the target, pushes thebot/formadaptor-*branch and opens the pull request. When the target'smainmoved since the plan,applypushes nothing and the next run proposes again.hourly.ymlbuilds and publishes the family spec and stops there.propose.ymlis deleted. formcompiler'sadaptor.ymlcalls the three commands.runstill does both steps in one for use by hand.Commits
feat(propose): plan runs the generator with no token, changed lists the plans, apply re-checks a plan and proposes it without running target codeci: formadaptor proposes nothing itself; the hourly run builds and publishes the spec, and propose.yml is gonedocs: formadaptor holds no secret; formcompiler's adaptor.yml proposes with its release App, planning with no secret and applying with no target codechore(release): 0.3.0Version
0.3.0 in
VERSION, the README, the log header and the test that reads them.CHANGELOG.mdhas the v0.3.0 section.Checks
pytest tests: 82 passed. It was 85: two tests that readpropose.ymlwent with the file, and one was rewritten in place to say that no workflow here holds a secret.py_compileon the scripts,registry.py ids --check(37 registry entries, in step),propose.py matrix(4 targets), the em dash and emoji scan.planwrote a plan for a drifted file and nothing for a target in step;changedlisted the one good plan and skipped four bad entries with a warning each;applyrefused a path outside the target's files, a wrong sha256, a link, another repository, a..path and a wrong branch, each with nothing pushed; a good plan pushed the branch and opened the pull request; a plan made beforemainmoved pushed nothing.Not run: nothing ran on GitHub.
Merging
Merge this before formcompiler 0.24.0, whose workflow calls the new commands. Merge with a merge commit so each commit and its signature stays. Do not squash.