# 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: bc232c5312e784e808ea95ae76f9e82d4fe142fc

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: 588ef3bf86822f6b24aedbb84e3687ca86acd8a3
    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: d655709ee04c04a655ce134665f9a55bffcdc935
    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: 82aba7eeeff7c343de24b7f66d3d4ced8a3b06d8
    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]
