Skip to content

Universal image squash - #2028

Draft
Kaniska (v-Kaniska244) wants to merge 6 commits into
devcontainers:mainfrom
v-Kaniska244:universal-image-squash-build-tool
Draft

Kaniska (v-Kaniska244) wants to merge 6 commits into
devcontainers:mainfrom
v-Kaniska244:universal-image-squash-build-tool

Conversation

@v-Kaniska244

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Universal retries lack the required tool setup, and the smoke assertion conflicts with the supported disable override.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity

Open (2)
What changed in this PR

Adds single-layer squashing for the Universal image during testing and publishing.

Changes:

  • Adds configurable Universal image squashing and tag publishing.
  • Installs docker-squash in relevant workflows and validates layer count.
  • Bumps Universal to 6.2.0 and updates documentation.
File Description
src/​universal/​README.md Updates 6.2 image references.
src/​universal/​manifest.json Bumps version to 6.2.0.
package.json Adds the push test script.
build/​test-push.js Tests squashing and push behavior.
build/​src/​utils/​config.js Adds squash configuration resolution.
build/​src/​push.js Squashes and publishes Universal tags.
build/​config.json Enables Universal squashing.
.github/​workflows/​smoke-universal.yaml Installs the squashing tool.
.github/​workflows/​push.yml Configures release publishing.
.github/​workflows/​push-manual-dev.yml Configures manual development publishing.
.github/​workflows/​push-dev.yml Configures development publishing.
.github/​actions/​smoke-test/​test.sh Validates the filesystem layer count.
.github/​actions/​smoke-test/​build.sh Squashes smoke-test images.
.github/​actions/​setup-docker-squash/​action.yaml Adds reusable tool setup.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread build/config.json
],

"flattenBaseImage": [],
"squashUniversalImage": true,
Comment on lines +22 to +26
layer_count="$(docker image inspect --format '{{len .RootFS.Layers}}' "${id_image}")"
if [[ "${layer_count}" -ne 1 ]]; then
echo "Universal image has ${layer_count} filesystem layers; expected 1."
exit 1
fi

This branch has not been deployed

No deployments
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.

2 participants