-
Notifications
You must be signed in to change notification settings - Fork 65
ci: testpypi and aws deploy / test #2967
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
ci: testpypi and aws deploy / test #2967
Conversation
4f54a93 to
f067876
Compare
6586929 to
6f1e529
Compare
cce6b7b
into
FXC-3931-update-tidy-3-d-python-client-release-actions-to-be-manually-triggered-and-create-a-tag
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.
Additional Comments (1)
-
.github/workflows/tidy3d-docs-sync-readthedocs-repo.yml, line 35-43 (link)style: check that docs sync behavior is correct - automatic push triggers removed, workflow now only callable
5 files reviewed, 5 comments
|
|
||
| - name: publish-to-codeartifact | ||
| env: | ||
| TWINE_PASSWORD: ${{ env.CODEARTIFACT_AUTH_TOKEN }} |
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.
logic: CODEARTIFACT_AUTH_TOKEN not available in this env context
| TWINE_PASSWORD: ${{ env.CODEARTIFACT_AUTH_TOKEN }} | |
| TWINE_PASSWORD: ${{ env.CODEARTIFACT_AUTH_TOKEN }} |
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/tidy3d-python-client-deploy.yml
Line: 264:264
Comment:
**logic:** `CODEARTIFACT_AUTH_TOKEN` not available in this env context
```suggestion
TWINE_PASSWORD: ${{ env.CODEARTIFACT_AUTH_TOKEN }}
```
How can I resolve this? If you propose a fix, please make it concise.| (needs.deploy-testpypi.result == 'success' || needs.deploy-testpypi.result == 'skipped') | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - run: echo "hi" |
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.
logic: production PyPI deployment commented out but job still runs
Remove placeholder or implement proper deployment
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/tidy3d-python-client-deploy.yml
Line: 177:177
Comment:
**logic:** production PyPI deployment commented out but job still runs
Remove placeholder or implement proper deployment
How can I resolve this? If you propose a fix, please make it concise.| type: boolean | ||
| default: false |
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.
style: all deployment targets default to false, requiring manual selection each time
Consider defaulting deploy_testpypi to true for safer testing workflow
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/tidy3d-python-client-deploy.yml
Line: 13:14
Comment:
**style:** all deployment targets default to `false`, requiring manual selection each time
Consider defaulting `deploy_testpypi` to `true` for safer testing workflow
How can I resolve this? If you propose a fix, please make it concise.| xsel \ | ||
| xclip | ||
|
|
||
| RUN apt-get update && apt-get install -y zip unzip curl \ |
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.
style: curl installed twice (line 7 and line 13) - remove duplicate
Prompt To Fix With AI
This is a comment left during a code review.
Path: dev.Dockerfile
Line: 13:13
Comment:
**style:** `curl` installed twice (line 7 and line 13) - remove duplicate
How can I resolve this? If you propose a fix, please make it concise.
Greptile Overview
Greptile Summary
This PR introduces a new deployment workflow architecture for TestPyPI and AWS CodeArtifact testing/deployment:
Major Changes:
tidy3d-python-client-deploy.yml) with support for TestPyPI, PyPI (stubbed), and AWS CodeArtifactdraft/finaltodraft/codeartifact/testpypi/pypiCritical Issues:
Confidence Score: 2/5
.github/workflows/tidy3d-python-client-deploy.ymlrequires immediate fixes for AWS env variable reference and PyPI placeholder implementationImportant Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant User participant Release as Release Workflow participant Deploy as Deploy Workflow participant TestPyPI participant PyPI participant AWS as AWS CodeArtifact participant ReadTheDocs User->>Release: Trigger with release_tag & release_type Release->>Release: Validate tag format Release->>Release: Determine workflow scope alt Tests Enabled Release->>Release: Run client/cli/submodule tests end alt Deploy Enabled Release->>Deploy: Call deploy workflow Deploy->>Deploy: Validate inputs (at least 1 target) Deploy->>Deploy: Build package with Poetry Deploy->>Deploy: Upload artifacts alt deploy_testpypi=true Deploy->>TestPyPI: Publish with twine end alt deploy_pypi=true Deploy->>Deploy: Wait for TestPyPI (if selected) Deploy->>PyPI: Publish (CURRENTLY STUBBED) end alt deploy_aws=true Deploy->>AWS: Configure credentials Deploy->>AWS: Get auth token Deploy->>AWS: Configure package settings Deploy->>AWS: Publish with twine end Deploy->>Deploy: Generate deployment summary Deploy-->>Release: Return results end alt sync_readthedocs=true Release->>ReadTheDocs: Sync docs (workflow_call) end alt sync_branches=true (PyPI releases) Release->>Release: Sync main/develop branches end Release-->>User: Workflow complete