Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Bug 1839075 - Corrects timeout duration for CopyDownloadFeature #4737

Closed
wants to merge 1 commit into from

Conversation

boek
Copy link
Contributor

@boek boek commented Dec 6, 2023

Previous line always returned 1. Now it will return 1000

Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Breaking Changes: If this is a breaking Android Components change, please push a draft PR on Reference Browser to address the breaking issues.

To download an APK when reviewing a PR (after all CI tasks finished running):

  1. Click on Checks at the top of the PR page.
  2. Click on the firefoxci-taskcluster group on the left to expand all tasks.
  3. Click on the build-apk-{fenix,focus,klar}-debug task you're interested in.
  4. Click on View task in Taskcluster in the new DETAILS section.
  5. The APK links should be on the right side of the screen, named for each CPU architecture.

GitHub Automation

https://bugzilla.mozilla.org/show_bug.cgi?id=1839075

@boek boek requested a review from t-p-white December 6, 2023 19:38
@github-actions github-actions bot added 🕵️‍♀️ needs review PRs that need to be reviewed labels Dec 6, 2023
@boek
Copy link
Contributor Author

boek commented Dec 6, 2023

I was just triaging and thought we should probably fix this

@gabrielluong
Copy link
Member

@t-p-white Friendly bump on this review.

Copy link
Contributor

@t-p-white t-p-white left a comment

Choose a reason for hiding this comment

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

Apologies, this PR totally fell off my radar. This 1 minute value is correct, it's actually the comment which is wrong, see #948 (comment) for context

@@ -62,7 +62,7 @@ class CopyDownloadFeature(
/**
* At most time to allow for the file to be downloaded.
*/
private val operationTimeoutMs by lazy { TimeUnit.MINUTES.toMinutes(1) }
private val operationTimeoutMs by lazy { TimeUnit.SECONDS.toMillis(1) }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
private val operationTimeoutMs by lazy { TimeUnit.SECONDS.toMillis(1) }
private val operationTimeoutMs by lazy { TimeUnit.MINUTES.toMillis(1) }

@gabrielluong gabrielluong added the followup PR that needs to be followed up label Apr 3, 2024
@gabrielluong
Copy link
Member

We have moved our firefox-android repo over to mozilla-central. Please feel free to reopen a new PR against the new repo. You will have to clone the new repository and reapply your changes. Thank you again, and sorry for the inconvenience.

For more information, please see https://github.com/mozilla-mobile/firefox-android/wiki#upcoming-migration-to-mozilla-central.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
followup PR that needs to be followed up 🕵️‍♀️ needs review PRs that need to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants