-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
fix: js api fetch error in card template viewer and previewer #15520
Conversation
1ceb604
to
b64d862
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nitpicks only
🤔 well this is a new macOS flake, never seen this before:
|
Again!! What in the world ?
macOS only |
Maybe we need a tearDown that pushes the activity lifecycle through stopped and terminated or something? Anki-Android/AnkiDroid/src/test/java/com/ichi2/anki/dialogs/CreateDeckDialogTest.kt Lines 48 to 55 in 7e21b4d
It's failing on the second test here, like the first one passes but the second one is too much. And of course only one OS. Alternative solution, peel this flake to a new issue and (assuming the Flaky annotation supports classes and not just methods?) is to add a |
|
be355c0
to
a0b481e
Compare
a0b481e
to
8c30031
Compare
ubuntu failure https://github.com/ankidroid/Anki-Android/actions/runs/7932349193/job/21658645926?pr=15520
|
This PR is cursed but it is not anyone's fault. Ubuntu is now showing the gradle error that led me to disable gradle caching for windows unit test runner yesterday:
The effect of disabling cache was that it was a few minutes slower for the unit test run but that it was reliable. This is unfortunate. I will purge the cache temporarily in order to get this PR through then consider disabling caching entirely until I/we figure out what happened here. It may be the switch to gradle 8.6 as I think that was the most recent change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, FWIW
logged upstream issue for gradle transform cache corruption / immutability incompatibility gradle/actions#47 |
Hi there @krmanik! This is the OpenCollective Notice for PRs merged from 2024-02-01 through 2024-02-29 If you are interested in compensation for this work, the process with details is here: We only post one comment per person per month to avoid spamming you, regardless of the number of PRs merged, but this note applies to all PRs merged for this month Please understand that our monthly budget is never guaranteed to cover all claims - the cap on payments-per-person may be lower, but we try to make our process as fair and transparent as possible, we just need your understanding. Thanks! |
Purpose / Description
The JS API is not able to fetch request in Card Template Viewer and Previewer because of there is no instance of server.
Fixes
Approach
Moved the AnkiServer to AbstractFlashcardViewer, so it will be available to Reviewer, Previewer and Card Template Viewer.
How Has This Been Tested?
Tested on Emulator with this Anki Deck
AnkiDroid JS API Test.zip
Checklist