[BUG] Manual artifact publication fails without a diagnostic #23

Closed
opened 2026-10-16 02:11:24 +02:00 by erikinkinen · 4 comments
Owner

Summary

The manual job completes rendering and its public publication plan, then the
protected artifact publisher exits 1 without reporting its first error.
Publication still fails after selecting the built-in job credential explicitly.

Reproduction

Run the original manual job at Docs 50f2266f (CI1653). The public plan succeeds;
the protected publication step then exits 1. CI1651 at 14e36d18 fails at the
same transition.

Expected and actual behavior

Complete publication using explicit inputs and report failures as bounded fixed
categories without exposing credentials, remote text or exception messages.
The release validator expects %2F in the generated tag's HTML URL, while
Forgejo returns a literal slash at that exact repository/tag path. The observed
release therefore violates the validator's release-tag-binding-differs check.
The frontloader also retains exceptions but returns 1 without a console diagnostic.
Failures before receipt creation can also leave no receipt. CI1653 emits no
missing/empty credential notice; its exact first exception remains unobserved.

Environment and identity

Docs 50f2266f31ab206bcd6f5ee91033048d3cf0103b, feature/posix-compat;
Debian trixie in rust:latest. The publisher selects a numeric TLS endpoint,
hostname, CA and one credential variable. No credential values were fetched from Forgejo.
The earlier CI1649 at 1fabae51 succeeds with the previous publisher.

Evidence and prior checks

CI1653 passes 247 tests and three TeX passes with warning/box counts 41→1→0.
Its complete original log is 611,339 bytes, SHA-256
e06c2252553863be92e1b02c954a9bb4db33613d2ed67f7bf98ff1d647488893.
The plan precedes exit 1; the job fails. Subsequent secret-name metadata lists
were empty, but they did not identify the original first error. Neither the
publication receipt nor its HTTP result was obtained from that job. A later
read-only metadata request finds the correctly scoped release at 14e36d18;
its literal-slash HTML URL establishes the validator mismatch, without proving
which error was first in the earlier job.

Tracking

Related: PR #4. The manual runtime
regression in #22 is resolved.

  • Select the existing job credential explicitly, without a fallback.
  • Refuse missing/empty selected credentials before receipt creation without exposing their values.
  • Accept Forgejo's canonical release URL while rejecting foreign repository/tag bindings.
  • Report the retained first failure and cleanup state through an explicit bounded diagnostic.
  • Complete the original publication job on the repaired source.
## Summary The manual job completes rendering and its public publication plan, then the protected artifact publisher exits 1 without reporting its first error. Publication still fails after selecting the built-in job credential explicitly. ## Reproduction Run the original manual job at Docs `50f2266f` (CI1653). The public plan succeeds; the protected publication step then exits 1. CI1651 at `14e36d18` fails at the same transition. ## Expected and actual behavior Complete publication using explicit inputs and report failures as bounded fixed categories without exposing credentials, remote text or exception messages. The release validator expects `%2F` in the generated tag's HTML URL, while Forgejo returns a literal slash at that exact repository/tag path. The observed release therefore violates the validator's `release-tag-binding-differs` check. The frontloader also retains exceptions but returns 1 without a console diagnostic. Failures before receipt creation can also leave no receipt. CI1653 emits no missing/empty credential notice; its exact first exception remains unobserved. ## Environment and identity Docs `50f2266f31ab206bcd6f5ee91033048d3cf0103b`, feature/posix-compat; Debian trixie in `rust:latest`. The publisher selects a numeric TLS endpoint, hostname, CA and one credential variable. No credential values were fetched from Forgejo. The earlier CI1649 at `1fabae51` succeeds with the previous publisher. ## Evidence and prior checks CI1653 passes 247 tests and three TeX passes with warning/box counts 41→1→0. Its complete original log is 611,339 bytes, SHA-256 `e06c2252553863be92e1b02c954a9bb4db33613d2ed67f7bf98ff1d647488893`. The plan precedes exit 1; the job fails. Subsequent secret-name metadata lists were empty, but they did not identify the original first error. Neither the publication receipt nor its HTTP result was obtained from that job. A later read-only metadata request finds the correctly scoped release at `14e36d18`; its literal-slash HTML URL establishes the validator mismatch, without proving which error was first in the earlier job. ## Tracking Related: [PR #4](https://git.erikinkinen.fi/erix/docs/pulls/4). The manual runtime regression in [#22](https://git.erikinkinen.fi/erix/docs/issues/22) is resolved. - [x] Select the existing job credential explicitly, without a fallback. - [x] Refuse missing/empty selected credentials before receipt creation without exposing their values. - [x] Accept Forgejo's canonical release URL while rejecting foreign repository/tag bindings. - [x] Report the retained first failure and cleanup state through an explicit bounded diagnostic. - [x] Complete the original publication job on the repaired source.
Author
Owner

50f2266f selects the built-in job token directly and reports an absent or empty selection before publisher intake. The publisher modules, endpoint and deadlines are unchanged. Fresh CI must still confirm publication succeeds.

`50f2266f` selects the built-in job token directly and reports an absent or empty selection before publisher intake. The publisher modules, endpoint and deadlines are unchanged. Fresh CI must still confirm publication succeeds.
erikinkinen changed title from [BUG] Manual publication selects an unavailable CI credential to [BUG] Manual artifact publication fails without a diagnostic 2026-10-16 02:39:57 +02:00
Author
Owner

The original CI1653 still fails after its publication plan, with no unavailable-credential notice. A separate read-only check found a concrete binding mismatch: Forgejo returns a literal slash in the generated tag’s HTML URL; the client expects %2F. The release is otherwise bound to the expected repository, tag and earlier source.

I’m fixing that comparison and adding an explicit bounded diagnostic for retained first-error categories and cleanup state. The earlier job’s first exception remains unobserved.

The original CI1653 still fails after its publication plan, with no unavailable-credential notice. A separate read-only check found a concrete binding mismatch: Forgejo returns a literal slash in the generated tag’s HTML URL; the client expects `%2F`. The release is otherwise bound to the expected repository, tag and earlier source. I’m fixing that comparison and adding an explicit bounded diagnostic for retained first-error categories and cleanup state. The earlier job’s first exception remains unobserved.
Author
Owner

Commit 035c3392 fixes the HTML tag URL comparison while retaining exact origin, repository and tag checks. The protected CI caller now selects one bounded diagnostic with fixed first-error and cleanup-state fields after cleanup attempts, including failures before receipt creation. The full 261-test suite and six TLS cases pass; the CI publication job is pending. The final acceptance item stays open until that job succeeds.

[Commit `035c3392`](https://git.erikinkinen.fi/erix/docs/commit/035c33927faf85223c85d0df788b62be2ecc531c) fixes the HTML tag URL comparison while retaining exact origin, repository and tag checks. The protected CI caller now selects one bounded diagnostic with fixed first-error and cleanup-state fields after cleanup attempts, including failures before receipt creation. The full 261-test suite and six TLS cases pass; the CI publication job is pending. The final acceptance item stays open until that job succeeds.
Author
Owner

Docs 035c3392 passes CI1655. All 261 tests pass; the three manual passes finish with 41, 1 and 0 warnings. The original publication job succeeds, and its fixed diagnostic reports status 0 with owner, input and source retirement confirmed. Closing this issue.

Docs `035c3392` passes CI1655. All 261 tests pass; the three manual passes finish with 41, 1 and 0 warnings. The original publication job succeeds, and its fixed diagnostic reports status 0 with owner, input and source retirement confirmed. Closing this issue.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:33:41 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/docs#23
No description provided.