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

Improve tests to avoid race condition for updates during startup

    Details

    • Similar Issues:
    • Sprint:
      Evergreen - Milestone 1, Evergreen - Milestone 2

      Description

      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.

        Attachments

          Issue Links

            Activity

            batmat Baptiste Mathus created issue -
            rtyler R. Tyler Croy made changes -
            Field Original Value New Value
            Rank Ranked lower
            rtyler R. Tyler Croy made changes -
            Sprint Evergreen - Milestone 1 [ 511 ] Evergreen - Milestone 1, Evergreen - Milestone 2 [ 511, 516 ]
            batmat Baptiste Mathus made changes -
            Assignee R. Tyler Croy [ rtyler ] Baptiste Mathus [ batmat ]
            batmat Baptiste Mathus made changes -
            Rank Ranked higher
            batmat Baptiste Mathus made changes -
            Rank Ranked higher
            batmat Baptiste Mathus made changes -
            Rank Ranked higher
            batmat Baptiste Mathus made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            batmat Baptiste Mathus made changes -
            Link This issue is blocking JENKINS-53273 [ JENKINS-53273 ]
            batmat Baptiste Mathus made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            batmat Baptiste Mathus made changes -
            Remote Link This issue links to "evergreen PR (Web Link)" [ 21903 ]
            batmat Baptiste Mathus made changes -
            Status In Review [ 10005 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: