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.
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/PKG-INFO +4 -3
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/README.md +3 -2
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/ci_plan.py +12 -5
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/pyproject.toml +1 -1
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_ci_plan.py +26 -4
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/uv.lock +1 -1
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/.github/workflows/auto-release.yml +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/.github/workflows/python-publish.yml +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/.github/workflows/python-test.yml +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/.gitignore +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/.python-version +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/__init__.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/_api_dump.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/ado_auth.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/ado_issue.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/agent_mentions.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/api_usage.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/app_service_logs.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/azure_arm.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/azure_auth.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/bdt_config.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/business_user.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/ci_plan_env.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/cleanup_claude.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/cleanup_scan.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/cli.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/cli_tools.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/commit.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/dead_code.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/__init__.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/advisories.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/cli.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/cooldown.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/lockfiles.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/osv.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/deps/versions.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/env_config.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/env_files.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/find_injection.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/find_repo.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/gh_args.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/gh_issue.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/gh_pr.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/github_api.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/gitrepo.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/injection_frontend.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/injection_python.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/issue_do.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/issue_show.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/issue_watch.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_findings.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_models.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_sql.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_sql_files.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_tooling.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/lint_typescript.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/logs.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_build.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_cancel.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_choice.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_create_args.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_drift.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_info.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_issue_link.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_labels.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_list.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_logs.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_markdown.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_merge_defaults.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pr_ref.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/pull.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/testdb.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/translate.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/__init__.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/cli.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/pipeline.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/pricing.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/report.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/00_schema.sql +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/01_ingest_claude.sql +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/01_ingest_codex.sql +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/02_messages.sql +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/03_markers.sql +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/04_facts.sql +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/05_views.sql +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/worktree.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/justfile +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/prek.toml +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/skills/bmsdna-devtools/SKILL.md +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/conftest.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/fake_github.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_ado_auth.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_ado_issue.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_ado_issue_flow.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_agent_mentions.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_api_usage.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_app_service_logs.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_azure_arm.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_bdt_config.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_business_user.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_ci_plan_env.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cleanup_claude.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cleanup_scan.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_cleanup.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_commit.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_deps.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_issue.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_pr_create.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_pr_id.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_pull.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_tools.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_cli_version.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_commit.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_deps_advisories.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_deps_cooldown.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_deps_lockfiles.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_deps_osv.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_deps_versions.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_env_config.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_env_files.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_find_injection.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_find_repo.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_gh_issue.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_gh_pr.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_github_api.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_gitrepo.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_issue_do.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_issue_for_me.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_issue_show.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_issue_watch.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint_models.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint_sql.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint_sql_files.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint_tooling.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_lint_typescript.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_logs.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_build.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_build_create_options.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_build_flow.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_cancel_build.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_choice.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_create_args.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_description_not_truncated.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_drift.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_info.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_issue_link.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_labels.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_list.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_logs.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_markdown.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pr_merge_defaults.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_pull.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_testdb.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_translate.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_usage.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_wait_timeout.py +0 -0
- {bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/tests/test_worktree_clean.py +0 -0
- {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.
|
|
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:
|
|
1054
|
-
`dev`); the nightly, manual runs
|
|
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:
|
|
1035
|
-
`dev`); the nightly, manual runs
|
|
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:
|
|
28
|
-
into `dev`); anything else (nightly, manual runs
|
|
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
|
-
|
|
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
|
|
404
|
+
if ctx.branch in config.release_branches and ctx.reason in PUSH_REASONS:
|
|
398
405
|
return Plan(
|
|
399
406
|
"none",
|
|
400
|
-
f"
|
|
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.
|
|
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
|
|
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", ["
|
|
402
|
-
def
|
|
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)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/01_ingest_claude.sql
RENAMED
|
File without changes
|
{bmsdna_devtools-1.9.0 → bmsdna_devtools-1.9.1}/bmsdna/devtools/usage/sql/01_ingest_codex.sql
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|