Skip to content

Commit f754b23

Browse files
committed
remove the breaking deps check
1 parent 82bafb1 commit f754b23

1 file changed

Lines changed: 1 addition & 83 deletions

File tree

.github/workflows/release-proposal-dispatch.yml

Lines changed: 1 addition & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -493,78 +493,8 @@ jobs:
493493
branch_name: ${{ steps.proposal-branch.outputs.branch_name }}
494494
ephemeral_branch: ${{ steps.ephemeral-branch.outputs.ephemeral_branch }}
495495

496-
publish-dry-run-check:
497-
needs: cargo-release
498-
runs-on: ubuntu-latest
499-
steps:
500-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
501-
with:
502-
ref: ${{ needs.cargo-release.outputs.branch_name }}
503-
504-
- uses: dtolnay/rust-toolchain@stable
505-
with:
506-
toolchain: 1.92.0
507-
508-
- name: Download release data
509-
uses: actions/download-artifact@v4
510-
with:
511-
name: release-dispatch-data
512-
path: /tmp
513-
514-
- name: Cargo publish dry-run (crates.io resolution)
515-
id: publish-dry-run
516-
run: |
517-
set -euo pipefail
518-
HAS_ISSUES=false
519-
: > /tmp/publish-dry-run-issues-body.md
520-
521-
# Simulates publishing each release crate; resolves deps from the registry like crates.io, not path deps.
522-
while read -r crate; do
523-
NAME=$(echo "$crate" | jq -r '.name')
524-
LOG=$(mktemp)
525-
echo "Running: cargo publish -p $NAME --dry-run --all-features --locked"
526-
if ! cargo publish -p "$NAME" --dry-run --all-features --locked --color never 2>&1 | tee "$LOG"; then
527-
HAS_ISSUES=true
528-
{
529-
echo "### \`$NAME\`"
530-
echo ""
531-
echo '```text'
532-
tail -n 120 "$LOG"
533-
echo '```'
534-
echo ""
535-
} >> /tmp/publish-dry-run-issues-body.md
536-
echo "FAILED: $NAME (see summary artifact for PR)"
537-
else
538-
echo "OK: $NAME"
539-
fi
540-
rm -f "$LOG"
541-
done < <(jq -c '.[]' /tmp/api-changes.json)
542-
543-
if [ "$HAS_ISSUES" = "true" ]; then
544-
{
545-
echo "## Cargo publish dry-run failures"
546-
echo ""
547-
echo "These crates did not pass \`cargo publish --dry-run --all-features --locked\` (dependencies are resolved **as on crates.io**, not via workspace path dependencies)."
548-
echo ""
549-
cat /tmp/publish-dry-run-issues-body.md
550-
} > /tmp/publish-dry-run-summary.md
551-
echo "has_issues=true" >> "$GITHUB_OUTPUT"
552-
echo "Publish dry-run found issues; PR will include a summary section."
553-
else
554-
echo "has_issues=false" >> "$GITHUB_OUTPUT"
555-
echo "All publish dry-runs succeeded."
556-
fi
557-
558-
- name: Upload publish dry-run summary for PR body
559-
if: steps.publish-dry-run.outputs.has_issues == 'true'
560-
uses: actions/upload-artifact@v4
561-
with:
562-
name: publish-dry-run-summary
563-
path: /tmp/publish-dry-run-summary.md
564-
retention-days: 1
565-
566496
create-pr:
567-
needs: [cargo-release, publish-dry-run-check]
497+
needs: cargo-release
568498
runs-on: ubuntu-latest
569499
permissions:
570500
id-token: write # Enable OIDC
@@ -581,13 +511,6 @@ jobs:
581511
name: release-dispatch-data
582512
path: /tmp
583513

584-
- name: Download publish dry-run summary (if any failures)
585-
continue-on-error: true
586-
uses: actions/download-artifact@v4
587-
with:
588-
name: publish-dry-run-summary
589-
path: /tmp
590-
591514
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
592515
id: octo-sts
593516
with:
@@ -628,11 +551,6 @@ jobs:
628551
This PR contains version bumps based on public API changes and commits since last release.
629552
630553
${PR_BODY}"
631-
632-
PUBLISH_SUMMARY_FILE="/tmp/publish-dry-run-summary.md"
633-
if [ -f "$PUBLISH_SUMMARY_FILE" ]; then
634-
PR_BODY="${PR_BODY}"$'\n\n'"$(cat "$PUBLISH_SUMMARY_FILE")"
635-
fi
636554
637555
echo "$PR_BODY" > /tmp/pr-body.md
638556
echo "PR body written to /tmp/pr-body.md (length: $(wc -c < /tmp/pr-body.md) bytes)"

0 commit comments

Comments
 (0)