Skip to content

[Android] Only check for user permissions (first two characters) - #191019

Merged
auto-submit[bot] merged 2 commits into
flutter:masterfrom
mboetger:fix-flakey-permissions-test
Aug 17, 2026
Merged

auto-submit[bot] merged 2 commits into
flutter:masterfrom
mboetger:fix-flakey-permissions-test

Conversation

@mboetger

Copy link
Copy Markdown
Contributor

Only check the user permissions in dev/devicelab/bin/tasks/build_android_host_app_with_module_aar.dart

Fixes: #190999

Depending on the environment and the umask, different permissions can be given to files during the test run. The files getting executable permission for some reason (rwxr-xr-x) still should pass the test since the user has read/write permissions. The test explicitly wants to check the "user" writable and readable bits - so it only needs to check the first two characters.

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [AI contribution guidelines] and understand my responsibilities, or I am not using AI tools.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Aug 12, 2026
@mboetger
mboetger requested review from a team and camsim99 and removed request for a team August 12, 2026 19:23

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request removes the unused fileReadWriteMode constant and simplifies the file access mode checks in build_android_host_app_with_module_aar.dart by verifying if the mode string starts with 'rw' instead of performing an exact platform-specific comparison. There are no review comments, and I have no feedback to provide.

@camsim99 camsim99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

SGTM

@mboetger mboetger added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 17, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Aug 17, 2026
Merged via the queue into flutter:master with commit a08cda8 Aug 17, 2026
21 of 22 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mac build_android_host_app_with_module_aar is 2.04% flaky

2 participants