Skip to content

chore: verify xwin checksum#1099

Merged
Ron (rjaegers) merged 8 commits into
mainfrom
chore/verify-checksums
Jan 22, 2026
Merged

chore: verify xwin checksum#1099
Ron (rjaegers) merged 8 commits into
mainfrom
chore/verify-checksums

Conversation

@rjaegers
Copy link
Copy Markdown
Member

@rjaegers Ron (rjaegers) commented Jan 22, 2026

🚀 Hey, I have created a Pull Request

Description of changes

This pull request refactors the installation process for the xwin tool in the .devcontainer/cpp/Dockerfile to improve cross-architecture support and caching efficiency. The changes introduce multi-stage builds to download and extract the correct xwin binary for either AMD64 or ARM64 architectures, and move the installation logic into an earlier build stage. This also removes the previous direct download and extraction of xwin in the main image build step.

Key improvements to multi-architecture support and build efficiency:

  • Added multi-stage build steps (downloader-amd64, downloader-arm64, extractor) to download and extract the appropriate xwin binary for the target architecture, using checksums for verification. (.devcontainer/cpp/Dockerfile)
  • Moved the installation of xwin to an earlier stage and now copy the extracted binary into the final image, instead of downloading and extracting it during the main build step. (.devcontainer/cpp/Dockerfile)
  • Removed the previous combined installation step for xwin and ccache, now only installing ccache directly in the final image. (.devcontainer/cpp/Dockerfile)

✔️ Checklist

  • I have followed the contribution guidelines for this repository
  • I have added tests for new behavior, and have not broken any existing tests
  • I have added or updated relevant documentation
  • I have verified that all added components are accounted for in the SBOM

@rjaegers Ron (rjaegers) requested a review from a team as a code owner January 22, 2026 13:56
Copilot AI review requested due to automatic review settings January 22, 2026 13:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances supply-chain security by adding checksum verification for the xwin binary download. The changes refactor the Dockerfile to use a multi-stage build pattern that verifies the integrity of downloaded xwin artifacts before installation.

Changes:

  • Added architecture-specific downloader stages with SHA256 checksum verification for xwin downloads
  • Refactored xwin installation to use a multi-stage build pattern with separate downloader and extractor stages
  • Moved the XWIN_VERSION ARG to the top of the Dockerfile for better organization

Comment thread .devcontainer/cpp/Dockerfile
Comment thread .devcontainer/cpp/Dockerfile
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 22, 2026

⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 20 0 0 0.53s
✅ DOCKERFILE hadolint 3 0 0 0.74s
✅ GHERKIN gherkin-lint 6 0 0 2.51s
✅ JSON npm-package-json-lint yes no no 0.44s
✅ JSON prettier 21 4 0 0 0.54s
✅ JSON v8r 21 0 0 7.59s
✅ MARKDOWN markdownlint 12 0 0 0 0.99s
✅ MARKDOWN markdown-table-formatter 12 0 0 0 0.25s
✅ REPOSITORY checkov yes no no 18.8s
✅ REPOSITORY gitleaks yes no no 0.52s
✅ REPOSITORY git_diff yes no no 0.01s
✅ REPOSITORY grype yes no no 30.41s
✅ REPOSITORY secretlint yes no no 0.96s
✅ REPOSITORY syft yes no no 1.95s
✅ REPOSITORY trivy yes no no 6.07s
✅ REPOSITORY trivy-sbom yes no no 0.26s
✅ REPOSITORY trufflehog yes no no 2.43s
⚠️ SPELL lychee 80 5 0 37.71s
✅ YAML prettier 28 0 0 0 0.98s
✅ YAML v8r 28 0 0 8.32s
✅ YAML yamllint 28 0 0 0.81s

Detailed Issues

⚠️ SPELL / lychee - 5 errors
[IGNORED] docker://pandoc/extra:3.7.0@sha256:a703d335fa237f8fc3303329d87e2555dca5187930da38bfa9010fa4e690933a | Unsupported: Error creating request client: builder error for url (docker://pandoc/extra:3.7.0@sha256:a703d335fa237f8fc3303329d87e2555dca5187930da38bfa9010fa4e690933a)
[ERROR] https://www.conventionalcommits.org/en/v1.0.0/ | Network error: error sending request for url (https://www.conventionalcommits.org/en/v1.0.0/) Maybe a certificate error?
[ERROR] https://www.conventionalcommits.org/en/v1.0.0/ | Network error: error sending request for url (https://www.conventionalcommits.org/en/v1.0.0/) Maybe a certificate error?
[ERROR] https://www.conventionalcommits.org/en/v1.0.0/ | Error (cached)
[ERROR] https://docs.sigstore.dev/cosign/signing/overview/ | Network error: error sending request for url (https://docs.sigstore.dev/cosign/signing/overview/) Maybe a certificate error?
[403] https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads | Network error: Forbidden
[IGNORED] https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/philips-software/amp-devcontainer | Unsupported: Error creating request client: builder error for url (vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/philips-software/amp-devcontainer)
📝 Summary
---------------------
🔍 Total..........126
✅ Successful.....119
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded.........0
❓ Unknown..........0
🚫 Errors...........5

Errors in .github/CONTRIBUTING.md
[ERROR] https://www.conventionalcommits.org/en/v1.0.0/ | Network error: error sending request for url (https://www.conventionalcommits.org/en/v1.0.0/) Maybe a certificate error?

Errors in .github/TOOL_VERSION_ISSUE_TEMPLATE.md
[403] https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads | Network error: Forbidden

Errors in .github/workflows/pr-conventional-title.yml
[ERROR] https://www.conventionalcommits.org/en/v1.0.0/ | Network error: error sending request for url (https://www.conventionalcommits.org/en/v1.0.0/) Maybe a certificate error?

Errors in README.md
[ERROR] https://www.conventionalcommits.org/en/v1.0.0/ | Error (cached)
[ERROR] https://docs.sigstore.dev/cosign/signing/overview/ | Network error: error sending request for url (https://docs.sigstore.dev/cosign/signing/overview/) Maybe a certificate error?

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.3.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,DOCKERFILE_HADOLINT,GHERKIN_GHERKIN_LINT,JSON_V8R,JSON_PRETTIER,JSON_NPM_PACKAGE_JSON_LINT,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_GRYPE,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 22, 2026

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-base:edgeghcr.io/philips-software/amp-devcontainer-base:pr-1099

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 165.43 MB 165.43 MB +918 B (+0%) 🔼
linux/arm64 158.37 MB 158.37 MB +18 B (+0%) 🔼

Comment thread .devcontainer/cpp/Dockerfile Fixed
Comment thread .devcontainer/cpp/Dockerfile Fixed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 22, 2026

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-rust:edgeghcr.io/philips-software/amp-devcontainer-rust:pr-1099

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 545.84 MB 545.84 MB +807 B (+0%) 🔼
linux/arm64 500.48 MB 500.48 MB 80 B (0%) 🔽

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 22, 2026

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-cpp:edgeghcr.io/philips-software/amp-devcontainer-cpp:pr-1099

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 681.43 MB 681.24 MB 191.25 kB (-0.03%) 🔽
linux/arm64 663.29 MB 663.14 MB 147.77 kB (-0.02%) 🔽

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 22, 2026

Test Results

 7 files  ±0   7 suites  ±0   3m 36s ⏱️ ±0s
33 tests ±0  33 ✅ ±0  0 💤 ±0  0 ❌ ±0 
69 runs  ±0  69 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b208bc7. ± Comparison against base commit f42f104.

♻️ This comment has been updated with latest results.

Copilot AI review requested due to automatic review settings January 22, 2026 18:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread .devcontainer/cpp/Dockerfile
Comment thread .devcontainer/cpp/Dockerfile
Copilot AI review requested due to automatic review settings January 22, 2026 18:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread .devcontainer/cpp/Dockerfile
Comment thread .devcontainer/cpp/Dockerfile
Copilot AI review requested due to automatic review settings January 22, 2026 18:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread .devcontainer/cpp/Dockerfile
Comment thread .devcontainer/cpp/Dockerfile
@sonarqubecloud
Copy link
Copy Markdown

@rjaegers Ron (rjaegers) added this pull request to the merge queue Jan 22, 2026
Merged via the queue into main with commit e7aec51 Jan 22, 2026
42 checks passed
@rjaegers Ron (rjaegers) deleted the chore/verify-checksums branch January 22, 2026 20:26
@github-actions
Copy link
Copy Markdown
Contributor

Pull Request Report (#1099)

Static measures

Description Value
Number of added lines 52
Number of deleted lines 11
Number of changed files 1
Number of commits 8
Number of reviews 9
Number of comments (w/o review comments) 6
Number of reviews that contains a comment to resolve 8
Number of reviews that requested a change from the author 0
Number of reviews that approved the Pull Request 1
Get the total number of participants of a Pull Request 7

Time related measures

Description Value
PR lead time (from creation to close of PR) 6.5 Hours
Time that was spend on the branch before the PR was created 12 Sec
Time that was spend on the branch before the PR was merged 6.5 Hours
Time to merge after last review 1.7 Hours

Status check related measures

Description Value
Total runtime for last status check run (Workflow for PR) 44.8 Min
Total time spend in last status check run on PR 20 Min

@github-actions
Copy link
Copy Markdown
Contributor

🎉 Hooray! The changes in this pull request went live with the release of v6.7.1 🎉

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