Skip to content

MAINT: Add dataset context to dataset fetch errors - #3175

Open
Aizen__28 (Yudeeswaran) wants to merge 1 commit into
microsoft:mainfrom
Yudeeswaran:p311-08-dataset-fetch-notes
Open

Aizen__28 (Yudeeswaran) wants to merge 1 commit into
microsoft:mainfrom
Yudeeswaran:p311-08-dataset-fetch-notes

Conversation

@Yudeeswaran

@Yudeeswaran Aizen__28 (Yudeeswaran) commented Oct 13, 2026 •

Copy link
Copy Markdown

Description

Implements P311-08 from #3166. When a dataset provider fetch fails, the original exception receives a diagnostic note identifying the dataset and provider, then is re-raised unchanged.

Adds a regression test verifying that the original exception is preserved and that the note contains the expected context.

Tests and Documentation

  • uv run --frozen --extra all python -m pytest tests/unit/datasets/test_seed_dataset_provider.py -q --basetemp <workspace-temp-dir> — 181 passed.
  • uv run pre-commit run --files pyrit/datasets/seed_datasets/seed_dataset_provider.py tests/unit/datasets/test_seed_dataset_provider.py — passed.
  • No documentation changes were needed.

@Yudeeswaran

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

This branch has not been deployed

No deployments
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