Skip to content

Conversation

@rjaegers
Copy link
Member

@rjaegers rjaegers commented Oct 16, 2025

🚀 Hey, I have created a Pull Request

Description of changes

This pull request refactors several GitHub Actions workflow files to standardize the way runner labels are handled and improve documentation for workflow inputs. The main focus is on consistently using JSON arrays for runner labels, simplifying matrix definitions, and enhancing input descriptions for clarity. These changes help reduce ambiguity, make the workflows easier to maintain, and improve support for multi-architecture and self-hosted runners.

Standardization of runner label handling:

  • Updated all workflow files (wc-build-push.yml, wc-build-push-test.yml, wc-dependency-review.yml, wc-integration-test.yml, wc-sanitize-image-name.yml) to consistently parse runner labels from JSON arrays using fromJson, removing previous logic that handled both plain strings and arrays. This ensures uniform runner selection and simplifies the code. [1] [2] [3] [4]

Improvements to workflow input documentation:

  • Enhanced input descriptions in workflow files (wc-build-push-test.yml, wc-dependency-review.yml) to provide clear examples and clarify expected formats for runner labels, Docker registry, image names, and devcontainer metadata files. This helps users understand how to configure workflows correctly. [1] [2]

Matrix and strategy simplification:

  • Refactored matrix definitions in build and test jobs to directly use parsed JSON arrays for runner labels, removing conditional logic and making multi-architecture support more robust. [1] [2] [3]

Security and permissions adjustments:

  • Updated job permissions and secrets handling, ensuring required Docker registry credentials are passed to integration test jobs and clarifying when secrets are needed based on registry selection. [1] [2]

Minor workflow cleanups:

  • Removed unnecessary steps (such as a redundant actions/checkout in wc-build-push.yml) and made minor naming adjustments for job clarity. [1] [2]

Let me know if you'd like to see how these changes affect a specific workflow or if you have questions about multi-architecture runner support!

✔️ 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 rjaegers requested a review from a team as a code owner October 16, 2025 09:09
Copilot AI review requested due to automatic review settings October 16, 2025 09:09
Copy link
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 standardizes GitHub Actions workflow runner label handling by requiring all runner labels to be passed as JSON arrays, removing the previous fallback logic that supported both plain strings and JSON arrays.

Key Changes:

  • Removed conditional logic that detected JSON arrays vs plain strings in runs-on fields
  • Updated all runner-labels inputs to require valid JSON array format with updated descriptions
  • Changed default values from plain strings (e.g., ubuntu-latest) to JSON arrays (e.g., ["ubuntu-latest"])

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.github/workflows/wc-sanitize-image-name.yml Simplified runs-on to always use fromJson() without conditional checks
.github/workflows/wc-integration-test.yml Removed description and simplified runs-on field
.github/workflows/wc-dependency-review.yml Updated input description, changed default to JSON array format, simplified runs-on
.github/workflows/wc-build-push.yml Simplified runs-on fields, updated job name formatting, removed unnecessary checkout step
.github/workflows/wc-build-push-test.yml Updated input descriptions to clarify JSON array requirement, changed defaults to JSON arrays
.github/workflows/continuous-integration.yml Removed emoji from job name

@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2025

⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 22 0 0 0.5s
✅ DOCKERFILE hadolint 2 0 0 0.75s
✅ GHERKIN gherkin-lint 6 0 0 2.32s
✅ JSON npm-package-json-lint yes no no 0.44s
✅ JSON prettier 15 2 0 0 0.48s
✅ JSON v8r 15 0 0 7.25s
✅ MARKDOWN markdownlint 11 0 0 0 0.9s
✅ MARKDOWN markdown-table-formatter 11 0 0 0 0.23s
✅ REPOSITORY gitleaks yes no no 0.97s
✅ REPOSITORY git_diff yes no no 0.01s
✅ REPOSITORY grype yes no no 28.43s
✅ REPOSITORY secretlint yes no no 1.0s
✅ REPOSITORY syft yes no no 2.0s
✅ REPOSITORY trivy yes no no 5.46s
✅ REPOSITORY trivy-sbom yes no no 0.25s
✅ REPOSITORY trufflehog yes no no 2.37s
⚠️ SPELL lychee 73 1 0 13.49s
✅ YAML prettier 28 0 0 0 1.2s
✅ YAML v8r 28 0 0 8.05s
✅ YAML yamllint 28 0 0 0.94s

Detailed Issues

⚠️ SPELL / lychee - 1 error
[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)
[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)
[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?
📝 Summary
---------------------
🔍 Total..........122
✅ Successful.....119
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded.........0
❓ Unknown..........0
🚫 Errors...........1

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?

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 [email protected] --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_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
Contributor

github-actions bot commented Oct 16, 2025

📦 Container Size Analysis

Note

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

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 536.91 MB 536.91 MB 471 B (0%) 🔽
linux/arm64 493.59 MB 493.59 MB +830 B (+0%) 🔼

@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2025

📦 Container Size Analysis

Note

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

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 691.11 MB 691.11 MB +1.41 kB (+0%) 🔼
linux/arm64 674.32 MB 674.32 MB +928 B (+0%) 🔼

@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2025

Test Results

 5 files  ±0   5 suites  ±0   3m 42s ⏱️ - 2m 12s
31 tests ±0  31 ✅ ±0  0 💤 ±0  0 ❌ ±0 
65 runs  ±0  65 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 6167fc6. ± Comparison against base commit 4c4130c.

♻️ This comment has been updated with latest results.

Copilot AI review requested due to automatic review settings October 16, 2025 09:35
Copy link
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 6 out of 6 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings October 16, 2025 10:58
Copy link
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 6 out of 6 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings October 16, 2025 12:26
@sonarqubecloud
Copy link

Copy link
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 6 out of 6 changed files in this pull request and generated no new comments.

@rjaegers rjaegers enabled auto-merge October 16, 2025 12:39
@rjaegers rjaegers added this pull request to the merge queue Oct 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 16, 2025
@rjaegers rjaegers added this pull request to the merge queue Oct 16, 2025
Merged via the queue into main with commit 1567015 Oct 16, 2025
35 checks passed
@rjaegers rjaegers deleted the ci/fix-job-naming branch October 16, 2025 13:14
@github-actions
Copy link
Contributor

Pull Request Report (#980)

Static measures

Description Value
Number of added lines 54
Number of deleted lines 35
Number of changed files 6
Number of commits 7
Number of reviews 6
Number of comments (w/o review comments) 5
Number of reviews that contains a comment to resolve 5
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 6

Time related measures

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

Status check related measures

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

@github-actions
Copy link
Contributor

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

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.

3 participants