mirror of
https://github.com/google/nomulus.git
synced 2025-07-24 03:30:46 +02:00
* Support testing SQL -> DS replication in ReplayExt Support testing of Postgres -> Datastore replication in the ReplayExtension when running in SQL mode in a DualDatabaseTest. This is currently only enabled for one test (HostInfoFlowTest) since this form of replication is likely to be problematic in many cases. As part of this change: - Add a thread-local flag so that we don't attempt to do certain data transformations when serializing entities for storage in a Transaction record. (These typically need to be called in a datastore transaction). - Replace tm() in datastore translators with ofyTm() (these should only be called from within an ofy transaction) and also in the replay system itself. - Add a transactWithoutBackup() method for use within the replay itself. - Prevent replication of entities that are not intended to be replicated. - Make some of the ReplicateToDatastoreAction methods public so we can invoke them from ReplayExtension. - Change the way that the test type is stored in the extension context in a DualDatabaseTest so that we can check for it from the ReplayExtension. * Limit number of tests and show output Trying to debug why these are failing in kokoro. * Move HostInfoFlowTest to fragile for now The test now manipulates a globel variable that causes problems for other tests. There's likely a better fix for this, but for purposes of this PR we can just move it to "fragile." * Fix a few more problems - "replay" flag should have been initialized to false -- as it stands, replay wasn't happening. - disable "always save with backup" in the datastore helper, we were apparently getting some unwanted commit log entries that were causing timestamp inversions in other tests. Also clear out the replay queue just for good hygiene. - Check for a null replicator in replayToOfy before proceeding. - Use a local inOfyContext flag to track whether we're in ofy context, as the tm() function is less reliable in dual-database tests. |
||
---|---|---|
.. | ||
gradle/dependency-locks | ||
src | ||
WEB-INF/appengine-generated | ||
build.gradle | ||
Dockerfile |