-
Notifications
You must be signed in to change notification settings - Fork 0
Handle invalid Cargo manifest decoding errors #179
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
Merged
leynos
merged 21 commits into
main
from
codex/address-code-review-comments-for-read_manifest.py
Oct 5, 2025
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
79d68ca
Handle invalid Cargo manifest parsing
leynos 3ec789a
Extract release asset upload automation
leynos fe1c2c4
Harden manifest helper tests
leynos 96ab6c1
Factor manifest error assertions
leynos f2afdbd
Add helper for manifest CLI success assertions
leynos 20c6277
Adopt pytest harness for read_manifest tests
leynos 5e88c5e
Parametrize manifest field tests
leynos d96e8d6
Refine release asset tooling per review
leynos 1228f3d
Document manifest test helpers
leynos 1537cc4
Clarify release outputs and test helpers
leynos 690e4ae
Document manifest loader helper
leynos 244f137
Expose workflow outputs and expand docstring
leynos a883684
Refine manifest helpers and release asset tests
leynos bb24d34
Document manifest helpers and test fixture
leynos 2f2c538
Address review feedback on workflow outputs
leynos f9d67ac
Document CLIResult attributes
leynos 2c61bf9
Clarify CLIResult documentation
leynos 745eba0
Simplify asset collision guard
leynos f04d263
Suppress semgrep false positive in manifest tests
leynos 5187b31
Harden release asset uploader
leynos ab39c6a
Clarify uploader docstrings
leynos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: Upload release artefacts | ||
| description: Upload staged artefacts to a GitHub release or validate them in dry-run mode. | ||
| inputs: | ||
| release-tag: | ||
| description: Git tag identifying the release to publish to. | ||
| required: true | ||
| bin-name: | ||
| description: Binary name used to derive artefact names. | ||
| required: true | ||
| dist-dir: | ||
| description: Directory containing staged artefacts. | ||
| required: false | ||
| default: dist | ||
| dry-run: | ||
| description: When true, only validate artefacts and print the upload plan. | ||
| required: false | ||
| default: "false" | ||
| outputs: | ||
| upload-error: | ||
| description: Whether the invocation detected an error. | ||
| value: ${{ steps.invoke.outputs.upload-error }} | ||
| error-message: | ||
| description: Summary of the error when ``upload-error`` is ``true``. | ||
| value: ${{ steps.invoke.outputs.error-message }} | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - id: invoke | ||
| name: Upload release artefacts | ||
| shell: bash | ||
| env: | ||
| INPUT_RELEASE_TAG: ${{ inputs.release-tag }} | ||
| INPUT_BIN_NAME: ${{ inputs.bin-name }} | ||
| INPUT_DIST_DIR: ${{ inputs.dist-dir }} | ||
| INPUT_DRY_RUN: ${{ inputs.dry-run }} | ||
| run: | | ||
| set -uo pipefail | ||
| log_file="$(mktemp)" | ||
| if "$GITHUB_WORKSPACE/scripts/upload_release_assets.py" >"$log_file" 2>&1; then | ||
| cat "$log_file" | ||
| { | ||
| echo "upload-error=false" | ||
| echo "error-message=" | ||
| } >>"$GITHUB_OUTPUT" | ||
| else | ||
| status=$? | ||
| cat "$log_file" | ||
| { | ||
| echo "upload-error=true" | ||
| echo "error-message<<'EOF'" | ||
| cat "$log_file" | ||
| printf 'Exit code: %s\n' "$status" | ||
| echo 'EOF' | ||
| } >>"$GITHUB_OUTPUT" | ||
| fi |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.