[tests] Be robust against cross-platform differences#285
Conversation
Summary of ChangesHello @joshlf, 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 focuses on improving the reliability and consistency of the test suite across different operating systems. It addresses issues related to path variations and error messages that can lead to inconsistent test results on macOS compared to Linux. By adding redaction rules and filtering specific error messages, the changes ensure that test snapshots remain identical regardless of the platform. Highlights
Changelog
Activity
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 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 counter productive. 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. 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
|
There was a problem hiding this comment.
Code Review
This pull request aims to make test snapshots more robust across different platforms by adding more string redactions. The implementation refactors the redaction logic to use an iterator chain. However, this refactoring unintentionally changes the order of operations, which could break existing tests that rely on path redactions being applied first. I've suggested a fix to restore a safe order of redactions while keeping the new iterator-based approach.
In snapshots, filter out some macOS-specific strings to ensure snapshots remain identical cross-platform. gherrit-pr-id: G3d5c2ee786e5ab0192f326ea76ce310ca18eaaa7
00950c2 to
33ce692
Compare
In snapshots, filter out some macOS-specific strings to ensure snapshots
remain identical cross-platform.
Latest Update: v2 — Compare vs v1
📚 Full Patch History
Links show the diff between the row version and the column version.
⬇️ Download this PR
Branch
git fetch origin refs/heads/G3d5c2ee786e5ab0192f326ea76ce310ca18eaaa7 && git checkout -b pr-G3d5c2ee786e5ab0192f326ea76ce310ca18eaaa7 FETCH_HEADCheckout
git fetch origin refs/heads/G3d5c2ee786e5ab0192f326ea76ce310ca18eaaa7 && git checkout FETCH_HEADCherry Pick
git fetch origin refs/heads/G3d5c2ee786e5ab0192f326ea76ce310ca18eaaa7 && git cherry-pick FETCH_HEADPull
Stacked PRs enabled by GHerrit.