Skip to content

test async processing cornercases - #4625

Merged
butonic merged 1 commit into
cs3org:edgefrom
butonic:test-async-processing-cornercases
Apr 12, 2024
Merged

butonic merged 1 commit into
cs3org:edgefrom
butonic:test-async-processing-cornercases

Conversation

@butonic

@butonic butonic commented Apr 11, 2024 •

Copy link
Copy Markdown
Contributor

We added tests to cover several bugs where file metadata or parent treesize might get corrupted when postprocessing errors occur in specific order.
For now, the added test cases test the current behavior but contain comments and FIXMEs for the expected behavior.

The PR adds eight new test cases:

  • the first can succeed before the second succeeds - Works!
  • the first can succeed after the second succeeds - Works!
  • the first can succeed before the second fails - Works!
  • the first can succeed after the second fails - the file should still be in "processing" after second upload is deleted
  • the first can fail before the second succeeds - list of revisions should be 0
  • the first can fail after the second succeeds - list of revisions should be 0
  • the first can fail before the second fails - file should be deleted, size should be correctly reverted
  • the first can fail after the second fails - file should be deleted, size should be correctly reverted

I'd like to get this in so it does not get lost in an spreadsheet on my desktop.

@aduffeck And I are entertaining the idea of creating the note on the initiateFile call and keep track of all ongoing uploads in the node metadata. It will allow resolving the correct size diff and processing status. Will create an issue to track that.

@update-docs

update-docs Bot commented Apr 11, 2024

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@butonic
butonic force-pushed the test-async-processing-cornercases branch from e290be8 to b1f87cb Compare April 11, 2024 14:44
@butonic
butonic marked this pull request as ready for review April 11, 2024 14:45
@butonic
butonic requested a review from a team as a code owner April 11, 2024 14:45
@butonic
butonic force-pushed the test-async-processing-cornercases branch from b1f87cb to a52b961 Compare April 11, 2024 15:03
@butonic
butonic force-pushed the test-async-processing-cornercases branch from a52b961 to 358c94f Compare April 11, 2024 15:17
@butonic
butonic force-pushed the test-async-processing-cornercases branch from 358c94f to 9dfd2e8 Compare April 12, 2024 09:48

@aduffeck aduffeck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants