fix: github release after pypi (FXC-3911) #3040
Open
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.
this was happening before pypi on a successful autorelease run
Greptile Overview
Greptile Summary
This PR modifies the GitHub release workflow to ensure releases are only created after successful PyPI deployment. The
github-releasejob now depends on thedeploy-packagesjob and requires bothdeploy_pypi == 'true'anddeploy-packages.result == 'success'.Key Changes:
deploy-packagesto theneedsarray of thegithub-releasejobdeploy_pypi == 'true'to restrict GitHub releases to PyPI deployments onlydeploy-packages.result == 'success'to ensure PyPI deployment succeeded before creating releaseImpact:
Confidence Score: 4/5
.github/workflows/tidy3d-python-client-release.ymlfor the comment update and potential breaking change in GitHub release behaviorImportant Files Changed
File Analysis
deploy-packagesjob and conditions to ensure GitHub release only created after successful PyPI deploymentSequence Diagram
sequenceDiagram participant Scope as determine-workflow-scope participant Tests as compile-tests-results participant Deploy as deploy-packages participant GitHub as github-release Note over Scope: Determine release type<br/>and deployment targets Scope->>Tests: run if tests enabled Scope->>Deploy: run if deploy enabled Note over Tests: Compile test results<br/>and check if deployment<br/>should proceed Tests->>Deploy: proceed_deploy output Note over Deploy: Deploy to TestPyPI/PyPI<br/>(only if deploy_testpypi<br/>or deploy_pypi == true) Deploy->>GitHub: Wait for success Tests->>GitHub: Check proceed_deploy Scope->>GitHub: Check deploy_github_release<br/>and deploy_pypi flags Note over GitHub: Create GitHub release<br/>ONLY if:<br/>- deploy_pypi == true<br/>- deploy-packages succeeded<br/>- tests passed