Skip to content

CL-8999 | run the CI test workflow on v2-dev, v2-staging and v2-beta - #313

Open
SakshiKoli-CS wants to merge 1 commit into
v2-devfrom
CL-8999
Open

SakshiKoli-CS wants to merge 1 commit into
v2-devfrom
CL-8999

Conversation

@SakshiKoli-CS

@SakshiKoli-CS SakshiKoli-CS commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What

Jira: CL-8999

.github/workflows/test.yml came with the V2 skeleton (d191fde) but triggers only on feature/development-v2, a branch that no longer exists. It has never run on a V2 PR, so the local pre-push hook has been the only test gate.

  • Triggers: pull_request and push on v2-dev, v2-staging and v2-beta.
  • Test step: npm test instead of npm run test:coverage. CI is there to run the tests. The 100% coverage threshold fails on v2-dev today (99.97%, existing gaps in 13 files), so it would fail every PR.
  • walkFileSystem sorts each directory's entries by name (src/functions/os-helper.ts). fs.promises.opendir returns entries in disk order, which is alphabetical on macOS but not on Linux. So functions:serve listed and registered functions in an order that depended on the OS. The first CI run on Linux failed the cloud-functions test that expects λ /a before λ /b.

The tests need no live project, environment, deployment or secrets. The API is mocked or served by a local test server, and test/credential-guard.setup.ts fakes the login. Live behaviour stays the E2E sanity suite's job.

Tests

  • A new os-helper test fakes the file system returning b.js before a.js and asserts that a.js comes out first. It fails without the sort, on macOS too, and passes with it.
  • Locally on Node 22 against v2-dev @ 3259c85: npm ci, npm run lint and npm run build pass. npm test passes: 202 suites, 4182 tests.
  • The test check on this PR passes on GitHub's ubuntu-latest runner.

#claude_code#
🤖 Generated with Claude Code

@SakshiKoli-CS
SakshiKoli-CS requested a review from a team as a code owner November 27, 2026 05:54
@snyk-io

snyk-io Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 2 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 2
  • Medium without fixes: 1
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 2 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 2
  • Medium without fixes: 1
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

test.yml came with the V2 skeleton (d191fde) and triggers only on
feature/development-v2, a branch that no longer exists, so it has never
run on a V2 PR. The only test gate has been the local pre-push hook.

- Trigger on pull_request and push for v2-dev, v2-staging and v2-beta.
- Run npm test instead of npm run test:coverage. CI is there to run the
  tests; the 100% coverage threshold fails on v2-dev today (99.97%,
  pre-existing gaps in 13 files) and would turn every PR red.
- walkFileSystem now yields each directory's entries in name order.
  fs.promises.opendir returns them in disk order, which is alphabetical
  on macOS but not on Linux, so functions:serve listed (and registered)
  functions in an OS-dependent order. The first CI run on Linux failed
  the cloud-functions test that expects "λ /a" before "λ /b".

The tests need no live project, environment, deployment or secrets: the
API is mocked or served by a local test server and
test/credential-guard.setup.ts fakes the login.

#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 4 14 25 ✅ Passed
🟡 Medium Severity 2 13 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 14
  • Medium without fixes: 13
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants