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

Github-Pages artifact fetch failed #17623

Closed
bkeith-TT opened this issue Feb 5, 2025 · 5 comments
Closed

Github-Pages artifact fetch failed #17623

bkeith-TT opened this issue Feb 5, 2025 · 5 comments
Assignees
Labels
bug Something isn't working P1

Comments

@bkeith-TT
Copy link

In this run:

https://github.com/tenstorrent/tt-metal/actions/runs/13161274904/job/36736914591

Fetching the github-pages artifact seems to have failed, with the following error message:

Run actions/[email protected]
Fetching artifact metadata for "github-pages" in this workflow run
Found 75 artifact(s)
Error: Fetching artifact metadata failed. Is githubstatus.com reporting issues with API requests, Pages, or Actions? Please re-run the deployment at a later time.
Error: Error: Multiple artifacts named "github-pages" were unexpectedly found for this workflow run. Artifact count is 2.
at getArtifactMetadata (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/internal/api-client.js:89:1)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Deployment.create (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/internal/deployment.js:66:1)
at main (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/index.js:30:1)
Error: Error: Multiple artifacts named "github-pages" were unexpectedly found for this workflow run. Artifact count is 2.

@bkeith-TT bkeith-TT added bug Something isn't working P1 labels Feb 5, 2025
@bkeith-TT bkeith-TT added this to the Metal CI to Green milestone Feb 5, 2025
@bkeith-TT
Copy link
Author

@dimitri-tenstorrent investigated:

"Looks like something is not cleaned up on the runner."

Checked most recent 10 runs, and they are all green on this job. Looks spurious.

Also looked through recent PRs, and didn't see anything that should have this effect.

@bkeith-TT
Copy link
Author

Closing ticket because we can't reproduce, but made a ticket in case it happens again.

@bkeith-TT
Copy link
Author

Looks like this run encountered the same bug three times on three consecutive runs:
https://github.com/tenstorrent/tt-metal/actions/runs/13151048303/job/36728653655

@dimitri-tenstorrent
Copy link
Contributor

This issue occurs when Github pages Deployment API calls runs into a problem such as here:
https://github.com/tenstorrent/tt-metal/actions/runs/13175864122/job/36775283617
or here
https://github.com/tenstorrent/tt-metal/actions/runs/13161274904/job/36730654968

