Skip to content

test: validate training resume after dataset deletion#683

Open
sdas-neuraco wants to merge 1 commit into
mainfrom
test-integration-training-updates
Open

test: validate training resume after dataset deletion#683
sdas-neuraco wants to merge 1 commit into
mainfrom
test-integration-training-updates

Conversation

@sdas-neuraco

@sdas-neuraco sdas-neuraco commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an integration test that completes training, deletes the associated dataset, and verifies resume fails before mutating the completed job
  • verify deleted dataset metadata and recordings are no longer accessible
  • require an actionable resume error that identifies the deleted dataset and root cause
  • strengthen ML integration coverage for endpoint lifecycle handling and inference output validation

@sdas-neuraco sdas-neuraco self-assigned this Jun 11, 2026
@sdas-neuraco sdas-neuraco force-pushed the test-integration-training-updates branch 2 times, most recently from bd8e297 to e282530 Compare June 16, 2026 14:38
@sdas-neuraco sdas-neuraco marked this pull request as ready for review June 17, 2026 14:38
@sdas-neuraco sdas-neuraco added the version:none tests, docs, CI only; no functional changes label Jun 17, 2026
Comment thread neuracore/api/datasets.py Outdated
Comment on lines +131 to +134
if dataset is not None:
if source_dataset is not None:
raise ValueError("Only one of source_dataset or dataset must be provided")
source_dataset = dataset

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.

Why do we need this alias?

Comment thread neuracore/api/datasets.py Outdated
Comment on lines +214 to +232
def dataset_clone(
new_dataset_name: str,
*,
dataset: Dataset | None = None,
dataset_name: str | None = None,
dataset_id: str | None = None,
wait: bool = True,
) -> Dataset:
"""Clone a dataset and all of its recordings.

Alias for clone_dataset.
"""
return clone_dataset(
new_dataset_name,
dataset=dataset,
dataset_name=dataset_name,
dataset_id=dataset_id,
wait=wait,
)

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.

Why do we need this alias?

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.

Please rebase on main, I think your code is out of date

Comment on lines +156 to +160
breakpoint()
with pytest.raises(ValueError) as exc_info:
nc.resume_training_run(job_id=job_id, additional_epochs=1)

breakpoint()

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.

Please clean up breakpoints

test: expand ML integration coverage

fix: WIP
@sdas-neuraco sdas-neuraco force-pushed the test-integration-training-updates branch from 5eeb7b1 to ed40637 Compare June 26, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:none tests, docs, CI only; no functional changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants