Repository navigation
Conversation
Compare the same API caller as production and test code, the same layout in an app and a library, and an APK source manifest with its configured processed manifest. Co-authored-by: Valera Zakharov <vzakharov@slack-corp.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This draft adds six integration assertions for three project-model behaviors reported in the shared branch. All fixtures use the existing public rule attributes. Three controls pass and three regression assertions intentionally fail on
mainate11fb42with Bazel 9.3.2 and Lint 32.4.1.RestrictedApiandDefaultLocale.is_test_sources = Truestill reports both. OnlyDefaultLocaleis expected. Both targets enablecheckTestSourcesthrough lint.xml so the locale warning proves the file was scanned.MissingVersionandUnusedResources.Autofillon the layout. The generated manifest containsandroid:targetSdkVersion="34".Autofill, although the APK declares target SDK 34 throughmanifest_values.Reproduce
Run the controls from the repository root.
bazel test --keep_going --strategy=AndroidLint=worker --test_output=errors \ //tests/integration:production_source_report_test \ //tests/integration:app_report_test \ //tests/integration:processed_manifest_report_testRun the regression assertions separately.
bazel test --keep_going --strategy=AndroidLint=worker --test_output=errors \ //tests/integration:test_source_report_test \ //tests/integration:library_report_test \ //tests/integration:app_target_sdk_report_testThe XML reports are under
bazel-bin/tests/integration/. The processed-manifest control gets its file from the configured app'sAndroidIdeInfoprovider. The assertions describe the intended behavior so future fixes can turn them green.