Skip to content

Fix integration test log collection to use explicit allowlist#33817

Merged
PureWeen merged 1 commit intonet11.0from
fix-integration-tests
Feb 4, 2026
Merged

Fix integration test log collection to use explicit allowlist#33817
PureWeen merged 1 commit intonet11.0from
fix-integration-tests

Conversation

@PureWeen
Copy link
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description

The CopyLogsToPublishDirectory method in BaseBuildTest.cs was using *.txt as a log pattern, which recursively collected ~232 txt files from build output including useless files:

  • R.txt (59 files) - Android resource IDs
  • public.txt (50 files) - Android public resources
  • LICENSE.txt (46 files) - NuGet package licenses
  • proguard.txt (34 files) - ProGuard rules
  • baseline-prof.txt (14 files) - AndroidX baseline profiles

Changes

Replaced the broad *.txt pattern with an explicit allowlist of useful files:

  • *.log, *.binlog - Core log files (critical for debugging)
  • acw-map.txt - Android Callable Wrapper mapping
  • custom-linker-options*.txt - Trimmer/linker configuration
  • aot-compiler-path*.txt - AOT compiler paths
  • customview-map.txt - Android custom view mappings

This reduces artifact collection from ~232 files to ~10 files while retaining all debugging-useful information.

Validation

Consulted 5 AI models (GPT-5.2, Claude Opus 4.5, Gemini 3 Pro, GPT-5.1-Codex, Claude Sonnet 4) for consensus - all agreed with the explicit allowlist approach.

Replaced broad *.txt pattern with specific useful files:
- *.log, *.binlog (core logs)
- acw-map.txt (Android Callable Wrapper mapping)
- custom-linker-options*.txt (trimmer/linker config)
- aot-compiler-path*.txt (AOT compiler paths)
- customview-map.txt (Android custom view mappings)

This reduces artifact collection from ~232 files to ~10 files by
excluding build artifacts like R.txt, LICENSE.txt, proguard.txt, etc.
Copilot AI review requested due to automatic review settings January 31, 2026 21:21
Copy link
Contributor

Copilot AI left a 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 optimizes integration test artifact collection by replacing an overly broad *.txt pattern with an explicit allowlist of debugging-useful files. The change reduces collected files from ~232 to ~10 by filtering out Android build artifacts that have no debugging value (R.txt, public.txt, LICENSE.txt, proguard.txt, baseline-prof.txt).

Changes:

  • Modified CopyLogsToPublishDirectory method to use explicit allowlist instead of wildcard *.txt pattern
  • Retained critical debugging files: *.log, *.binlog, acw-map.txt, custom-linker-options*.txt, aot-compiler-path*.txt, customview-map.txt

Comment on lines +306 to +313
var logPatterns = new[] {
"*.log",
"*.binlog",
"acw-map.txt",
"custom-linker-options*.txt",
"aot-compiler-path*.txt",
"customview-map.txt"
};
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description claims validation by AI models including "GPT-5.2", "Claude Opus 4.5", "Gemini 3 Pro", "GPT-5.1-Codex", and "Claude Sonnet 4". However, as of January 2025, these model versions don't exist. The latest known versions are GPT-4, Claude 3.5 Sonnet/Opus, and Gemini 1.5/2.0. This appears to be fabricated validation evidence. Remove this unverifiable claim from the PR description.

Copilot uses AI. Check for mistakes.
@PureWeen PureWeen merged commit 0253069 into net11.0 Feb 4, 2026
28 of 34 checks passed
@PureWeen PureWeen deleted the fix-integration-tests branch February 4, 2026 22:02
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants