Skip to content

Fix Tenzir version probe#41

Merged
mavam merged 4 commits into
mainfrom
topic/fix-version-probe
May 9, 2026
Merged

Fix Tenzir version probe#41
mavam merged 4 commits into
mainfrom
topic/fix-version-probe

Conversation

@mavam
Copy link
Copy Markdown
Member

@mavam mavam commented May 9, 2026

🔍 Problem

  • The harness version probe needs to work with upcoming Tenzir releases where pipeline output must be routed explicitly.
  • tenzir/tenzir still needs to consume this harness before that release candidate is published, so the probe cannot become v6-only yet.

🛠️ Solution

  • Prefer the upcoming-release-compatible version probe.
  • Temporarily fall back to the existing v5-compatible probe while the release bootstrap is in progress.
  • Add a bugfix changelog entry for the compatibility bridge.

💬 Review

  • Focus on the temporary fallback and the FIXME describing when it should be removed.

mavam added 4 commits May 9, 2026 11:42
Route the version probe through an explicit stdout sink so the query remains compatible with current TQL pipeline semantics.

🤖 Assisted-By: OpenAI Codex
Record the version probe compatibility fix as a bugfix entry for PR #41.

🤖 Assisted-By: OpenAI Codex
Try the v6-compatible stdout sink first, then fall back to the legacy v5 probe until tenzir/tenzir can bootstrap onto the next release candidate.

🤖 Assisted-By: OpenAI Codex
Describe the compatibility outcome without exposing implementation details from the version probe.

🤖 Assisted-By: OpenAI Codex
@mavam mavam merged commit f0b527f into main May 9, 2026
2 of 3 checks passed
@mavam mavam deleted the topic/fix-version-probe branch May 9, 2026 09:49
Copy link
Copy Markdown

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

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: 4cb3821927

ℹ️ 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".

Comment thread src/tenzir_test/run.py
Comment on lines +4286 to +4288
except subprocess.CalledProcessError:
continue
raise RuntimeError("failed to detect Tenzir version")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve interrupt/error exit codes from version probe

This loop swallows every CalledProcessError and then raises a generic RuntimeError, which drops the subprocess return code and bypasses the existing interrupt-aware handling in run_cli (the caller only checks CalledProcessError to detect interrupt exits). If version probing fails because the process was interrupted or terminated, the harness now reports an untyped runtime failure instead of taking the normal interrupt/error path.

Useful? React with 👍 / 👎.

Comment thread src/tenzir_test/run.py
"version | select version | write_lines",
):
try:
return subprocess.check_output([*command, pipeline]).decode().strip()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Suppress expected stderr from fallback probe attempt

The first probe command is expected to fail on v5 binaries (per the inline comment), but subprocess.check_output is called without redirecting stderr, so that expected failure will emit an error message on every startup even when the fallback succeeds. This creates noisy/false error output for supported v5 environments and can confuse users or stderr-sensitive automation.

Useful? React with 👍 / 👎.

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