# The code under test: one tier per HIP-0025 pull request, plus all three merged.
#
# Every commit is pinned. `make run` fetches these commits from GitHub, so a run
# always tests exactly the code named here. To test new PR commits, change the
# `commit` values and run again.
#
# Upstream Helm cannot install a chart-v3 release yet. For this reason every tier
# also gets the test-only patches in wiring/ (see wiring/README.md). The patches
# connect the helm commands to the code of each PR. They do not decide the order
# or the readiness of resources.

upstream:
  url: https://github.com/helm/helm.git
  branch: main
  # The upstream commit that all three PRs are based on.
  base: 3c2635de452c8df481f59a1e1246bef1355b7e8d

fork:
  url: https://github.com/caretak3r/helm.git

wiring:
  base: wiring/0001-base-chart-v3-lifecycle.patch
  ordered: wiring/0002-ordered-overlay.patch
  readiness: wiring/0003-readiness-overlay.patch
  template: wiring/0004-template-order-overlay.patch

tiers:
  pr1:
    label: PR1
    title: PR1 · subchart sequencing
    branch: feat/hip-0025-v3-subcharts
    commit: 04319f19438209b4b82d60438e2b955ecededc9f
    pr: https://github.com/caretak3r/helm/pull/4
    wiring: [base, ordered]
    features: [ordered, subcharts]
  pr2:
    label: PR2
    title: PR2 · resource-group sequencing (stacked on PR1)
    branch: feat/hip-0025-v3-resource-groups
    commit: b697bdd956094c37c2387304cfa397b25143bad4
    pr: https://github.com/caretak3r/helm/pull/5
    stacked_on: pr1   # the unit stage tests only the changes PR2 adds to PR1
    wiring: [base, ordered, template]
    features: [ordered, subcharts, groups]
  pr3:
    label: PR3
    title: PR3 · custom readiness
    branch: feat/hip-0025-v3-readiness
    commit: 8ae5bce2b48044e40146a58b4c714f3ec49b4da9
    pr: https://github.com/caretak3r/helm/pull/3
    wiring: [base, readiness]
    features: [readiness]
  combined:
    label: Combined
    title: All three PRs merged
    merge: [pr2, pr3]   # PR2 contains PR1
    resolve: scripts/resolve-combined.sh
    wiring: [base, ordered, readiness, template]
    features: [ordered, subcharts, groups, readiness]
