Skip to content

fix(assistant): report packaged build identity in diagnostics - #1275

Open
DivyamTalwar wants to merge 1 commit into
Tencent:mainfrom
DivyamTalwar:fix/diagnostics-packaged-platform-version
Open

DivyamTalwar wants to merge 1 commit into
Tencent:mainfrom
DivyamTalwar:fix/diagnostics-packaged-platform-version

Conversation

@DivyamTalwar

Copy link
Copy Markdown

What changed

Refs #1074.

Published images already carry a validated release tag and the packaged commit. Assistant diagnostic exports only read Go build information, so a release image built outside a Git checkout reported (devel) and omitted the revision.

Diagnostics now use the same release metadata as Studio when it is available. This records both the deployed version and the exact image source revision in the diagnostic bundle that users attach to issue reports.

Scope

  • Platform core / API / runner

Compatibility

Uses the current diagnostic fields and retains Go build information as the fallback for source builds.

Validation

  • Reproduced (devel) and a missing revision on upstream with the same environment variable and commit-file layout used by the image. The regression now asserts the packaged release tag and commit.
  • Targeted assistant diagnostic and Studio tests, go vet -p=2 ./internal/httpapi, git diff --check, python3 scripts/check-public.py, and pinned Gitleaks 8.30.1 passed.
  • Full Go suite and Docker image smoke test were not run for this branch.

Safety

  • No credentials, internal endpoints, production data, or organization-specific infrastructure.
  • Existing files and unrelated changes preserved.

Codex assisted with the implementation and tests. I verified the regression against upstream and the proposed patch.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant