Skip to content
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

fix recent failures in publish-website.yml #1315

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

korran
Copy link
Collaborator

@korran korran commented Feb 5, 2024

These failures are preventing the release workflow from fully completing (regenerating the text matrix).

Recent failure of build step:
https://github.com/chipsalliance/caliptra-sw/actions/runs/7790925130/job/21246025351

With these fixes (build step succeeds; deploy failure is expected because this branch doesn't have publish permission):
https://github.com/chipsalliance/caliptra-sw/actions/runs/7791090616/job/21246392938

test-matrix: Fix failure with artifact redirects.

GitHub's API is now redirecting requests to download GHA artifacts to https://productionresultssa0.blob.core.windows.net/. This service rejects requests that contain an Authorization header, breaking our publish-website.yml workflow. octocrab should not be sending this header when redirected, and I have filed
XAMPPRocky/octocrab#562 to address the bug.

Until that PR is merged, we can work around this issue by enabling octocrab's "follow-redirect" feature, which configures the tower middleware to handle the redirect instead of octocrab, which (correctly) doesn't include the authentication header in the redirected requests.

test-matrix: Include Cargo.lock

This works around this failure:

error: package `target-spec v3.1.0` cannot be built because it requires
rustc 1.73 or newer, while the currently active rustc version is 1.70.0

GitHub's API is now redirecting requests to download GHA artifacts
to https://productionresultssa0.blob.core.windows.net/. This service
rejects requests that contain an Authorization header, breaking our
publish-website.yml workflow. octocrab should not be sending this header
when redirected, and I have filed
XAMPPRocky/octocrab#562 to address the bug.

Until that PR is merged, we can work around this issue by enabling
octocrab's "follow-redirect" feature, which configures the tower
middleware to handle the redirect instead of octocrab, which (correctly)
doesn't include the authentication header in the redirected requests.
@korran korran changed the title test-matrix: Fix failure with artifact redirects. fix recent failures in publish-website.yml Feb 5, 2024
This works around a failure that started occuring after a new version
of target-spec was released over the weekend:

```
error: package `target-spec v3.1.0` cannot be built because it requires
rustc 1.73 or newer, while the currently active rustc version is 1.70.0
```
@korran korran merged commit d0645c4 into chipsalliance:main Feb 6, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants