Skip to content

chore: use Namespace cluster action for QA chart tests#14

Merged
roderik merged 1 commit intomainfrom
feat/nscloud-cluster
Sep 17, 2025
Merged

chore: use Namespace cluster action for QA chart tests#14
roderik merged 1 commit intomainfrom
feat/nscloud-cluster

Conversation

@roderik
Copy link
Copy Markdown
Member

@roderik roderik commented Sep 17, 2025

Summary

  • replace kind-based Kubernetes provisioning with Namespace nscloud setup + cluster action for chart installs
  • pin to specific commit SHAs and request 4x16 shape to ensure chart-testing throughput

Testing

  • bun run check
  • bun run typecheck
  • bun run test

Summary by Sourcery

CI:

  • Replace helm/kind-action with namespacelabs/nscloud-setup and nscloud-cluster-action for Kubernetes provisioning in QA workflow, pinned to specific commit SHAs and configured with 4x16 machine shape

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment thread .github/workflows/qa.yml Outdated
Comment on lines +195 to +198
- name: Configure Namespace access
if: (github.event_name == 'pull_request' || github.event_name == 'push') && steps.ct-changed.outputs.changed == 'true'
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
id: nscloud
uses: namespacelabs/nscloud-setup@b989f4420f16ab4efd52fcb69d33a51d575f24bc # v0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P1] Provide credentials to nscloud setup action

The new step switches from helm/kind-action to namespacelabs/nscloud-setup, but the action is invoked without the required authentication inputs. nscloud-setup expects either an API key or a preconfigured profile; otherwise it fails before provisioning any cluster. No secrets or profile inputs are passed or exported anywhere in this workflow, so the QA job will now error out as soon as the setup step runs and chart testing will never execute. Pass api-key, profile, or whatever the action requires for authentication.

Useful? React with 👍 / 👎.

@roderik roderik changed the title Use Namespace cluster action for QA chart tests chore: use Namespace cluster action for QA chart tests Sep 17, 2025
@roderik roderik force-pushed the feat/nscloud-cluster branch from ed5cde7 to ee6b97f Compare September 17, 2025 16:56
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

New security issues found

Comment thread .github/workflows/qa.yml
if: (github.event_name == 'pull_request' || github.event_name == 'push') && steps.ct-changed.outputs.changed == 'true'
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
id: nscloud
uses: namespacelabs/nscloud-setup@v0
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.

security (yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha): An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.

Source: opengrep

Comment thread .github/workflows/qa.yml

- name: Provision Namespace Kubernetes cluster
if: (github.event_name == 'pull_request' || github.event_name == 'push') && steps.ct-changed.outputs.changed == 'true'
uses: namespacelabs/nscloud-cluster-action@v0
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.

security (yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha): An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.

Source: opengrep

@github-actions github-actions Bot added the qa:running QA workflow is currently running label Sep 17, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 17, 2025

To view in Slack, search for: 1758128220.321679

@github-actions github-actions Bot added status:ready-for-review Pull request is ready for review qa:success QA workflow passed successfully chore Maintenance tasks and removed qa:running QA workflow is currently running labels Sep 17, 2025
@roderik roderik merged commit 3e9ca82 into main Sep 17, 2025
9 of 10 checks passed
@roderik roderik deleted the feat/nscloud-cluster branch September 17, 2025 18:16
@github-actions github-actions Bot added status:merged Pull request has been merged and removed status:ready-for-review Pull request is ready for review labels Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance tasks qa:success QA workflow passed successfully status:merged Pull request has been merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant