Skip to content

[NDB PERMISSION_DENIED error] Fix trusty stacktrace on ANDROID_EMULATOR#5375

Merged
IvanBM18 merged 3 commits into
masterfrom
fix/trusty-stacktrace-permission
Jul 23, 2026
Merged

[NDB PERMISSION_DENIED error] Fix trusty stacktrace on ANDROID_EMULATOR#5375
IvanBM18 merged 3 commits into
masterfrom
fix/trusty-stacktrace-permission

Conversation

@IvanBM18

@IvanBM18 IvanBM18 commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

This PR comes as a need after the revert of this #5339 PR which introduced short circuit mechanisms to avoid DB queries, this however proved to provoke issues, so short circuit is no longer an option to fix any PERMISION_DENIED erros.

When we run jobs with an ANDROID_EMULATOR jobs, they all fail after executing a testcase. This happens because ANDROID_EMULATOR platform goes trough some legacy code(before the pre/main/pos separation of tasks) which expects the current bot to have access to DB or GCS.

This error only appear for uworkers and doesn't happen for pre-emptible bots. Because pre-emptibles do contain a trusted service account, where as uworkers dont.

Changes

  • When entering the process in which we analyze the stacktrace we now check if we can process this stacktrace or not, validating the kind of bot we are at.
  • Creates Unit tests for this new edge cases

Test performed

Changes initially present in dev since July 13th, and it didn't seem to non brake anything under ANDROID_EMULATOR jobs. Now for ANDROID_EMULATOR jobs.

Before:
image

After:
image

@IvanBM18
IvanBM18 requested a review from dylanjew July 22, 2026 22:27
@IvanBM18
IvanBM18 marked this pull request as ready for review July 22, 2026 23:02
@IvanBM18
IvanBM18 requested a review from a team as a code owner July 22, 2026 23:02
@IvanBM18
IvanBM18 requested a review from javanlacerda July 22, 2026 23:02
@IvanBM18 IvanBM18 changed the title [NDB PERMISSION_DENIED] Fix trusty stack trace permission errors [NDB PERMISSION_DENIED] Fix trusty stacktrace errors on ANDROID_EMULATOR Jul 22, 2026
@IvanBM18 IvanBM18 changed the title [NDB PERMISSION_DENIED] Fix trusty stacktrace errors on ANDROID_EMULATOR [NDB PERMISSION_DENIED error] Fix trusty stacktrace on ANDROID_EMULATOR Jul 22, 2026
@IvanBM18
IvanBM18 merged commit d85e7f8 into master Jul 23, 2026
15 checks passed
@IvanBM18
IvanBM18 deleted the fix/trusty-stacktrace-permission branch July 23, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants