Skip to content

fix: skip nil rerun parameters#46

Merged
avivsinai merged 1 commit intoavivsinai:mainfrom
AreAArseth:fix/rerun-skip-nil-params
Apr 7, 2026
Merged

fix: skip nil rerun parameters#46
avivsinai merged 1 commit intoavivsinai:mainfrom
AreAArseth:fix/rerun-skip-nil-params

Conversation

@AreAArseth
Copy link
Copy Markdown
Contributor

Avoid serializing missing rerun parameter values into the literal string "". This keeps rerun payloads compatible with Jenkins jobs that define optional run parameters.

Avoid serializing missing rerun parameter values into the literal string "<nil>".
This keeps rerun payloads compatible with Jenkins jobs that define optional run parameters.

Made-with: Cursor
@avivsinai
Copy link
Copy Markdown
Owner

@dependabot rebase

Copy link
Copy Markdown
Owner

@avivsinai avivsinai left a comment

Choose a reason for hiding this comment

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

LGTM — nil check is in the right place, tests are solid. All CI green (lint, unit, e2e). Minor follow-ups (zero-value regression test, nil display in human output) tracked separately.

@avivsinai avivsinai merged commit e05899d into avivsinai:main Apr 7, 2026
6 checks passed
avivsinai added a commit that referenced this pull request Apr 7, 2026
Add displayParameterValue() to format nil params as "" instead of
"<nil>" in run view output. The rerun path (collectRerunParameters)
already skips nil values via #46; this fixes the display path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
avivsinai added a commit that referenced this pull request Apr 7, 2026
Prove that empty string, zero int, and false bool values survive
the nil filter introduced in #46, while nil is still excluded.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
avivsinai added a commit that referenced this pull request Apr 7, 2026
* fix: render nil parameter values as empty string in human output

Add displayParameterValue() to format nil params as "" instead of
"<nil>" in run view output. The rerun path (collectRerunParameters)
already skips nil values via #46; this fixes the display path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test: add zero-value regression test for collectRerunParameters

Prove that empty string, zero int, and false bool values survive
the nil filter introduced in #46, while nil is still excluded.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
avivsinai added a commit that referenced this pull request Apr 7, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants