Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D devscripts
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • DebianDebian
  • devscripts
  • Merge requests
  • !18

Implement flaky and skippable tests in sadt

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Simon McVittie requested to merge smcv/devscripts:sadt-flaky-skippable into master Jun 14, 2018
  • Overview 10
  • Commits 5
  • Pipelines 3
  • Changes 16

As suggested in https://bugs.debian.org/851558 and implemented for autopkgtest in ci-team/autopkgtest!19 (merged) and ci-team/autopkgtest!20 (merged).

Flaky tests are intended to pass, but are known to be unreliable, subject to intermittent failures or otherwise unsuitable for gating CI. To determine when a flaky test has become reliable, it is useful to run it in realistic infrastructure for a while and gather data.

If a flaky test passes it is reported in the same way as any other passing test, but if a flaky test fails (for any reason) it is reported as flaky instead of as a failure.

A skippable test probes for some resource that it needs, which might be something too complicated to express in Restrictions (for example "/var/tmp supports extended attributes" for flatpak and ostree). If that resource is not found, the test exits 77 (a convention borrowed from Automake) and the test runner treats it as though it had been skipped based on its Restrictions.

Edited Jun 15, 2018 by Simon McVittie
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: sadt-flaky-skippable