Skip to content

Verify test failure#16329

Draft
PhilLab wants to merge 7 commits intomasterfrom
verify_test_failure
Draft

Verify test failure#16329
PhilLab wants to merge 7 commits intomasterfrom
verify_test_failure

Conversation

@PhilLab
Copy link
Contributor

@PhilLab PhilLab commented Jan 21, 2026

DO NOT MERGE - Just testing whether the tests added from the following PR's would actually fail the CI, if they uncovered an issue:

  • #16297
  • #16296
  • #16267

Testing the case of localOnly files.
As the deletion logic differs per scenario, tests for the online
scenario will also need to be added.

Signed-off-by: Philipp Hasper <vcs@hasper.info>
Otherwise, the localOnly file deletion will not update the UI.

Signed-off-by: Philipp Hasper <vcs@hasper.info>
The remote + offline test case had to be ignored due to two reasons
1) Broken App behavior
- The UX is indeed broken, as from a user perspective, nothing happens
  with the file when deleting it. The offlineOperation is put on the worker
  stack, but the user doesn't see anything from it
- Even when coming back online, it is completely unreliable when the
  deletion will be finally done. It might happen 5 or 10 minutes later
2) Broken test mock
- The mocked connectivityService doesn't work as expected, because the
  OfflineOperationsWorker has its own service, and thus might still
  execute the deletion, but just at an unforseable time during the test
  execution - see problem 1).

Signed-off-by: Philipp Hasper <vcs@hasper.info>
…e list

The existing test cases varied by configuration: local vs. remote,
online vs. offline. This is now extended by also starting at different
entry points: beginning, end and middle of the list.

Signed-off-by: Philipp Hasper <vcs@hasper.info>
Signed-off-by: Philipp Hasper <vcs@hasper.info>
}
onView(isRoot()).check(matches(isDisplayed()))

assertTrue("Do not merge - just testing test failures", false)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is where I provoke the failure

Copy link
Contributor Author

@PhilLab PhilLab Jan 24, 2026

Choose a reason for hiding this comment

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

This was not catched - https://drone.nextcloud.com/nextcloud/android/27697 ran through. And no other test job failed, either.

For reference, this is the overview of GitHub's checks for this commit, but somehow it does not show the drone action... Very confusing... https://github.com/nextcloud/android/pull/16329/checks?sha=71ac686c47076f8d24c71eae1bdcadf06214eeba

But as this view confusingly doesn't list the Drone job, I'll leave this screenshot as well, at the state of this commit. Drone job is shown green:
image

onView(allOf(withText(loadingText), isDisplayed()))
.check(doesNotExist())

assertTrue("Do not merge - just testing test failures", false)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the second failure I provoke

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This also wasn't catched - https://drone.nextcloud.com/nextcloud/android/27788 ran through and no other test job ran the test either.

For reference, this is the overview of checks for this commit: https://github.com/nextcloud/android/pull/16329/checks?sha=0becd054d1b3eefad3327626ea3d5b79cf397eba.

And the screenshot
image

@github-actions
Copy link

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions
Copy link

Codacy

SpotBugs

CategoryBaseNew
Bad practice4343
Correctness7474
Dodgy code256257
Experimental11
Internationalization77
Malicious code vulnerability33
Multithreaded correctness3434
Performance4344
Security1818
Total479481

SpotBugs increased!

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16329.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

.perform(RecyclerViewActions.scrollToLastPosition<GalleryRowHolder>())
.perform(RecyclerViewActions.scrollToPosition<GalleryRowHolder>(0))

assertTrue("Do not merge - just testing test failures", false)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the third failure I provoke

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant