Project

General

Profile

Actions

Bug #16884

closed

API server tests failing with "Didn't match" error

Added by Peter Amstutz over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Story points:
-
Release relationship:
Auto

Description

Background: when in test mode, as a correctness test the results of the incremental permission graph update is checked against a full recompute of the permission graph. They should always result in identical table contents.

This is sensitive to starting conditions. If the incremental update is done on a database where the materialized_permissions table was out of sync with the true permissions (the "full recompute" is assumed to be ground truth), then the result after the incremental update will also be wrong and we get the "Didn't match" error.

  • developer-run-tests-services-api is failing, it seems random as there is no particular test that causes it to start failing.

developer-run-tests-services-api: #2210
developer-run-tests-services-api: #2212
developer-run-tests-services-api: #2213
developer-run-tests-services-api: #2218

  • There is one success out of 5 attempts:

developer-run-tests-services-api: #2219

  • When I run the tests locally, it passes.

Rails 5.2 has a few testing changes. Tests are shuffled so the order of test modules is different each time. Tests also share a database connection.


Related issues

Related to Arvados - Bug #16811: Ensure that "public favorites" still workResolvedPeter Amstutz09/15/2020Actions
Actions

Also available in: Atom PDF