matrixorigin / matrixorigin/matrixone

[Bug]: Shared CI build artifact upload fails after successful build

Open
#28,437 2 comments 0 reactions 1 assignee Claimed by @gouhongshen View on GitHub
deferred kind/bug
Dominant language
Go
Stars
1.9k
Forks
311
Avg merge
1d 3h
Merged PRs (30d)
768

Description

## Is there an existing issue for the same bug?

- [x] I have searched MatrixOne and MatrixOrigin issues. #27526 is a closed, distinct `ECONNRESET` failure in the UT-coverage artifact producer; no issue covers this build-artifact `403` finalization followed by `409` conflict path.

## Branch Name

`agent/issue-28377-9fba87db`

## Commit ID

`5c36b78d56bd9a7d8e3758ed3249b52c3c1359ee`

## Other Environment Information

- GitHub Actions hosted Ubuntu runner
- Workflow: `MatrixOne ALL CI`, `pull_request_target`, attempt 1

## Actual Behavior

The shared build completed, including `Build MatrixOne (cached)`, `Test and build jstfu`, and `Package build artifact`. The following `Upload build artifact` step failed while finalizing `mo-shared-build-attempt-1`:

```text
Failed to FinalizeArtifact: Received non-retryable error: Failed request: (403) Forbidden: Error from intermediary with HTTP status code 403 "Forbidden"
```

The workflow retried the upload twice with the same artifact name. Both retries failed before uploading with:

```text
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
```

Thus the build job fails after a successful product build because the first failed finalization leaves the artifact name reserved.

## Expected Behavior

The build artifact should finalize successfully. If a transient artifact-service failure leaves a name reserved, the retry path should recover without turning a successful build into a failed workflow.

## Steps to Reproduce

1. Open the linked workflow run on the specified head.
2. Inspect `Matrixone Shared Build / Build MatrixOne (shared)`.
3. Confirm that the three product build/package steps succeeded.
4. Inspect `Upload build artifact`: observe the 403 finalization failure followed by 409 conflicts on the two same-name retries.

## Additional Information

- PR: https://github.com/matrixorigin/matrixone/pull/28416
- Workflow run: https://github.com/matrixorigin/matrixone/actions/runs/34250555550
- Failing job: https://github.com/matrixorigin/matrixone/actions/runs/34250555550/job/102143830393
- This is independent of PR #28416: every compile, test/build, and packaging step in the failed job succeeded; only the Actions artifact-service interaction failed.
- #27526 recorded a previous artifact-service network failure, but it was a different `ECONNRESET` failure in a coverage producer and is closed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.