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

test: Fix tests failing intermittently on CI #2339

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Conversation

taratatach
Copy link
Member

Please make sure the following boxes are checked:

  • PR is not too big
  • it improves UX & DX in some way
  • it includes unit tests matching the implementation changes
  • it includes scenarios matching a new behaviour or has been manually tested
  • it includes relevant documentation

  The `moveFrom` method of our file and directory builders should not
  generate a `Metadata` object with an `updated_at` attribute different
  from the one of the `Metadata` object passed as argument (i.e. the
  "old" metadata, before the move occured) since moves on filesystems do
  not update the `mtime` attribute.

  Therefore the builder will keep any existing `updated_at` attribute
  when calling `moveFrom` and set a new date otherwise.
@taratatach taratatach force-pushed the test/fix-flaky-tests branch from cdd55c0 to f421161 Compare July 31, 2024 13:09
@taratatach taratatach changed the title WIP: test: moves don't change updated_at attribute test: Fix tests failing intermitently on CI Jul 31, 2024
@taratatach taratatach changed the title test: Fix tests failing intermitently on CI test: Fix tests failing intermitenttly on CI Jul 31, 2024
@taratatach taratatach changed the title test: Fix tests failing intermitenttly on CI test: Fix tests failing intermittently on CI Jul 31, 2024
  These tests were intermittently failing due to slight update time
  differences which can be traced back to an invalid setup of the
  moved document metadata.
@taratatach taratatach marked this pull request as ready for review July 31, 2024 13:14
@taratatach taratatach force-pushed the test/fix-flaky-tests branch from f421161 to 42a9f34 Compare July 31, 2024 13:52
@taratatach taratatach merged commit 278c081 into master Jul 31, 2024
11 of 15 checks passed
@taratatach taratatach deleted the test/fix-flaky-tests branch July 31, 2024 14:47
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.

1 participant