Skip to content

chore: update deps#3284

Merged
mikewilli merged 5 commits into
mainfrom
deps-20260630
Jul 2, 2026
Merged

chore: update deps#3284
mikewilli merged 5 commits into
mainfrom
deps-20260630

Conversation

@mikewilli

@mikewilli mikewilli commented Jun 30, 2026

Copy link
Copy Markdown
Contributor
  • Dask client change required change from client.register_worker_plugin to client.register_plugin
  • pandas version 3 changed dtype inference to treat string data as str instead of object

Copilot AI 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.

Pull request overview

Updates dependency pins and aligns the codebase/tests with upstream behavior changes in Dask Distributed and pandas 3.x.

Changes:

  • Bump and adjust pinned Python dependencies (notably Dask/Distributed and pandas 3).
  • Update Dask client plugin registration API usage in Analysis.run.
  • Update tests to accommodate pandas 3 indexing/error message changes and add Statistics schema validation in integration testing.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
requirements.in Updates pinned dependencies, including Dask/Distributed and pandas 3.
jetstream/tests/test_statistics.py Updates expected pandas error message dtype string for pandas 3.
jetstream/tests/integration/test_analysis_integration.py Adjusts pandas indexing, filters export records before schema validation, and validates via mozilla_nimbus_schemas Statistics.
jetstream/analysis.py Switches Dask client plugin registration to register_plugin.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1305 to +1309
# drop NaN before validation to match BQ NDJSON extract behavior
statistics_export_data = [
{k: v for k, v in record.items() if v == v}
for record in query_job.to_dataframe().to_dict(orient="records")
]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This appears to cover a scenario that won't happen because to_dict already converts pd.NA to None. We can revisit if the test starts failing, but I'm satisfied that this covers the expectation here.

@akkomar akkomar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

r+wc

#3284 (comment) might be worth fixing.

@mikewilli mikewilli added this pull request to the merge queue Jul 2, 2026
Merged via the queue into main with commit 2cecf86 Jul 2, 2026
4 checks passed
@mikewilli mikewilli deleted the deps-20260630 branch July 2, 2026 20:30
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.

3 participants