Skip to content

fix(telemetry): drop the copied weaver version from the install hint #6423

Closed

Description

@dan-petty

Problem

src/devops_cli/config/constants.py:2134 holds a copied tool version, CONST_SEMCONV_WEAVER_VERSION = "0.26.1". Its only use is the install hint of devops telemetry semconv (src/devops_cli/telemetry/semconv.py:207). No Renovate manager writes it, so a weaver release makes the hint wrong. The owner rule of 2026-11-19 says that devops-cli is not a package manager: no tool version stays in src/ that a dependency update must change. The package-manager sweep of 2026-11-19 kept the constant only until weaver is in the devtools image.

Change

  • dan-petty/devtools adds weaver to mise.toml and mise.lock (both platforms), so Renovate's mise manager bumps it.
  • Delete CONST_SEMCONV_WEAVER_VERSION. The install hint names the devtools image and the weaver releases page with no version.
  • weaver_package_argv and its test stay: they test the argv that the code builds, not a version value.

Proof

  • git grep -n SEMCONV_WEAVER_VERSION origin/main -- src returns nothing.
  • A test first: with no weaver on PATH, the DependencyError hint has no version number and names the devtools image (it fails on base).
  • weaver --version passes in the devtools image test (test/tools.sh).

Depends on: dan-petty/devtools#1

Proposed design

Problem statement

src/devops_cli/config/constants.py:2134 holds a copy of the weaver version, CONST_SEMCONV_WEAVER_VERSION = "0.26.1". Only the install hint of devops telemetry semconv uses it. No Renovate manager updates this copy, so a weaver release makes the hint wrong. The owner rule of 2026-11-19 says that devops-cli is not a package manager: no tool version stays in src/ that a dependency update must change.

Acceptance criteria

Requirement: Install hint has no weaver version

The DependencyError hint of devops telemetry semconv SHALL name the devtools image and the weaver releases page with no version number.

Scenario: Weaver is absent from PATH

  • WHEN the test calls the semconv command with a PATH that holds no weaver binary
  • THEN the raised DependencyError message holds no version number, names dan-petty/devtools and holds the weaver releases URL.

Requirement: Copied weaver version is gone

src/devops_cli/config/constants.py MUST hold no CONST_SEMCONV_WEAVER_VERSION constant.

Scenario: Constants module has no weaver version

  • WHEN the test imports devops_cli.config.constants
  • THEN hasattr returns false for CONST_SEMCONV_WEAVER_VERSION.

Requirement: Weaver argv builder is kept

weaver_package_argv SHALL build the same argv as before.

Scenario: Weaver package argv test

  • WHEN the test suite runs tests/telemetry/test_telemetry_semconv.py
  • THEN the weaver_package_argv test passes with no change to its assertions.

Existing Tool Considered

No alternatives check has run on this item. Renovate's mise manager is the open, maintained tool that covers the need: it bumps the weaver version in mise.toml and mise.lock of dan-petty/devtools. It lacks a view of a copy of the version in src/, so this item deletes that copy and writes no version-tracking code.

Key questions

  • What does the install hint give in place of the copied version?: The hint names the devtools image and the weaver releases page, with no version number. (best practice) [sources: src/devops_cli/telemetry/semconv.py:207, src/devops_cli/config/constants.py:2134]
    • Chosen: No version; name the image and the releases page. The version lives in the devtools mise files, which Renovate bumps, so the hint needs no copy.
    • Rejected: Keep the version and add a Renovate regex manager. It keeps a tool version in src/, which the owner rule of 2026-11-19 forbids.
    • Rejected: Read the version from the image at run time. The command fails before weaver runs, so no version is available.
  • Where does the weaver version live after the constant is gone?: In mise.toml and mise.lock of dan-petty/devtools, which Renovate's mise manager bumps. (best practice) [sources: src/devops_cli/config/constants.py:2134, src/devops_cli/telemetry/semconv.py:33]
    • Chosen: mise files in dan-petty/devtools. Renovate's mise manager updates them on each release, with no code in this repository.
    • Rejected: A version file in src/ read at run time. It puts a tool version back in src/ that a dependency update must change.
    • Rejected: A Renovate regex manager on the Python constant. It keeps the copy that the owner rule removes.
  • Where does the test of the install hint go?: In tests/telemetry/test_telemetry_semconv.py, which already imports weaver_package_argv from devops_cli.telemetry.semconv. (best practice) [sources: tests/telemetry/test_telemetry_semconv.py, src/devops_cli/telemetry/semconv.py:207]
    • Chosen: Extend tests/telemetry/test_telemetry_semconv.py. The file already imports the semconv symbols and tests the weaver argv.
    • Rejected: Add a new test module. It splits the semconv tests over two files for one assertion.
  • Does any other code use CONST_SEMCONV_WEAVER_VERSION?: No. Only src/devops_cli/telemetry/semconv.py imports it at line 33 and uses it in the hint at line 207. [sources: src/devops_cli/telemetry/semconv.py:33, src/devops_cli/telemetry/semconv.py:207, src/devops_cli/config/constants.py:2134]

Fit

Fits in one pull request.

Suspected block

dan-petty/devtools#1 and its image release: the hint names the devtools image as the install source, so weaver must ship in that image first.

Dependencies

None.

Activity

  1. added
    type/bug
    scope/telemetry
    source/agent
    status/new
    on Nov 19, 2026
  2. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor
  3. added
    effort/low
    value/low
    priority/p2-medium
    on Nov 19, 2026
  4. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  5. added
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 19, 2026
  6. added
    status/in-review
    and removed
    status/in-progress
    on Nov 19, 2026
  7. removed
    status/in-review
    owner/agent
    on Nov 19, 2026
  8. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor
  9. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-19 21:54 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/telemetrysource/agenttype/bugvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions