Skip to content

fix(check-workflows): mock action-artifacts capability probe endpoints#2450

Draft
matthiasL-scality wants to merge 2 commits into
development/2.15from
fix/action-artifacts-capability-probe-mock
Draft

fix(check-workflows): mock action-artifacts capability probe endpoints#2450
matthiasL-scality wants to merge 2 commits into
development/2.15from
fix/action-artifacts-capability-probe-mock

Conversation

@matthiasL-scality

Copy link
Copy Markdown

Context

action-artifacts@4.3.0 added a capability probe that fires a GET to /presign-upload/capability-probe/probe.bin and /presign-upload-part/capability-probe/probe.bin before every upload, to detect presigned/multipart upload support. These endpoints are not yet deployed (pending PTFE-3137 and PTFE-3219).

When v4 was pointed at 4.3.0, the check-workflows CI broke with ERR_NOCK_NO_MATCH because nock had no interceptor for the probe requests. The tag was rolled back as a temporary fix.

Changes

Commit 1 — fix: Add presignUpload and presignUploadPart endpoints to the Mockapi definition in archive-artifacts.spec.ts, and mock them with 404 in commonMockApi(). A 404 response makes the action fall back to the standard upload path, keeping existing tests valid.

Commit 2 — test: Pin archive-artifacts/action.yaml to action-artifacts@4.3.0 (the version with the probe) so that check-workflows CI actually reproduces the failure and validates the fix.

How to validate on Monday

After PTFE-3137 and PTFE-3219 are merged and action-artifacts is re-released:

  1. Re-run the CI on this PR — it should still pass (the probe returns 404 in tests, action uses basic upload)
  2. Merge this PR before bumping the v4 tag to the new release
  3. In a follow-up, revert the pin in commit 2 back to @v4

matthiasL-scality and others added 2 commits June 26, 2026 15:28
action-artifacts@4.3.0+ probes /presign-upload/ and /presign-upload-part/
before every upload to detect presigned/multipart capability. Without
these nock intercepts the tests throw ERR_NOCK_NO_MATCH.

Reply 404 so the action falls back to the standard upload path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ts@4.3.0

Pins the version used in workflow tests to 4.3.0 which includes the
capability probe. This makes the check-workflows CI reproduce the
ERR_NOCK_NO_MATCH failure and validate the probe mocks added in the
previous commit.

Revert to @v4 once action-artifacts 4.3.0+ is the stable tag.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
body: [],
},
},
// action-artifacts@v4.5+ probes these endpoints before each upload to detect

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment says @v4.5+ but the PR description says @4.3.0 introduced the probe (and the action is pinned to 4.3.0). Update the version reference to match.

Suggested change
// action-artifacts@v4.5+ probes these endpoints before each upload to detect
// action-artifacts@4.3.0+ probes these endpoints before each upload to detect

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.

1 participant