Re-enable coverage reporting for firebase-js-sdk#9761
Re-enable coverage reporting for firebase-js-sdk#9761macastelaz wants to merge 4 commits intomainfrom
Conversation
…usly been turned off by #9101. Additional details can be found in go/firebase-js-sdk-coverage
|
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 restores code coverage reporting for the Firebase JavaScript SDK. It achieves this by configuring the webpack test setup to use a Babel plugin for code instrumentation, ensuring that test runs generate coverage data. This change is crucial for maintaining code quality and identifying untested areas within the SDK. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. 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 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. Footnotes
|
| name: Finalize Coveralls | ||
| needs: [test-the-rest-coverage, test-auth-coverage, test-firestore-coverage] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Coveralls Finished | ||
| uses: coverallsapp/github-action@master | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| parallel-finished: true No newline at end of file |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium test
There was a problem hiding this comment.
Code Review
This pull request introduces code instrumentation for test coverage using babel-plugin-istanbul in the webpack configuration. This instrumentation is activated when running in a CI environment or when the COVERAGE environment variable is explicitly set to 'true'. A review comment points out a potential issue with the process.env.CI check, as process.env.CI set to the string 'false' would still evaluate to true, potentially enabling coverage unintentionally. A more robust check is suggested to explicitly handle this case.
…even if the value is set explicitly to 'false'
…even if the value is set explicitly to 'false'
…e-js-sdk into code-coverage-reporting
Re-enable coverage reporting for the firebase-js-sdk which had previosly been turned off by #9101. Additional details can be found in go/firebase-js-sdk-coverage
Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:
Discussion
Discussed internally and given this was already on the team's roadmap, I am short-circuiting a few of the norm contrib steps like filing an issue.
Testing
API Changes
N/A