Run actions/[email protected]
Fetching artifact metadata for "github-pages" in this workflow run
Found 4 artifact(s)
Creating Pages deployment with payload:
{
	"artifact_id": 2546345450,
	"pages_build_version": "cac10882de94b1e44e2f86864ebcaf8507889e8c",
	"oidc_token": "***"
}
Error: Creating Pages deployment failed
Error: HttpError: We couldn't respond to your request in time. Sorry about that. Please try resubmitting your request and contact us if the problem persists.
    at /home/runner/work/_actions/actions/deploy-pages/v4.0.4/node_modules/@octokit/request/dist-node/index.js:1[24](https://github.com/tenstorrent/tt-metal/actions/runs/13175864122/job/36775283617#step:14:25):1
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at createPagesDeployment (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/internal/api-client.js:1[25](https://github.com/tenstorrent/tt-metal/actions/runs/13175864122/job/36775283617#step:14:26):1)
    at Deployment.create (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/internal/deployment.js:74:1)
    at main (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/index.js:[30](https://github.com/tenstorrent/tt-metal/actions/runs/13175864122/job/36775283617#step:14:31):1)
Error: Error: Failed to create deployment (status: 504) with build version cac10882de94b1e44e2f86864ebcaf8507889e8c. Server error, is githubstatus.com reporting a Pages outage? Please re-run the deployment at a later time.

All subsequent attempt runs will experience the following error likely due to failure of Github API to clean up the artifacts.

Error: Fetching artifact metadata failed. Is githubstatus.com reporting issues with API requests, Pages, or Actions? Please re-run the deployment at a later time.
Error: Error: Multiple artifacts named "github-pages" were unexpectedly found for this workflow run. Artifact count is 2.
    at getArtifactMetadata (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/internal/api-client.js:89:1)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Deployment.create (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/internal/deployment.js:66:1)
    at main (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/index.js:[30](https://github.com/tenstorrent/tt-metal/actions/runs/13175864122/job/36796833931#step:14:31):1)
Error: Error: Multiple artifacts named "github-pages" were unexpectedly found for this workflow run. Artifact count is 2.

dimitri-tenstorrent added a commit that referenced this issue Feb 6, 2025
### Ticket
#17623 

### Problem description

This issue occurs when Github pages Deployment API calls runs into a
problem such as here:

https://github.com/tenstorrent/tt-metal/actions/runs/13175864122/job/36775283617
or here

https://github.com/tenstorrent/tt-metal/actions/runs/13161274904/job/36730654968

```
Run actions/[email protected]
Fetching artifact metadata for "github-pages" in this workflow run
Found 4 artifact(s)
Creating Pages deployment with payload:
{
	"artifact_id": 2546345450,
	"pages_build_version": "cac10882de94b1e44e2f86864ebcaf8507889e8c",
	"oidc_token": "***"
}
Error: Creating Pages deployment failed
Error: HttpError: We couldn't respond to your request in time. Sorry about that. Please try resubmitting your request and contact us if the problem persists.
    at /home/runner/work/_actions/actions/deploy-pages/v4.0.4/node_modules/@octokit/request/dist-node/index.js:1[24](https://github.com/tenstorrent/tt-metal/actions/runs/13175864122/job/36775283617#step:14:25):1
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at createPagesDeployment (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/internal/api-client.js:1[25](https://github.com/tenstorrent/tt-metal/actions/runs/13175864122/job/36775283617#step:14:26):1)
    at Deployment.create (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/internal/deployment.js:74:1)
    at main (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/index.js:[30](https://github.com/tenstorrent/tt-metal/actions/runs/13175864122/job/36775283617#step:14:31):1)
Error: Error: Failed to create deployment (status: 504) with build version cac1088. Server error, is githubstatus.com reporting a Pages outage? Please re-run the deployment at a later time.
```

All subsequent **attempt** runs will experience the following error
likely due to failure of Github API to clean up the artifacts.

```
Error: Fetching artifact metadata failed. Is githubstatus.com reporting issues with API requests, Pages, or Actions? Please re-run the deployment at a later time.
Error: Error: Multiple artifacts named "github-pages" were unexpectedly found for this workflow run. Artifact count is 2.
    at getArtifactMetadata (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/internal/api-client.js:89:1)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Deployment.create (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/internal/deployment.js:66:1)
    at main (/home/runner/work/_actions/actions/deploy-pages/v4.0.4/src/index.js:[30](https://github.com/tenstorrent/tt-metal/actions/runs/13175864122/job/36796833931#step:14:31):1)
Error: Error: Multiple artifacts named "github-pages" were unexpectedly found for this workflow run. Artifact count is 2.
```

### What's changed

Added the additional step to delete the artifact upon one of the steps
failing. This should clean up the artifact in cases where the deployment
fails.

### Checklist
- [ ] [All post
commit](https://github.com/tenstorrent/tt-metal/actions/workflows/all-post-commit-workflows.yaml)
CI passes
- [ ] [Blackhole Post
commit](https://github.com/tenstorrent/tt-metal/actions/workflows/blackhole-post-commit.yaml)
CI passes (if applicable)
- [ ] [Model
regression](https://github.com/tenstorrent/tt-metal/actions/workflows/perf-models.yaml)
CI passes (if applicable)
- [ ] [Device performance
regression](https://github.com/tenstorrent/tt-metal/actions/workflows/perf-device-models.yaml)
CI passes (if applicable)
- [ ] **(For models and ops writers)** Full [new models
tests](https://github.com/tenstorrent/tt-metal/actions/workflows/full-new-models-suite.yaml)
CI passes (if applicable)
- [ ] New/Existing tests provide coverage for changes
@dimitri-tenstorrent
Copy link
Contributor

Closed with #17666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1
Projects
None yet
Development

No branches or pull requests

2 participants