sapling/eden
Mark Juggurnauth-Thomas 044ae9f1f0 backfill_derived_data: fix tests to ensure batch invariants
Summary:
The `backfill_batch_dangerous` method requires that the caller ensures
that all dependencies of the batch have been derived, otherwise errors,
such as mappings being written out before the things they map to, can
occur.

When the derived data manager takes over batch derivation, it will enforce this
requirement, so that it is no longer dangerous.  However, The backfiller tests
were not ensuring the invariant, so the tests will fail with the new derivation
implementation.

Fix the tests by ensuring the parent commits are always derived before a
batch is started.  The test is also extended to expose the failure mode
of accidentally deriving batch parents.  This will be fixed in the next
commit.

Reviewed By: yancouto

Differential Revision: D30959132

fbshipit-source-id: 8489a5d0b375692a903854294e3810846c9e13de
2021-09-20 03:23:17 -07:00
..
fs privhelper: add some logging when mounting via NFS on macOS 2021-09-17 16:23:43 -07:00
hg-server vendor tokio-console and console-subscriber 2021-09-17 16:23:43 -07:00
integration unknown inodes are not a bug on NFS mounts. 2021-09-16 14:35:04 -07:00
locale
mononoke backfill_derived_data: fix tests to ensure batch invariants 2021-09-20 03:23:17 -07:00
scm vendor tokio-console and console-subscriber 2021-09-17 16:23:43 -07:00
test_support test_support: canonicalize the temporary directory path 2021-08-16 16:08:45 -07:00
test-data fix fsck snapshot integration tests 2021-07-14 16:20:04 -07:00
.gitignore
Eden.project.toml