-
Notifications
You must be signed in to change notification settings - Fork 605
dataconnect: include relevant logcat snippets in github actions logs when androidTest tests fail #6902
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
base: main
Are you sure you want to change the base?
Conversation
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. |
Vertex AI Mock Responses Check
|
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.
Pull Request Overview
This PR enhances the GitHub Actions workflow to automatically output relevant logcat snippets when Android tests fail. Key changes include:
- Updating the GitHub Actions workflow to check for and process logcat.log files.
- Adding a new logcat error reporting script (with associated tests) that extracts and formats output from test failures.
- Adjusting linting rules and the CI command in the README to align with these new behaviors.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
firebase-dataconnect/ci/pyproject.toml | Updated linting rules to ignore function complexity and branch count issues. |
firebase-dataconnect/ci/logcat_error_report_test.py | Added tests for validating regex patterns for logcat extraction. |
firebase-dataconnect/ci/logcat_error_report.py | Introduced a new script to extract and output logcat snippets on failed tests. |
firebase-dataconnect/ci/README.md | Updated the CI command to include automatic lint fixing before testing. |
.github/workflows/dataconnect.yml | Modified the workflow to install Python, handle missing logcat files, and invoke the logcat reporting script. |
Comments suppressed due to low confidence (1)
.github/workflows/dataconnect.yml:240
- The token 'dsdta43sxk' in the warning message appears arbitrary and may be unclear to other developers; consider replacing it with a more descriptive identifier or removing it altogether.
echo "WARNING dsdta43sxk: logcat log file not found; skipping scanning for test failures" >&2
Size Report 1Affected ProductsNo changes between base commit (534cc53) and merge commit (f63b6d9).Test Logs |
Coverage Report 1Affected Products
Test Logs |
With this PR, the GitHub Actions workflow output includes relevant snippets from the logcat logs for failed tests. Before this PR, one would need to manually download the logcat log file from the workflow artifacts and grok it themselves.
The new github actions log output looks something like this:
See https://github.com/firebase/firebase-android-sdk/actions/runs/14604151406/job/40969205145?pr=6902