Skip to content

Always set and default REGISTRY_PUBLISH in the test pipeline - #1920

Merged
dmikusa merged 1 commit into
mainfrom
fix/registry-publish
Aug 11, 2026
Merged

dmikusa merged 1 commit into
mainfrom
fix/registry-publish

Conversation

@dmikusa

@dmikusa dmikusa commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

When pipeline 1.47.1 renamed TTL_SH_PUBLISH to REGISTRY_PUBLISH (for the local registry integration-test change), the env var was dropped from the Package Buildpack step of the Create Package Test job used by buildpacks without integration tests (e.g. microsoft-openjdk). Because package-buildpack.sh runs under set -u, the job aborted with REGISTRY_PUBLISH: unbound variable:

paketo-buildpacks/microsoft-openjdk#412

Changes

  • Restore REGISTRY_PUBLISH: "false" in the Package Buildpack step env in octo/test.go (the same pattern as the prior TTL_SH_PUBLISH: "false").
  • Make octo/package-buildpack.sh defensive: if [ "${REGISTRY_PUBLISH:-}" = "true" ] so an unset variable no longer triggers the unbound-variable error.
  • Regenerate the statik bundle.

Validated by regenerating the microsoft-openjdk workflows and pushing to PR 412, where Create Package Test went green.

Restore the REGISTRY_PUBLISH env var (renamed from TTL_SH_PUBLISH) to the
package-buildpack step of the create-package test job used by buildpacks
without integration tests, and guard the script against an unset variable.
Under `set -u`, referencing an unbound REGISTRY_PUBLISH aborted the job
with a 'REGISTRY_PUBLISH: unbound variable' error.
@dmikusa
dmikusa requested a review from a team as a code owner August 11, 2026 04:36
@dmikusa dmikusa added type:bug A general bug semver:patch A change requiring a patch version bump labels Aug 11, 2026
@dmikusa
dmikusa merged commit 34a5fc2 into main Aug 11, 2026
6 checks passed
@dmikusa
dmikusa deleted the fix/registry-publish branch August 11, 2026 04:38
This was referenced Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch A change requiring a patch version bump type:bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant