Skip to content

Extend job launches with Git revision, access modes#154

Merged
pfitzseb merged 17 commits into
mainfrom
mp/exposed-package-app
Jul 13, 2026
Merged

Extend job launches with Git revision, access modes#154
pfitzseb merged 17 commits into
mainfrom
mp/exposed-package-app

Conversation

@mortenpi

Copy link
Copy Markdown
Member

No description provided.

@lamdor

lamdor commented Jul 1, 2026

Copy link
Copy Markdown
Member

@mortenpi @pfitzseb Any chance this can be ready to merge soon?

pfitzseb and others added 9 commits July 13, 2026 12:13
Adds docstrings for JobAccessMode, JobRemoteAccess, PackageAppRevision,
LatestRelease, Branch, and GitRevision, and includes them in the reference
manual (required by Documenter's checkdocs=:all). Also redacts the password
in JobAccessMode.Password's printed representation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Extracts _jobaccess_auth_args and _jobaccess_submit_args, used by the batch,
package, and application job submission paths. This also fixes package jobs
crashing with a MethodError when submitted with the (unsupported) Password or
LoggedInUsers access modes: all paths now throw an InvalidRequestError that
does not leak the password into the error message.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The batch path now resolves the interactive product via a helper, fixing a
latent FieldError on its error path (BatchImage has .product, not
.product_name). Package (userapp) jobs intentionally keep the hardcoded
'package-interactive' product, now documented with a comment.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Maps all four JobAccessMode variants to the backend's legacy appArgs
encoding (normalized by translate_auth_args! server-side). Also makes the
default LatestRelease revision omit branch_name from the submission instead
of sending an empty string, matching the wire format of older clients.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Adds unit tests for the access-mode appArgs encodings (incl. password
redaction in printing), _jobaccess_submit_args, interactive product
resolution, and the revision argument mapping; exercises
expose=JobRemoteAccess end-to-end against the mocked backend. Also adds the
new public types to the public API allowlist.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Documents the expose kwarg's JobRemoteAccess option (incl. the port-only
default of JustMe + random DNS prefix), the new PackageJob image/revision
kwargs, adds a guide example and changelog entries, and fixes a module-
docstring cross-reference that broke the Documenter build.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pfitzseb
pfitzseb marked this pull request as ready for review July 13, 2026 13:39
@pfitzseb
pfitzseb self-requested a review July 13, 2026 13:40
@pfitzseb
pfitzseb merged commit ebe36f9 into main Jul 13, 2026
14 checks passed
@pfitzseb
pfitzseb deleted the mp/exposed-package-app branch July 13, 2026 15:59
@lamdor
lamdor restored the mp/exposed-package-app branch July 13, 2026 17:06
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.

4 participants