Skip to content

fix: restore windows ci smoke#10

Merged
Dhruv2mars merged 6 commits intomainfrom
fix/ci-windows-env
Mar 20, 2026
Merged

fix: restore windows ci smoke#10
Dhruv2mars merged 6 commits intomainfrom
fix/ci-windows-env

Conversation

@Dhruv2mars
Copy link
Owner

Summary\n- fix Windows package-smoke env syntax in CI\n- add a workflow contract test so it does not regress\n- include that test in the CLI package test runner\n\n## Testing\n- node --test packages/cli/test/ci-contract.test.js\n- bun run test\n- bun run check

@coderabbitai
Copy link

coderabbitai bot commented Mar 20, 2026

Warning

Rate limit exceeded

@Dhruv2mars has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 7 minutes and 39 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dd2d7a36-988c-4645-b703-5dcfb675e7bd

📥 Commits

Reviewing files that changed from the base of the PR and between 91ab0d9 and b49320c.

📒 Files selected for processing (3)
  • packages/cli/test/ci-contract.test.js
  • packages/cli/test/codexchat-lib.test.js
  • scripts/smoke-install.mjs
📝 Walkthrough

Walkthrough

This pull request updates the CI workflow configuration to declare environment variables in explicit env blocks rather than inline, adds a contract test to validate the CI workflow structure, and improves cross-platform test handling. Changes include modifications to the CI workflow file, a new test validating workflow configuration, updates to test utilities for Windows compatibility (executable stubs and shebang detection), and refinements to cache path assertions to use path construction functions instead of hard-coded strings.

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides a summary of changes and testing commands but does not follow the required template structure with 'What', 'Why', 'Checks' checklist, and 'Notes' sections. Reorganize the description to match the template: add 'What' (what was fixed), 'Why' (the reason for the change), check the 'Checks' checklist items, and include 'Notes' if relevant.
Title check ❓ Inconclusive The title 'fix: restore windows ci smoke' is vague and unclear; it uses shorthand terms ('smoke', 'restore', 'ci') that don't convey specific information about the changeset to someone scanning history. Improve clarity with a more descriptive title like 'fix: correct Windows CI environment variable syntax in package-smoke workflow' or 'fix: use workflow-safe env block for CODEXCHAT_SKIP_DOWNLOAD in CI'.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ci-windows-env
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
packages/cli/test/ci-contract.test.js (1)

14-14: Scope the package-smoke block extraction more tightly.

Line [14] currently captures from package-smoke to end-of-file, which can mask regressions if more jobs are added later and happen to match the assertions.

🔧 Suggested hardening diff
-  const packageSmoke = text.match(/  package-smoke:[\s\S]*/)?.[0] ?? "";
+  const packageSmoke = text.match(
+    /^  package-smoke:[\s\S]*?(?=^  [a-z0-9_-]+:|(?![\s\S]))/m
+  )?.[0] ?? "";
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/cli/test/ci-contract.test.js` at line 14, The current extraction
stored in the packageSmoke variable uses a greedy regex (text.match(/ 
package-smoke:[\s\S]*/)) which captures to EOF; change the match call that
defines packageSmoke to use a non-greedy pattern with a lookahead so it stops at
the next top-level job or end-of-file (e.g. replace the regex with a non-greedy
variant and a lookahead such as using [\s\S]*? with (?=\n {2}\S|$)); update the
text.match invocation that assigns packageSmoke to use this tightened regex so
only the package-smoke job block is captured.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@packages/cli/test/ci-contract.test.js`:
- Line 14: The current extraction stored in the packageSmoke variable uses a
greedy regex (text.match(/  package-smoke:[\s\S]*/)) which captures to EOF;
change the match call that defines packageSmoke to use a non-greedy pattern with
a lookahead so it stops at the next top-level job or end-of-file (e.g. replace
the regex with a non-greedy variant and a lookahead such as using [\s\S]*? with
(?=\n {2}\S|$)); update the text.match invocation that assigns packageSmoke to
use this tightened regex so only the package-smoke job block is captured.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b72ca797-44bf-4e88-8e7f-95b74f9d4202

📥 Commits

Reviewing files that changed from the base of the PR and between f39f08b and 91ab0d9.

📒 Files selected for processing (6)
  • .github/workflows/ci.yml
  • packages/cli/scripts/test.js
  • packages/cli/test/ci-contract.test.js
  • packages/cli/test/codexchat-lib.test.js
  • packages/cli/test/install-lib.test.js
  • packages/cli/test/release-contract.test.js

@Dhruv2mars Dhruv2mars merged commit 5e72611 into main Mar 20, 2026
11 checks passed
@Dhruv2mars Dhruv2mars deleted the fix/ci-windows-env branch March 20, 2026 09:23
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.

1 participant