Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53499

Improve tests to avoid race condition for updates during startup

XMLWordPrintable

    • Evergreen - Milestone 1, Evergreen - Milestone 2

      During shUnit2 tests, it can happen that there will be 3 or 4 Git commits related to the updates that happened.

      This is due to a race condition: when docker-compose starts everything, if the instance starts quickly enough to hit the backend before it received the curl call for pushing the ingest.json then there will be two updates:

      • one from UL0 to UL1, with UL1 an actually first default and empty UL served by the backed
      • one from UL1 to UL2, once the ingest.json with actual plugins and so on has been received.

      If the ingest.json is pushed before the instance first requests the backend, then the bump will be directly from UL0 to UL2.

      We need to work out a solution that avoids this source of test flakiness, or we will suffer from it for sure in the upcoming weeks.

            batmat Baptiste Mathus
            batmat Baptiste Mathus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: