Skip to content

test(parakeet): upload DER diagnostics artifact - #8351

Merged
Git-on-my-level merged 3 commits into
BasedHardware:mainfrom
Git-on-my-level:fix/issue-8350-parakeet-der-artifacts
Jun 25, 2026
Merged

Git-on-my-level merged 3 commits into
BasedHardware:mainfrom
Git-on-my-level:fix/issue-8350-parakeet-der-artifacts

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jun 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • persist structured VoxConverse DER diagnostics from Phase 5 when DER_RESULTS_PATH is set
  • include aggregate DER components, per-clip components, reference/hypothesis speaker counts, and benchmark config in the JSON report
  • copy the report from the GPU test Kubernetes pod and upload it as a GitHub Actions artifact
  • add CPU-only coverage for aggregate/report artifact generation

Enables #8110.
Closes #8350.

Verification

cd backend
VIRTUAL_ENV= uv run python -m pytest tests/container/test_parakeet_der_benchmark.py -q -k DERDiagnosticsArtifact
python - <<'PY'
import yaml, pathlib
p = pathlib.Path('../.github/workflows/parakeet_gpu_tests.yml')
data = yaml.safe_load(p.read_text())
assert 'gpu-tests' in data['jobs']
print('workflow yaml ok')
PY
git diff --check

Result:

2 passed, 3 deselected
workflow yaml ok

Full Phase 5 DER execution still requires the GPU workflow/container environment.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Confidence score: 4/5

  • In .github/workflows/parakeet_gpu_tests.yml, artifact names can collide on reruns, which may trigger upload-artifact@v4 conflicts and make GPU test runs fail or look flaky in CI; this is mostly a pipeline reliability risk rather than a runtime regression — include github.run_attempt in the artifact name (or enable overwrite) before merging to de-risk reruns.

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b0123f1bc4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Addressed the workflow artifact review feedback.

Fixes:

  • Artifact names now include ${{ github.run_attempt }} to avoid upload-artifact@v4 name collisions on reruns.
  • Removed the kubectl cp approach because completed Job pods are not reliable copy targets.
  • The GPU job now emits the DER JSON between stable log markers immediately after Phase 5; the runner extracts those markers from collected logs and uploads the JSON artifact.

Verification:

cd backend
VIRTUAL_ENV= uv run python -m pytest tests/container/test_parakeet_der_benchmark.py -q -k DERDiagnosticsArtifact
# 2 passed, 3 deselected

python - <<'PY'
import yaml, pathlib
p=pathlib.Path('../.github/workflows/parakeet_gpu_tests.yml')
data=yaml.safe_load(p.read_text())
script=[s for s in data['jobs']['gpu-tests']['steps'] if s.get('name')=='Extract DER diagnostics artifact'][0]['run']
print(script)
print('workflow yaml ok')
PY

git diff --check

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file (changes from recent commits).

You’re at about 93% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Addressed the remaining marker parser comment.

Fix:

  • The extractor now finds the end marker only after the selected start marker and skips extraction if the ordered pair is missing. This avoids accidentally extracting invalid JSON when logs contain duplicated/out-of-order marker text.

Verification:

cd backend
VIRTUAL_ENV= uv run python -m pytest tests/container/test_parakeet_der_benchmark.py -q -k DERDiagnosticsArtifact
# 2 passed, 3 deselected

python - <<'PY'
import yaml, pathlib
p=pathlib.Path('../.github/workflows/parakeet_gpu_tests.yml')
data=yaml.safe_load(p.read_text())
script=[s for s in data['jobs']['gpu-tests']['steps'] if s.get('name')=='Extract DER diagnostics artifact'][0]['run']
assert 'end_index = text.find(end, start_index + len(start))' in script
print('workflow yaml ok')
PY

git diff --check

@Git-on-my-level
Git-on-my-level merged commit 29f07ad into BasedHardware:main Jun 25, 2026
3 checks passed
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.

Persist structured VoxConverse DER diagnostics from GPU Phase 5

1 participant