Skip to content
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

Update the Benchmarks.Droid app to use built in Android GetExternalFilesDir #25015

Merged

Conversation

LoopedBard3
Copy link
Member

@LoopedBard3 LoopedBard3 commented Sep 30, 2024

Description of Change

Update the Benchmarks.Droid app to use built in Android GetExternalFilesDir as a location to save tests to. This will fix the test runs of this done as part of dotnet/performance testing. This also needs to be backported to net9.0.

Issues Fixed

We started hitting an issue where the hardcoded file location was not accessible due to permission errors. This switches to using the built in Android GetExternalFilesDir to get the same path which has corrected the permission error.

Fixes: dotnet/performance#4477

FYI @jonathanpeppers

@LoopedBard3 LoopedBard3 requested a review from a team as a code owner September 30, 2024 18:01
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Sep 30, 2024
Copy link
Contributor

Hey there @LoopedBard3! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

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

Just minor comment. Otherwise looks good. 👍

src/Core/tests/Benchmarks.Droid/MainInstrumentation.cs Outdated Show resolved Hide resolved
@jonathanpeppers
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jfversluis jfversluis enabled auto-merge (squash) October 1, 2024 19:10
@jfversluis jfversluis merged commit 2b53a2d into dotnet:main Oct 1, 2024
97 checks passed
@LoopedBard3 LoopedBard3 deleted the PerfFixAndroidMicrobenchmarksFolderMain branch October 1, 2024 20:41
@samhouts samhouts added the fixed-in-net8.0-nightly This may be available in a nightly release! label Oct 1, 2024
@samhouts samhouts added the fixed-in-net9.0-nightly This may be available in a nightly release! label Oct 14, 2024
rmarinho pushed a commit that referenced this pull request Oct 16, 2024
…lesDir (#25015)

* Update the Benchmarks.Droid app to use built in Android GetExternalFilesDir as a location to save tests to.

* Update src/Core/tests/Benchmarks.Droid/MainInstrumentation.cs

---------

Co-authored-by: Jonathan Peppers <[email protected]>
rmarinho pushed a commit that referenced this pull request Oct 16, 2024
…lesDir (#25015)

* Update the Benchmarks.Droid app to use built in Android GetExternalFilesDir as a location to save tests to.

* Update src/Core/tests/Benchmarks.Droid/MainInstrumentation.cs

---------

Co-authored-by: Jonathan Peppers <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community ✨ Community Contribution fixed-in-net8.0-nightly This may be available in a nightly release! fixed-in-net9.0-nightly This may be available in a nightly release!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[android] adb error: failed to stat remote object ...
7 participants