-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Fix nightly Release #3511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix nightly Release #3511
Conversation
The previous tsconfig.json was including test-related files and directories in the build output, causing the npm package to fail at runtime due to missing devDependencies. This change updates the 'exclude' array in packages/cli/tsconfig.json to correctly ignore all test files and the test-utils directory, ensuring a clean and functional build.
The previous workflow was attempting to install the @google/gemini-cli-core package using an npm tag, which was causing the release to fail. This change updates the workflow to install the package using the specific version number, ensuring that the correct dependency is installed and the release can proceed.
the nightly build from utc 07/08 won't run. gemini thinks its one of these 2 issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of Changes
Hello @mattKorwel, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request aims to address a potential race condition that may have caused a recent nightly build failure. The primary change involves updating the tsconfig.json
file to exclude additional test-related files and directories, which may help stabilize the build process.
Highlights
- Build Configuration: The
tsconfig.json
file for thecli
package has been updated to exclude test files with the.tsx
extension and thesrc/test-utils
directory from the build process.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request aims to fix a nightly release by excluding test files from the TypeScript build, which is a good step towards improving build hygiene. However, the change is incomplete as it doesn't exclude all configured test file patterns (e.g., *.spec.ts(x)
files). I've added a comment with a suggestion to address this to make the build more robust and fully prevent test code from leaking into production artifacts.
"src/**/*.test.ts", | ||
"src/**/*.test.tsx", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this correctly excludes *.test.tsx
files, the vitest.config.ts
for this package is also configured to find *.spec.ts
and *.spec.tsx
files. To ensure all test files are excluded from the production build and prevent the kind of issue this PR is trying to fix, it's important to exclude spec
files as well.
You can use glob brace expansion to cover both patterns concisely.
"src/**/*.{test,spec}.ts",
"src/**/*.{test,spec}.tsx",
Code Coverage Summary
CLI Package - Full Text Report
Core Package - Full Text Report
For detailed HTML reports, please see the 'coverage-reports-24.x' artifact from the main CI run. |
TLDR
I'm not 100% sure this fixes it but I think maybe we hit a race condition on the last broken nightly build.
This led to a successful test build.