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

Run WebDAV integration tests against S3 #34835

Merged
merged 3 commits into from
Mar 7, 2023
Merged

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Oct 27, 2022

Run webdav related tests against minio so we have some testing of real world file interaction behaviour in the CI.

This includes two fixes to let the tests pass properly.

  • First one ensures that the cache of storage statistics is properly reset if the user quota is changed. This is needed as other integration tests do not seem to run with caching enabled and therefore pass.
  • Second fix makes sure that the normalised path is used for caching the statistics and getting them from sabre uses the same path as other code paths.

Needed for #27034

@juliusknorr juliusknorr force-pushed the tests/integration-s3 branch 2 times, most recently from e9e9df4 to 69e8b42 Compare November 4, 2022 16:26
@juliusknorr
Copy link
Member Author

Other two failures seem related to running the tests with a memory cache in place:

Due to bdfef2d the quota is outdated for 5 minutes

@PVince81
Copy link
Member

@juliushaertl depending how you query it now, we removed the delay in some code paths, see #35308

however, some other code paths will need adjusting as well: #35421

@juliusknorr juliusknorr force-pushed the tests/integration-s3 branch 2 times, most recently from c534fd6 to 087de82 Compare February 3, 2023 21:37
@juliusknorr juliusknorr force-pushed the tests/integration-s3 branch 3 times, most recently from ee0fca0 to 1b2e380 Compare February 18, 2023 16:15
@juliusknorr juliusknorr added 3. to review Waiting for reviews tests Related to tests labels Feb 20, 2023
@juliusknorr juliusknorr requested a review from artonge February 20, 2023 07:47
@juliusknorr juliusknorr added this to the Nextcloud 26 milestone Feb 20, 2023
@juliusknorr juliusknorr changed the base branch from master to bugfix/noid/sabre-nodes February 20, 2023 07:49
@juliusknorr
Copy link
Member Author

Can already be reviewed just waiting to remove the draft state until the required pr is in.

Copy link
Contributor

@come-nc come-nc left a comment

Choose a reason for hiding this comment

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

Please update PR name and description to explain included fixes, or move these fixes to another PR, to help with the Changelog.

apps/provisioning_api/lib/Controller/UsersController.php Outdated Show resolved Hide resolved
lib/private/legacy/OC_Helper.php Outdated Show resolved Hide resolved
@juliusknorr juliusknorr force-pushed the bugfix/noid/sabre-nodes branch from 8b9b738 to 750a5a2 Compare February 20, 2023 21:13
@juliusknorr juliusknorr changed the base branch from bugfix/noid/sabre-nodes to master February 21, 2023 10:25
@juliusknorr
Copy link
Member Author

Please update PR name and description to explain included fixes, or move these fixes to another PR, to help with the Changelog.

Sorry, I've updated the description accordingly and addressed your first feedback :)

@juliusknorr juliusknorr marked this pull request as ready for review February 21, 2023 17:53
@juliusknorr
Copy link
Member Author

Failure unrelated (fix is in #36799)

@skjnldsv skjnldsv mentioned this pull request Feb 23, 2023
@juliusknorr juliusknorr force-pushed the tests/integration-s3 branch 2 times, most recently from c61aab0 to f155e23 Compare March 2, 2023 21:22
@juliusknorr juliusknorr requested a review from come-nc March 2, 2023 22:05
@juliusknorr
Copy link
Member Author

/rebase

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr merged commit 9e73412 into master Mar 7, 2023
@juliusknorr juliusknorr deleted the tests/integration-s3 branch March 7, 2023 06:20
@juliusknorr
Copy link
Member Author

/backport to stable26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews tests Related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants