1. 08 Jul, 2015 1 commit
  2. 18 May, 2015 4 commits
    • Klaus Aehlig's avatar
      Increase waiting time to avoid races · cb50990b
      Klaus Aehlig authored
      In tests, give Ganeti enough time to actually start up jobs before
      asserting that they succeed. While normally forking and executing
      a job is finished in less than a second in some circumstances it
      can take longer; so give enough time to avoid flaky tests.
      
      While there, also pause the watcher, so that it doesn't submit
      jobs inbetween that cause our 0.01 second delay jobs to take
      longer while waiting for locks taken by the watcher's jobs.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
      cb50990b
    • Klaus Aehlig's avatar
      Avoid watcher interaction in TestFilterRateLimit · 853a4fb2
      Klaus Aehlig authored
      This test verifies a global limit on the number of jobs running. This
      requires knowledge of all jobs submitted between the addition of the
      filter and the submission of our last test job. While we send these
      commands directly one after the other, this still takes a second or
      two, thus giving the watcher slightly less than a 1% change of
      interfering. Avoid this by pausing the watcher during this test.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
      853a4fb2
    • Klaus Aehlig's avatar
      Avoid races in TestAdHocReasonRateLimit · b581773d
      Klaus Aehlig authored
      The test submits 3 jobs in an environment rate-limited to two, and verifies
      that the first 2 jobs are running whereas the third one remains queued. However,
      it takes for Ganeti some time to get a submitted job to actually being confirmed
      waiting (in some circumstances over a second). So wait a bit longer to avoid
      losing the race. While there, increase the time of the delay jobs to avoid
      them finishing during that test in an extremely slowly running QA. (Note that
      the jobs are killed forcefully at the end of the test, so that time is never
      really waited for.)
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
      b581773d
    • Klaus Aehlig's avatar
      Avoid races in TestFilterRateLimit · 43b45518
      Klaus Aehlig authored
      The test submits 3 jobs in an environment rate-limited to two, and verifies
      that the first 2 jobs are running whereas the third one remains queued. However,
      it takes for Ganeti some time to get a submitted job to actually being confirmed
      waiting (in some circumstances over a second). So wait a bit longer to avoid
      losing the race. While there, increase the time of the delay jobs to avoid
      them finishing during that test in an extremely slowly running QA. (Note that
      the jobs are killed forcefully at the end of the test, so that time is never
      really waited for.)
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
      43b45518
  3. 17 Oct, 2014 1 commit
  4. 16 Oct, 2014 1 commit
  5. 15 Oct, 2014 1 commit