Skip to content
Snippets Groups Projects

Trying to mitigate a file system issue

Merged William Salmon requested to merge willsalmon/CacheExpiryTest into master

Description

The test were failing on the default gitlab runners used by normal gitlab users from https://gitlab.com/username/buildstream that are not pushing directly to https://gitlab.com/BuildStream/buildstream and thus using the special runners.

This was because:

  • The cache was sorting objects by time stamp but due to the mtime limitation they all had the same time stamp so when sorted they were not in the correct order.
  • When elements were build and then a change made so that the cached item and the change had the same time stamp from mtime then buildstream could not tell that the cached item was older than the change and so could not tell that it needed to be rebuilt.

Changes

This patch adds a sleep to force the mtime values to be different and there for to have the intended behaviour, these are all in the tests as this is fundamentally a issue with the tests rather than with buildstream, although it is a limitation.

Other more complex approaches could be taken if the community thinks the additional time would be well spent.

Related items

This merge request, when approved, will close issue/bug: #484 (closed)


Edited by William Salmon

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • William Salmon resolved all discussions

    resolved all discussions

  • William Salmon added 41 commits

    added 41 commits

    Compare with previous version

  • Phil Dawson
  • William Salmon resolved all discussions

    resolved all discussions

  • William Salmon added 1 commit

    added 1 commit

    • b31f1ed6 - Trying to mitigate a mtime granularity braking the cache tests

    Compare with previous version

  • Phil Dawson approved this merge request

    approved this merge request

  • William Salmon added 19 commits

    added 19 commits

    Compare with previous version

  • William Salmon enabled an automatic merge when the pipeline for 9efe46c3 succeeds

    enabled an automatic merge when the pipeline for 9efe46c3 succeeds

  • William Salmon canceled the automatic merge

    canceled the automatic merge

  • William Salmon added 7 commits

    added 7 commits

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading