Repository navigation
CL-8999 | run the CI test workflow on v2-dev, v2-staging and v2-beta - #313
SakshiKoli-CS wants to merge 1 commit into
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ 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:
✅ BUILD PASSED - All security checks passed |
8288f0d to
4628169
Compare
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ 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:
✅ 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>
4628169 to
4c7cdb0
Compare
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ 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:
✅ BUILD PASSED - All security checks passed |
What
Jira: CL-8999
.github/workflows/test.ymlcame with the V2 skeleton (d191fde) but triggers only onfeature/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.pull_requestandpushonv2-dev,v2-stagingandv2-beta.npm testinstead ofnpm run test:coverage. CI is there to run the tests. The 100% coverage threshold fails onv2-devtoday (99.97%, existing gaps in 13 files), so it would fail every PR.walkFileSystemsorts each directory's entries by name (src/functions/os-helper.ts).fs.promises.opendirreturns entries in disk order, which is alphabetical on macOS but not on Linux. Sofunctions:servelisted and registered functions in an order that depended on the OS. The first CI run on Linux failed thecloud-functionstest that expectsλ /abeforeλ /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.tsfakes the login. Live behaviour stays the E2E sanity suite's job.Tests
os-helpertest fakes the file system returningb.jsbeforea.jsand asserts thata.jscomes out first. It fails without the sort, on macOS too, and passes with it.v2-dev@ 3259c85:npm ci,npm run lintandnpm run buildpass.npm testpasses: 202 suites, 4182 tests.testcheck on this PR passes on GitHub'subuntu-latestrunner.#claude_code#
🤖 Generated with Claude Code