Skip to content

test: increase run deadline#547

Merged
olivermeyer merged 1 commit into
mainfrom
test/increase-deadline
Apr 17, 2026
Merged

test: increase run deadline#547
olivermeyer merged 1 commit into
mainfrom
test/increase-deadline

Conversation

@olivermeyer

Copy link
Copy Markdown
Collaborator

Why?
test_cli_run_submit_succeeds_with_valid_pipeline_config and test_cli_run_submit_succeeds_with_valid_a100_config failed with Value error, deadline must not be in the past. This happens because the run is submitted with a deadline of 5 seconds; by the time we reach submission, those 5 seconds have passed.

How?
This PR increases the run deadline to 60 seconds.

Copilot AI review requested due to automatic review settings April 17, 2026 08:37
@olivermeyer olivermeyer force-pushed the test/increase-deadline branch from dcc7276 to aa13366 Compare April 17, 2026 08:37

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.

Pull request overview

This PR aims to stabilize end-to-end CLI run submission tests by avoiding “deadline must not be in the past” validation failures during submission.

Changes:

  • Increase the --deadline used in two application run submit E2E tests (from +5s to +5m).
  • Update the NiceGUI dependency requirement to >=3.10.0,<4 and refresh uv.lock.
  • Adjust the notebook serving integration test to use nicegui.testing.User’s async HTTP client.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
tests/aignostics/application/cli_pipeline_validation_test.py Extends test run deadlines to reduce flakiness during run submission.
tests/aignostics/notebook/service_test.py Switches notebook endpoint test to async request flow via User.http_client.
pyproject.toml Bumps nicegui[native] minimum version to 3.10.0.
uv.lock Lockfile update reflecting the NiceGUI version bump.

str(csv_path),
"--deadline",
(datetime.now(tz=UTC) + timedelta(seconds=5)).isoformat(),
(datetime.now(tz=UTC) + timedelta(seconds=60)).isoformat(),

Copilot AI Apr 17, 2026

Copy link

Choose a reason for hiding this comment

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

The PR description says the run deadline is increased to 60 seconds, but this test now sets the deadline to 5 minutes. Please align the implementation with the PR description (e.g., use ~60 seconds) or update the PR description/title to match the 5-minute change.

Copilot uses AI. Check for mistakes.
str(csv_path),
"--deadline",
(datetime.now(tz=UTC) + timedelta(seconds=5)).isoformat(),
(datetime.now(tz=UTC) + timedelta(seconds=60)).isoformat(),

Copilot AI Apr 17, 2026

Copy link

Choose a reason for hiding this comment

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

The PR description says the run deadline is increased to 60 seconds, but this test now sets the deadline to 5 minutes. Please align the implementation with the PR description (e.g., use ~60 seconds) or update the PR description/title to match the 5-minute change.

Copilot uses AI. Check for mistakes.
Comment thread pyproject.toml Outdated
"fastapi[all,standard]>=0.123.10",
"humanize>=4.14.0,<5",
"nicegui[native]>=3.5.0,<4", # CVE-2026-21871, CVE-2026-21871, CVE-2026-21873, CVE-2026-21874 all require >=3.5.0
"nicegui[native]>=3.10.0,<4", # CVE-2026-39844

Copilot AI Apr 17, 2026

Copy link

Choose a reason for hiding this comment

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

This PR is described as only increasing the run deadline for failing tests, but it also bumps the NiceGUI dependency (and updates uv.lock accordingly). Please reflect this additional change in the PR description/title (or split it into a separate PR) so reviewers and release notes can track the dependency/security update explicitly.

Copilot uses AI. Check for mistakes.
@olivermeyer olivermeyer force-pushed the test/increase-deadline branch from aa13366 to ab81598 Compare April 17, 2026 09:03
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Apr 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.
see 10 files with indirect coverage changes

@olivermeyer olivermeyer merged commit fa90a99 into main Apr 17, 2026
24 of 25 checks passed
@olivermeyer olivermeyer deleted the test/increase-deadline branch May 7, 2026 08:28
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