Skip to content

ci(warm-deps): fix empty --extras on base matrix legs (#831)#848

Merged
vikrantpuppala merged 1 commit into
mainfrom
fix/831-warmer-extras-ternary
Jul 8, 2026
Merged

ci(warm-deps): fix empty --extras on base matrix legs (#831)#848
vikrantpuppala merged 1 commit into
mainfrom
fix/831-warmer-extras-ternary

Conversation

@vikrantpuppala

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #845. The warmer's first dispatch failed on all extras=base legs with:

Run poetry install --no-interaction --extras
The "--extras" option requires a value

Root cause: the install-args expression was matrix.extras == '' && '' || format('--extras {0}', matrix.extras). GitHub Actions' A && B || C treats the empty-string middle operand '' as falsy, so the base leg fell through to the format(...) branch and emitted --extras with no value. pyarrow/kernel legs (non-empty extras) were unaffected — which is exactly the observed split.

Fix: test for non-empty extras first, default to '':

install-args: ${{ matrix.extras != '' && format('--extras {0}', matrix.extras) || '' }}

Test plan

  • actionlint clean.
  • Re-dispatch the warmer on main after this merges; confirm all 25 legs (incl. base) succeed and save forkvenv-* caches. Then verify a fork PR restores them.

Refs #831

This pull request and its description were written by Isaac.

The install-args expression used `matrix.extras == '' && '' || format(...)`.
GitHub Actions treats the empty-string middle operand as falsy, so the base
leg (extras='') fell through to the format() branch and produced `--extras `
with no value, failing `poetry install` with 'The "--extras" option requires
a value'. Only the base legs failed; pyarrow/kernel legs (non-empty extras)
passed.

Invert to test for non-empty extras first and default to '', which never
yields a valueless --extras.

Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>

Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
@vikrantpuppala vikrantpuppala force-pushed the fix/831-warmer-extras-ternary branch from c8a73aa to a8f7ed9 Compare July 8, 2026 15:45
@vikrantpuppala vikrantpuppala merged commit 54e479c into main Jul 8, 2026
51 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.

1 participant