Addition of a Shadow Go Static Check which is 75% faster than the existing Check Saving 35mins per run - #5799
Addition of a Shadow Go Static Check which is 75% faster than the existing Check Saving 35mins per run#5799RishabhAgarwal-2001 wants to merge 19 commits into
Conversation
Summary of ChangesHello, 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 refines the ZRP laser bias current test suite by improving validation logic, correcting logging and error messages, and replacing non-deterministic sleep intervals with robust telemetry-based waiting mechanisms. These changes ensure more reliable test execution and better diagnostic information during failures. Highlights
Ignored Files
Using Gemini Code AssistThe 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 by creating a comment using either
Customization To customize the 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 Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request fixes several bugs in the laser bias current test, including correcting an impossible range check condition, fixing incorrect log messages, and replacing a static sleep with a gNMI await. The feedback suggests using gnmi.Watch with a predicate instead of gnmi.Await with an exact float value of 0.0 to prevent potential test flakiness and adhere to the style guide.
| run: go install honnef.co/go/tools/cmd/staticcheck@latest | ||
| - name: Cache staticcheck | ||
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | ||
| with: |
There was a problem hiding this comment.
GitHub Actions shares a cache storage limit (typically 10GB) across the entire repository. If this experimental workflow uploads a new, heavy staticcheck cache archive on every single commit, it will rapidly fill up that 10GB quota. GitHub will respond by aggressively evicting older caches. This means your experimental workflow could actively delete the caches used by your required workflows (like go.yml), slowing down CI for the whole team.
Possible Fix: Change the key to use something stable, like a hash of your go.mod file, so it only uploads a new cache when dependencies change.
There was a problem hiding this comment.
To Monitor during experimental phase: Since you removed GOGC=30, watch the GitHub Actions logs for OOM (Out of Memory) kills. If the runner crashes silently or the static analysis steps fail randomly, memory spikes are the likely culprit.
We are adding a new check that does the exact same thing as the Go check but faster. Currently running it as a shadow with the original check for few weeks before maturing it to replace the existing check.