Skip to content

Testing

Moritz Röhrich edited this page Mar 28, 2023 · 7 revisions

PR Testing

graph TD;
  A1[PR] --> B[Build Radosgw & Unit Tests];
  A3[Buildenv Container] --> B[Build Radosgw & Unit Tests];

  B --> I[Store Artifacts for other Analysis]:::red;

  A2[Runtime Container] ---> D[Run Unit Tests];
  B ---> D[Run Unit Tests];

  A2[Runtime Container] ---> E[Run Smoke Test];
  B ---> E[Run Smoke Test];

  A2[Runtime Container] ---> F[Run S3 Tests];
  B ---> F[Run S3 Tests];

  D:::green -- Pass ---> G[Approve];
  E:::green -- Pass ---> G[Approve];
  F:::red -- Pass ---> G[Approve]:::green;

  D -- Fail ---> H[Reject];
  E -- Fail ---> H[Reject];
  F -- Fail ---> H[Reject]:::red;

  classDef red fill:#b21
  classDef green fill:#194

  click D "https://github.com/aquarist-labs/ceph/blob/30124fece2598905bf3599d6a8ef9ca3ef55b3db/.github/workflows/build-test-radosgw.yml#L46" _blank
  click E "https://github.com/aquarist-labs/ceph/blob/30124fece2598905bf3599d6a8ef9ca3ef55b3db/.github/workflows/build-test-radosgw.yml#L58" _blank
Loading

PR Testing RFC

graph TD;
  B1[build unit test container] --> R1[run unit test container];
  R1 -- Failure --> R[Reject]:::red;
  R1 -- Success --> B2[build s3gw container];

  B1 -- Docker Cache --> B2;

  B2 --> R2[run s3gw container & integration tests];
  R2 -- Failure --> R;
  R2 -- Success --> R3[run s3gw container & smoke tests];

  R3 -- Failure --> R;
  R3 -- Success --> R4[run s3gw container & s3tests, regression tests];

  R4 -- Failure --> R;
  R4 -- Success --> S[store s3tests results]:::green;

  classDef red fill:#b21
  classDef green fill:#194
Loading