Skip to content

ci(fast): install the cloud and data extras on the 3.13 leg - #2036

Merged
dgunning merged 2 commits into
mainfrom
ci/install-optional-extras
Nov 23, 2026
Merged

dgunning merged 2 commits into
mainfrom
ci/install-optional-extras

Conversation

@dgunning

Copy link
Copy Markdown
Owner

The first CI run on main that printed skip reasons (-rs, #2024) showed 4 of the fast lane's 9 skips are tests for optional extras that CI never installs, so they checked nothing on any run:

Test Needs
tests/storage/test_filesystem.py:288, :423 fsspec (cloud extra)
tests/storage/test_datamule_adapter.py:530 zstandard (data extra)
tests/reference/test_reference_company_dataset.py:418 duckdb (data extra)

The change

The 3.13 fast leg, the one pull requests run, installs .[ai,cloud,data]. The other legs stay on .[ai]:

  • 3.11 (the floor leg) keeps the library tested without the extras.
  • 3.15: zstandard 0.25.0 has no 3.15 wheel, so pip would compile it from source on that leg. (duckdb is fine there through its abi3 wheel, and fsspec is pure Python.)

The slow lane's one duckdb skip is left alone. With duckdb installed, that test still skips because it needs SEC's bulk submissions download.

Verification

  • Locally, with the extras installed, the full fast suite gives 52,419 passed and 5 skipped. The 4 extra-gated tests run and pass. The 5 remaining skips are intended: 4 skips for deliberate libxml2-recovery differences, and an empty parameter set.
  • The workflow file parses.
  • This PR's own test-fast (3.13) run is the real check: its skip summary should list 5 skips, not 9.

Made with Claude Code (Claude Opus 5.5).

🤖 Generated with Claude Code

dgunning and others added 2 commits November 23, 2026 10:50
4 of the 9 fast-lane skips on main (run for 0cb92a1, the first with -rs)
were tests that importorskip an optional extra CI never installed:
fsspec (2, tests/storage/test_filesystem.py), zstandard
(tests/storage/test_datamule_adapter.py) and duckdb
(tests/reference/test_reference_company_dataset.py). They checked
nothing on any run.

The 3.13 leg, the one pull requests run, now installs `.[ai,cloud,data]`.
The 3.11 floor leg keeps `.[ai]` so the library stays tested without the
extras, and so does 3.15: zstandard 0.25.0 has no 3.15 wheel and would
build from source there.

Locally with the extras installed, the full fast suite gives 52,419
passed and 5 skipped (the 4 deliberate libxml2-recovery skips and an
empty parameter set); the 4 extra-gated tests run and pass. The slow
lane's duckdb test is left alone: with duckdb present it skips anyway,
for want of SEC's bulk submissions download.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeFactor flagged `${{ matrix.python-version }}` expanded inside the
install script as possible code injection. The value comes from the
fixed matrix, so it was not exploitable, but reading it from an env
variable keeps expressions out of shell source, as GitHub's hardening
guide recommends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dgunning
dgunning merged commit 2215849 into main Nov 23, 2026
13 checks passed
@dgunning
dgunning deleted the ci/install-optional-extras branch November 23, 2026 19:02
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