Open policyengine update PRs from policyengine-release dispatch#606
Open
anth-volk wants to merge 1 commit into
Open
Open policyengine update PRs from policyengine-release dispatch#606anth-volk wants to merge 1 commit into
anth-volk wants to merge 1 commit into
Conversation
Replace the 30-minute PyPI polling cron with a repository_dispatch trigger fired by policyengine.py's release pipeline. The dispatched version feeds LATEST_OVERRIDE so each release produces exactly one single-version PR on its own auto/update-policyengine-<version> branch. Harden the update script: skip versions not newer than the current pin (FORCE=1 to override) and retry uv lock to absorb PyPI index lag. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
Converts the simulation API's policyengine update automation from pull-based (30-minute PyPI polling cron) to push-based: policyengine.py's release pipeline now sends a
policyengine-releaserepository dispatch after each PyPI release (companion PR in PolicyEngine/policyengine.py), and this workflow opens the bump PR immediately.Changes
check-policyengine-updates.yml: replaceschedulewithrepository_dispatch(policyengine-release); keepworkflow_dispatchwith an optionalversioninput as the manual fallback; add a per-version concurrency group so duplicate dispatches serialize.update-policyengine-package.sh:LATEST_OVERRIDE.FORCE=1overrides), preventing downgrade PRs from stale dispatches.uv lockup to 3 times to absorb PyPI Simple-index propagation lag.update-dependencies.yml(general dependency updates) is intentionally untouched.Behavior guarantees
Rollout
The dispatch trigger is inert until the policyengine.py companion PR merges. In the interim, trigger manually with
gh workflow runand theversioninput.🤖 Generated with Claude Code