Skip to content

Fix CI compatibility with NumPy 2.5.3 - #1451

Merged
AtsushiSakai merged 1 commit into
masterfrom
codex/numpy-1431-ci
Oct 4, 2026
Merged

AtsushiSakai merged 1 commit into
masterfrom
codex/numpy-1431-ci

Conversation

@AtsushiSakai

Copy link
Copy Markdown
Owner

NumPy 2.5.3 makes the rocket landing test fail under the existing -Werror setting because numpy.testing.suppress_warnings was deprecated in NumPy 2.4. This is the failure seen in the Linux, macOS, and Windows checks on #1431.

Upgrade NumPy from 2.3.5 to 2.5.3 and replace that helper with warnings.catch_warnings() and message-specific warnings.filterwarnings(). The same two known solver warnings remain filtered within the test; the CI warning policy and simulation are unchanged.

Validation on Python 3.13.2 with NumPy 2.5.3 and the pinned requirements:

  • Reproduced the original rocket landing test failure before the fix.
  • pytest tests/test_rocket_powered_landing.py -q -Werror: 1 passed after the fix.
  • bash runtests.sh: 156 passed, including Ruff and mypy checks.
  • python -m pip check: no broken requirements.
  • git diff --check: passed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The targeted replacement preserves warning filtering behavior, and no blocking issues remain.

Review effort: Balanced
Findings: None

What changed in this PR

Restores rocket landing test compatibility with NumPy 2.5.3 without changing the simulation or CI warning policy.

Changes:

  • Upgrades NumPy from 2.3.5 to 2.5.3.
  • Replaces the deprecated warning helper with standard-library filters for the same two solver warnings.
File Description
tests/​test_rocket_powered_landing.py Replaces warning suppression while preserving test-local scope.
requirements/​requirements.txt Pins NumPy to 2.5.3.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@AtsushiSakai
AtsushiSakai marked this pull request as ready for review October 4, 2026 21:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T22:06:45.535132Z 6534134 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused changes preserve warning-filter behavior and introduce no identified blocking issues.

Review effort: Balanced
Findings: None

@AtsushiSakai
AtsushiSakai merged commit 59f0f77 into master Oct 4, 2026
10 checks passed
@AtsushiSakai
AtsushiSakai deleted the codex/numpy-1431-ci branch October 4, 2026 22:13
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