bmsdna-devtools 1.9.0__tar.gz → 1.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/PKG-INFO +4 -3
  2. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/README.md +3 -2
  3. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/ci_plan.py +12 -5
  4. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/pyproject.toml +1 -1
  5. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_ci_plan.py +26 -4
  6. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/uv.lock +1 -1
  7. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/.github/workflows/auto-release.yml +0 -0
  8. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/.github/workflows/python-publish.yml +0 -0
  9. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/.github/workflows/python-test.yml +0 -0
  10. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/.gitignore +0 -0
  11. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/.python-version +0 -0
  12. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/__init__.py +0 -0
  13. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/_api_dump.py +0 -0
  14. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/ado_auth.py +0 -0
  15. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/ado_issue.py +0 -0
  16. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/agent_mentions.py +0 -0
  17. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/api_usage.py +0 -0
  18. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/app_service_logs.py +0 -0
  19. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/azure_arm.py +0 -0
  20. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/azure_auth.py +0 -0
  21. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/bdt_config.py +0 -0
  22. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/business_user.py +0 -0
  23. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/ci_plan_env.py +0 -0
  24. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/cleanup_claude.py +0 -0
  25. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/cleanup_scan.py +0 -0
  26. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/cli.py +0 -0
  27. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/cli_tools.py +0 -0
  28. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/commit.py +0 -0
  29. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/dead_code.py +0 -0
  30. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/__init__.py +0 -0
  31. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/advisories.py +0 -0
  32. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/cli.py +0 -0
  33. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/cooldown.py +0 -0
  34. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/lockfiles.py +0 -0
  35. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/osv.py +0 -0
  36. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/versions.py +0 -0
  37. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/env_config.py +0 -0
  38. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/env_files.py +0 -0
  39. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/find_injection.py +0 -0
  40. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/find_repo.py +0 -0
  41. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/gh_args.py +0 -0
  42. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/gh_issue.py +0 -0
  43. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/gh_pr.py +0 -0
  44. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/github_api.py +0 -0
  45. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/gitrepo.py +0 -0
  46. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/injection_frontend.py +0 -0
  47. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/injection_python.py +0 -0
  48. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/issue_do.py +0 -0
  49. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/issue_show.py +0 -0
  50. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/issue_watch.py +0 -0
  51. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint.py +0 -0
  52. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_findings.py +0 -0
  53. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_models.py +0 -0
  54. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_sql.py +0 -0
  55. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_sql_files.py +0 -0
  56. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_tooling.py +0 -0
  57. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_typescript.py +0 -0
  58. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/logs.py +0 -0
  59. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_build.py +0 -0
  60. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_cancel.py +0 -0
  61. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_choice.py +0 -0
  62. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_create_args.py +0 -0
  63. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_drift.py +0 -0
  64. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_info.py +0 -0
  65. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_issue_link.py +0 -0
  66. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_labels.py +0 -0
  67. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_list.py +0 -0
  68. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_logs.py +0 -0
  69. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_markdown.py +0 -0
  70. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_merge_defaults.py +0 -0
  71. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_ref.py +0 -0
  72. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pull.py +0 -0
  73. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/testdb.py +0 -0
  74. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/translate.py +0 -0
  75. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/__init__.py +0 -0
  76. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/cli.py +0 -0
  77. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/pipeline.py +0 -0
  78. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/pricing.py +0 -0
  79. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/report.py +0 -0
  80. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/00_schema.sql +0 -0
  81. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/01_ingest_claude.sql +0 -0
  82. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/01_ingest_codex.sql +0 -0
  83. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/02_messages.sql +0 -0
  84. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/03_markers.sql +0 -0
  85. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/04_facts.sql +0 -0
  86. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/05_views.sql +0 -0
  87. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/worktree.py +0 -0
  88. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/justfile +0 -0
  89. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/prek.toml +0 -0
  90. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/skills/bmsdna-devtools/SKILL.md +0 -0
  91. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/conftest.py +0 -0
  92. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/fake_github.py +0 -0
  93. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_ado_auth.py +0 -0
  94. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_ado_issue.py +0 -0
  95. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_ado_issue_flow.py +0 -0
  96. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_agent_mentions.py +0 -0
  97. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_api_usage.py +0 -0
  98. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_app_service_logs.py +0 -0
  99. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_azure_arm.py +0 -0
  100. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_bdt_config.py +0 -0
  101. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_business_user.py +0 -0
  102. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_ci_plan_env.py +0 -0
  103. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cleanup_claude.py +0 -0
  104. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cleanup_scan.py +0 -0
  105. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_cleanup.py +0 -0
  106. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_commit.py +0 -0
  107. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_deps.py +0 -0
  108. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_issue.py +0 -0
  109. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_pr_create.py +0 -0
  110. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_pr_id.py +0 -0
  111. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_pull.py +0 -0
  112. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_tools.py +0 -0
  113. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_version.py +0 -0
  114. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_commit.py +0 -0
  115. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_deps_advisories.py +0 -0
  116. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_deps_cooldown.py +0 -0
  117. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_deps_lockfiles.py +0 -0
  118. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_deps_osv.py +0 -0
  119. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_deps_versions.py +0 -0
  120. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_env_config.py +0 -0
  121. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_env_files.py +0 -0
  122. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_find_injection.py +0 -0
  123. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_find_repo.py +0 -0
  124. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_gh_issue.py +0 -0
  125. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_gh_pr.py +0 -0
  126. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_github_api.py +0 -0
  127. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_gitrepo.py +0 -0
  128. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_issue_do.py +0 -0
  129. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_issue_for_me.py +0 -0
  130. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_issue_show.py +0 -0
  131. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_issue_watch.py +0 -0
  132. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint.py +0 -0
  133. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint_models.py +0 -0
  134. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint_sql.py +0 -0
  135. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint_sql_files.py +0 -0
  136. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint_tooling.py +0 -0
  137. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint_typescript.py +0 -0
  138. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_logs.py +0 -0
  139. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_build.py +0 -0
  140. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_build_create_options.py +0 -0
  141. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_build_flow.py +0 -0
  142. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_cancel_build.py +0 -0
  143. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_choice.py +0 -0
  144. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_create_args.py +0 -0
  145. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_description_not_truncated.py +0 -0
  146. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_drift.py +0 -0
  147. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_info.py +0 -0
  148. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_issue_link.py +0 -0
  149. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_labels.py +0 -0
  150. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_list.py +0 -0
  151. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_logs.py +0 -0
  152. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_markdown.py +0 -0
  153. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_merge_defaults.py +0 -0
  154. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pull.py +0 -0
  155. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_testdb.py +0 -0
  156. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_translate.py +0 -0
  157. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_usage.py +0 -0
  158. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_wait_timeout.py +0 -0
  159. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_worktree_clean.py +0 -0
  160. {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_worktree_create.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: bmsdna-devtools
3
- Version: 1.9.0
3
+ Version: 1.9.1
4
4
  Summary: Shared Azure DevOps / GitHub / git / Azure Monitor developer tooling for BMS projects
5
5
  Requires-Python: >=3.14
6
6
  Requires-Dist: azure-identity>=1.19.0
@@ -1015,6 +1015,7 @@ the `branching-strategy` skill). Add the table to pyproject.toml (an empty one s
1015
1015
  on_missing = "infer" # PR without a usable label: infer from the changed files (default) or "fail"
1016
1016
  non_code = ["docs/**", "*.md"] # files no test reads or ships; explicit per repo (full-match globs: `*.md` = root only, `**/*.md` = every folder)
1017
1017
  # the `bdt translate` source file (`[tool.bdt.translate] file`, default translations.toml) always counts too
1018
+ release_branches = ["main", "master", "test", "stage"] # runs of these branches (push or manual) plan no tests (default as shown)
1018
1019
 
1019
1020
  [tool.bdt.ci.plan.tiers.unit] # default tiers: unit = tests/unit, e2e = tests/e2e (a tier whose folder is missing is skipped)
1020
1021
  dir = "tests/unit" # areas = sub-folders with tests (test_*.py / *_test.py); `route_planning` <-> `test-route-planning`
@@ -1050,8 +1051,8 @@ in such a repo: that would skip those tests.
1050
1051
 
1051
1052
  Order of decision, always logged with its reason:
1052
1053
 
1053
- 1. Not a PR: the CI run after a push (merge) to `test`/`main` runs nothing (that code was tested on its way into
1054
- `dev`); the nightly, manual runs (also on `test`/`main`), other branches and forks run everything. A manual run of
1054
+ 1. Not a PR: a run of a release branch itself (`release_branches`, default `main`, `master`, `test`, `stage`), after a
1055
+ push (merge) or started manually, runs nothing (that code was tested on its way into `dev`); the nightly, manual runs on other branches and forks run everything. A manual run of
1055
1056
  `refs/pull/<id>/merge` is planned like that PR (a fork PR still runs everything).
1056
1057
  2. Branch flow: promotions (`dev` -> `test`, `test` -> `main`, `main` -> `dev`) run nothing. `fix/*` / `hotfix/*` into
1057
1058
  `main` are tested and must be cut from `main` (no unreleased `dev` commits). `cherry/*` ports a subset of
@@ -996,6 +996,7 @@ the `branching-strategy` skill). Add the table to pyproject.toml (an empty one s
996
996
  on_missing = "infer" # PR without a usable label: infer from the changed files (default) or "fail"
997
997
  non_code = ["docs/**", "*.md"] # files no test reads or ships; explicit per repo (full-match globs: `*.md` = root only, `**/*.md` = every folder)
998
998
  # the `bdt translate` source file (`[tool.bdt.translate] file`, default translations.toml) always counts too
999
+ release_branches = ["main", "master", "test", "stage"] # runs of these branches (push or manual) plan no tests (default as shown)
999
1000
 
1000
1001
  [tool.bdt.ci.plan.tiers.unit] # default tiers: unit = tests/unit, e2e = tests/e2e (a tier whose folder is missing is skipped)
1001
1002
  dir = "tests/unit" # areas = sub-folders with tests (test_*.py / *_test.py); `route_planning` <-> `test-route-planning`
@@ -1031,8 +1032,8 @@ in such a repo: that would skip those tests.
1031
1032
 
1032
1033
  Order of decision, always logged with its reason:
1033
1034
 
1034
- 1. Not a PR: the CI run after a push (merge) to `test`/`main` runs nothing (that code was tested on its way into
1035
- `dev`); the nightly, manual runs (also on `test`/`main`), other branches and forks run everything. A manual run of
1035
+ 1. Not a PR: a run of a release branch itself (`release_branches`, default `main`, `master`, `test`, `stage`), after a
1036
+ push (merge) or started manually, runs nothing (that code was tested on its way into `dev`); the nightly, manual runs on other branches and forks run everything. A manual run of
1036
1037
  `refs/pull/<id>/merge` is planned like that PR (a fork PR still runs everything).
1037
1038
  2. Branch flow: promotions (`dev` -> `test`, `test` -> `main`, `main` -> `dev`) run nothing. `fix/*` / `hotfix/*` into
1038
1039
  `main` are tested and must be cut from `main` (no unreleased `dev` commits). `cherry/*` ports a subset of
@@ -6,6 +6,7 @@ Configured under `[tool.bdt.ci.plan]` in pyproject.toml (the table must exist, e
6
6
  on_missing = "infer" # PR without a usable label: "infer" from the changed files (default) or "fail"
7
7
  non_code = ["docs/**", "*.md"] # files no test reads or ships; explicit per repo (`*.md` = root only, `**/*.md` = all)
8
8
  # (the `bdt translate` file, translations.toml, is always one of them)
9
+ release_branches = ["main", "master", "test", "stage"] # runs of these (push or manual) plan no tests (default as shown)
9
10
 
10
11
  [tool.bdt.ci.plan.tiers.unit] # default tiers: unit = tests/unit, e2e = tests/e2e
11
12
  dir = "tests/unit" # areas = sub-folders with tests (snake_case folder <-> kebab-case label)
@@ -24,8 +25,9 @@ to that folder, so a file outside it is a `../` path: own it with `paths` (`infr
24
25
  Labels: `test-<area>`, `test-full` (everything), `test-none` (no tests; lint and build still run). The legacy
25
26
  `e2e-<area>` labels count as `test-<area>`. Order of decision (the reason is always reported):
26
27
 
27
- 1. Not a PR: the CI run after a push (merge) to `test`/`main` runs nothing (promoted code was tested on its way
28
- into `dev`); anything else (nightly, manual runs, other branches) and forks run everything.
28
+ 1. Not a PR: a run of a release branch itself (`release_branches`, default main, master, test, stage), after a push or
29
+ started manually, runs nothing (promoted code was tested on its way into `dev`); anything else (nightly, manual runs
30
+ on other branches) and forks run everything.
29
31
  2. Branch flow: promotions (dev -> test -> main -> dev) run nothing; `fix/*` and `hotfix/*` into `main` are tested and `cherry/*` (a subset of `test` ported to `main`) runs
30
32
  the full suite whatever its label; both must be cut from `main`; any other PR into `test`/`main` is an error.
31
33
  3. PR labels decide. Without a usable label the changed files decide (`on_missing = "infer"`): nothing changed or
@@ -59,7 +61,9 @@ LONG_LIVED = frozenset({"dev", "test", "main"})
59
61
  PROMOTIONS = frozenset({("dev", "test"), ("test", "main"), ("main", "dev")})
60
62
  FIX_PREFIXES = ("fix/", "hotfix/")
61
63
  PORT_PREFIXES = ("cherry/",) # a subset of test cherry-picked onto a branch cut from main
62
- PUSH_REASONS = frozenset({"IndividualCI", "BatchedCI"}) # a merge landed on the branch: deploy only
64
+ DEFAULT_RELEASE_BRANCHES = ("main", "master", "test", "stage") # environment branches: code lands here after dev
65
+ # A merge landed on the branch, or a manual re-run of it: deploy only.
66
+ PUSH_REASONS = frozenset({"IndividualCI", "BatchedCI", "Manual"})
63
67
  INFRA_AREA = "infra" # owns `infra/**` by default when the repo has an infra/ folder; usually has no tests
64
68
  RESERVED_AREAS = frozenset({"full", "none"}) # test-full / test-none are the control labels
65
69
 
@@ -157,6 +161,7 @@ class PlanConfig:
157
161
  on_missing: OnMissing = "infer"
158
162
  non_code: tuple[str, ...] = ()
159
163
  paths: Mapping[str, tuple[str, ...]] = field(default_factory=dict)
164
+ release_branches: tuple[str, ...] = DEFAULT_RELEASE_BRANCHES
160
165
 
161
166
  def all_areas(self) -> set[str]:
162
167
  """Areas with tests in a tier, plus areas that only own paths (such as `infra`, which may have no tests)."""
@@ -228,6 +233,7 @@ def load_plan_config(start: Path | None = None) -> PlanConfig | None:
228
233
  if (pyproject.parent / "infra").is_dir():
229
234
  paths.setdefault(INFRA_AREA, ("infra/**",))
230
235
  non_code = _strings(raw.get("non_code", []), "non_code")
236
+ release_branches = _strings(raw.get("release_branches", list(DEFAULT_RELEASE_BRANCHES)), "release_branches")
231
237
  if translations := _translations_file(start):
232
238
  non_code += (glob.escape(translations),)
233
239
  config = PlanConfig(
@@ -236,6 +242,7 @@ def load_plan_config(start: Path | None = None) -> PlanConfig | None:
236
242
  on_missing=on_missing,
237
243
  non_code=non_code,
238
244
  paths=paths,
245
+ release_branches=release_branches,
239
246
  )
240
247
  if clash := sorted(config.all_areas() & RESERVED_AREAS):
241
248
  raise ValueError(
@@ -394,10 +401,10 @@ def make_plan(
394
401
  """The decision. The three callables are the only I/O: PR labels, changed files, and the fix-branch base check
395
402
  (raises BranchFlowError on a violation). Unreadable inputs (OSError, ValueError, RuntimeError) select everything."""
396
403
  if ctx.pr_id is None:
397
- if ctx.branch in {"test", "main"} and ctx.reason in PUSH_REASONS:
404
+ if ctx.branch in config.release_branches and ctx.reason in PUSH_REASONS:
398
405
  return Plan(
399
406
  "none",
400
- f"push to {ctx.branch}: that code was tested on its way into dev, deploy only",
407
+ f"{ctx.reason or 'run'} of {ctx.branch}: that code was tested on its way into dev, deploy only",
401
408
  )
402
409
  return _full(config, "not a PR build")
403
410
  if ctx.is_fork:
@@ -10,7 +10,7 @@ packages = ["bmsdna"]
10
10
 
11
11
  [project]
12
12
  name = "bmsdna-devtools"
13
- version = "1.9.0"
13
+ version = "1.9.1"
14
14
  description = "Shared Azure DevOps / GitHub / git / Azure Monitor developer tooling for BMS projects"
15
15
  readme = "README.md"
16
16
  requires-python = ">=3.14" # pgdevkit>=0.7.1 requires 3.14; was >=3.11 before adding it as a dependency
@@ -391,15 +391,31 @@ def test_fix_base_check_only_runs_for_main(config) -> None:
391
391
  assert plan_for(config, pr("fix/x", "dev"), labels=["test-full"], fix_base=must_not_run).kind == "full"
392
392
 
393
393
 
394
- def test_push_to_test_or_main_runs_nothing(config) -> None:
394
+ def test_push_or_manual_run_of_test_or_main_runs_nothing(config) -> None:
395
395
  for branch in ("main", "test"):
396
- for reason in ("IndividualCI", "BatchedCI"):
396
+ for reason in ("IndividualCI", "BatchedCI", "Manual"):
397
397
  assert plan_for(config, Context(branch=branch, reason=reason)).kind == "none"
398
398
 
399
399
 
400
+ @pytest.mark.parametrize("branch", ["master", "stage"])
401
+ def test_default_release_branches_also_cover_master_and_stage(config, branch) -> None:
402
+ assert plan_for(config, Context(branch=branch, reason="Manual")).kind == "none"
403
+
404
+
405
+ def test_release_branches_can_be_overridden(repo) -> None:
406
+ pyproject = repo / "pyproject.toml"
407
+ pyproject.write_text(
408
+ pyproject.read_text().replace("[tool.bdt.ci.plan]\n", '[tool.bdt.ci.plan]\nrelease_branches = ["prod"]\n', 1)
409
+ )
410
+ custom = load_plan_config(repo)
411
+ assert custom is not None
412
+ assert plan_for(custom, Context(branch="prod", reason="Manual")).kind == "none"
413
+ assert plan_for(custom, Context(branch="main", reason="Manual")).kind == "full"
414
+
415
+
400
416
  @pytest.mark.parametrize("branch", ["main", "test"])
401
- @pytest.mark.parametrize("reason", ["Manual", "Schedule", ""])
402
- def test_manual_and_scheduled_runs_on_test_or_main_run_everything(config, branch, reason) -> None:
417
+ @pytest.mark.parametrize("reason", ["Schedule", ""])
418
+ def test_scheduled_and_unknown_runs_on_test_or_main_run_everything(config, branch, reason) -> None:
403
419
  assert plan_for(config, Context(branch=branch, reason=reason)).kind == "full"
404
420
 
405
421
 
@@ -651,3 +667,9 @@ def test_test_files_with_folders_are_rejected(tmp_path, value: str) -> None:
651
667
  (tmp_path / "pyproject.toml").write_text(f'[tool.bdt.ci.plan.tiers.e2e]\ndir = "e2e"\ntest_files = {value}\n')
652
668
  with pytest.raises(ValueError, match="no folders"):
653
669
  load_plan_config(tmp_path)
670
+
671
+
672
+ def test_release_branches_must_be_a_list_of_strings(tmp_path) -> None:
673
+ (tmp_path / "pyproject.toml").write_text('[tool.bdt.ci.plan]\nrelease_branches = "main"\n')
674
+ with pytest.raises(ValueError, match="release_branches"):
675
+ load_plan_config(tmp_path)
@@ -58,7 +58,7 @@ wheels = [
58
58
 
59
59
  [[package]]
60
60
  name = "bmsdna-devtools"
61
- version = "1.9.0"
61
+ version = "1.9.1"
62
62
  source = { editable = "." }
63
63
  dependencies = [
64
64
  { name = "azure-identity" },