Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 6, 2026

Bumps idc-index-data from 23.0.3 to 23.2.7.

Release notes

Sourced from idc-index-data's releases.

23.2.7

What's Changed

Full Changelog: ImagingDataCommons/idc-index-data@23.2.6...23.2.7

23.2.6

What's Changed

Full Changelog: ImagingDataCommons/idc-index-data@23.2.5...23.2.6

23.2.5

What's Changed

Full Changelog: ImagingDataCommons/idc-index-data@23.2.4...23.2.5

23.2.4

What's Changed

Full Changelog: ImagingDataCommons/idc-index-data@23.2.3...23.2.4

23.2.3

What's Changed

Full Changelog: ImagingDataCommons/idc-index-data@23.2.2...23.2.3

23.2.2

What's Changed

Full Changelog: ImagingDataCommons/idc-index-data@23.2.1...23.2.2

23.2.1

What's Changed

Full Changelog: ImagingDataCommons/idc-index-data@23.2.0...23.2.1

23.2.0

... (truncated)

Commits
  • 44d2976 ENH: eliminate redundancy in code to generate indices
  • 87ceabc ci: remove artifact files from gitignore
  • 7f8a240 ci: remove parquet files not whitelisted to control package size
  • 5e1bf29 ci: tell hatch to not use .gitignore for selecting artifacts
  • 3857d0a bug: reorganize GHA workflows
  • 03368fd bug: fix packaging of artifacts
  • be46ca9 bug: fix path for downloaded artifacts
  • 25d3edb bug: fix adding package files to wheel
  • 9d3347b enh: fix copilot identified issues, add index filepath to index metadata
  • 2b764a8 enh: fix linting
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added bot Automated pull requests or issues dependabot Pull requests from Dependabot dependencies Pull requests that update a dependency file skip:test:long_running Skip long-running tests (≥5min) labels Jan 6, 2026
@dependabot dependabot bot added dependencies Pull requests that update a dependency file bot Automated pull requests or issues dependabot Pull requests from Dependabot skip:test:long_running Skip long-running tests (≥5min) labels Jan 6, 2026
@olivermeyer
Copy link
Collaborator

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/pip/idc-index-data-23.2.7 branch from 6fced64 to f13e2c8 Compare January 8, 2026 15:02
@olivermeyer
Copy link
Collaborator

@dependabot rebase

Bumps [idc-index-data](https://github.com/ImagingDataCommons/idc-index-data) from 23.0.3 to 23.2.7.
- [Release notes](https://github.com/ImagingDataCommons/idc-index-data/releases)
- [Commits](ImagingDataCommons/idc-index-data@23.0.3...23.2.7)

---
updated-dependencies:
- dependency-name: idc-index-data
  dependency-version: 23.2.7
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/idc-index-data-23.2.7 branch from f13e2c8 to 85670f0 Compare January 9, 2026 09:34
"html-sanitizer>=2.6.0,<3",
"httpx>=0.28.1,<1",
"idc-index-data==23.0.3",
"idc-index-data==23.2.7",
Copy link

Choose a reason for hiding this comment

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

Bug: A failure to download an index file from a GitHub release is not handled with an exception, leading to a runtime error when the None attribute is accessed later.
Severity: CRITICAL

🔍 Detailed Analysis

The fetch_index() method in idc_index.py downloads additional index files, such as sm_instance_index.parquet, from GitHub release assets. If a file is missing from the release, the method logs an error but does not raise an exception. This causes the corresponding attribute, like client.sm_instance_index, to remain None. Subsequent code in _service.py that attempts to use this attribute to download individual DICOM instances will fail with an error, such as an AttributeError. This silent failure during the download process leads to a runtime crash when a core feature is used.

💡 Suggested Fix

Modify the fetch_index() method in idc_index.py to raise an exception if the requests.get() call fails to download an index file (e.g., status code is not 200). This will ensure the failure is caught immediately, rather than silently propagating a None value that causes a downstream crash.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: pyproject.toml#L103

Potential issue: The `fetch_index()` method in `idc_index.py` downloads additional index
files, such as `sm_instance_index.parquet`, from GitHub release assets. If a file is
missing from the release, the method logs an error but does not raise an exception. This
causes the corresponding attribute, like `client.sm_instance_index`, to remain `None`.
Subsequent code in `_service.py` that attempts to use this attribute to download
individual DICOM instances will fail with an error, such as an `AttributeError`. This
silent failure during the download process leads to a runtime crash when a core feature
is used.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 8388379

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2026

@olivermeyer olivermeyer merged commit 31cabfb into main Jan 9, 2026
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Automated pull requests or issues dependabot Pull requests from Dependabot dependencies Pull requests that update a dependency file skip:test:long_running Skip long-running tests (≥5min)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants