Skip to content

Remove flatdict dependency - #6547

Merged
kellyguo11 merged 1 commit into
isaac-sim:developfrom
kellyguo11:kellyg/remove-flatdict-dependency
Jul 17, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:developfrom
kellyguo11:kellyg/remove-flatdict-dependency

Conversation

@kellyguo11

Copy link
Copy Markdown
Contributor

Description

Remove the unused flatdict dependency from the root test extra and the two CI bootstrap commands that install test tooling. Also remove flatdict from the Sphinx mocked-import list.

The repository no longer imports or otherwise uses flatdict, so retaining it adds unnecessary installation and dependency-resolution work.

Dependencies required by this change: none. This change removes flatdict.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots

Not applicable.

Validation

  • ./isaaclab.sh -p -m pytest source/isaaclab/test/cli/test_uv_run_pyproject.py (6 passed)
  • bash -n .github/actions/multi-gpu/multi_gpu_shard_runner.sh
  • Parsed pyproject.toml and asserted the test extra contains no flatdict requirement
  • Searched the repository for remaining live flatdict references; only the historical changelog entry remains
  • ./isaaclab.sh -f (passed before commit and again before push)

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (no new test was needed for this metadata-only removal; existing metadata tests pass)
  • I have added a changelog fragment for every touched package (not applicable; no package under source/ was changed)
  • My name already exists in CONTRIBUTORS.md

Drop the unused flatdict package from local test metadata, CI bootstrap commands, and the documentation mock list.
@github-actions github-actions Bot added documentation Improvements or additions to documentation infrastructure labels Jul 15, 2026
@kellyguo11
kellyguo11 marked this pull request as ready for review July 15, 2026 23:17
@greptile-apps

greptile-apps Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes the unused flatdict package from all three locations where it was declared: the test optional-dependency group in pyproject.toml, the pip install bootstrap step shared by the run-tests and multi-GPU CI actions, and the Sphinx autodoc_mock_imports list. No source code imports or uses flatdict; a grep of the repository confirms the only remaining reference is a historical CHANGELOG.rst entry.

  • pyproject.toml: drops flatdict>=4.1.0 from [project.optional-dependencies] test, eliminating it from environment installs that use pip install .[test].
  • CI actions (.github/actions/run-tests/action.yml and multi_gpu_shard_runner.sh): removes flatdict from the explicit pip install bootstrap, keeping both scripts in sync with pyproject.toml.
  • docs/conf.py: removes flatdict from autodoc_mock_imports, which previously suppressed the missing-import warning only because the package was expected to be installed.

Confidence Score: 5/5

Safe to merge — this is a pure metadata removal with no changes to source code or runtime behavior.

All four changes are mechanical removals of a single package name from declaration sites (pyproject.toml, two CI bootstrap pip install lines, and the Sphinx mock list). A repository-wide search confirms no remaining live import of flatdict outside a historical changelog entry, so nothing breaks at install time, test time, or doc-build time.

No files require special attention.

Important Files Changed

Filename Overview
pyproject.toml Removes flatdict>=4.1.0 from the [project.optional-dependencies] test extra; no other changes.
.github/actions/run-tests/action.yml Removes flatdict from the pip install bootstrap command in the CI run-tests action.
.github/actions/multi-gpu/multi_gpu_shard_runner.sh Removes flatdict from the pip install command in the multi-GPU shard runner bootstrap.
docs/conf.py Removes flatdict from Sphinx's autodoc_mock_imports list; no functional doc-build impact.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["CI: run-tests / multi-gpu-shard"] --> B["pip install pytest pytest-mock junitparser flaky coverage>=7.6.1"]
    B --> C["Run test suite"]
    C --> D["Pass / Fail"]

    E["pyproject.toml\n[test] extra"] --> F["pytest, pytest-mock,\njunitparser, flaky, coverage"]
    F --> G["pip install .[test]"]
    G --> C

    H["docs/conf.py\nautodoc_mock_imports"] --> I["Sphinx autodoc\n(no flatdict mock needed)"]

    style B fill:#d4edda,stroke:#28a745
    style F fill:#d4edda,stroke:#28a745
    style I fill:#d4edda,stroke:#28a745
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A["CI: run-tests / multi-gpu-shard"] --> B["pip install pytest pytest-mock junitparser flaky coverage>=7.6.1"]
    B --> C["Run test suite"]
    C --> D["Pass / Fail"]

    E["pyproject.toml\n[test] extra"] --> F["pytest, pytest-mock,\njunitparser, flaky, coverage"]
    F --> G["pip install .[test]"]
    G --> C

    H["docs/conf.py\nautodoc_mock_imports"] --> I["Sphinx autodoc\n(no flatdict mock needed)"]

    style B fill:#d4edda,stroke:#28a745
    style F fill:#d4edda,stroke:#28a745
    style I fill:#d4edda,stroke:#28a745
Loading

Reviews (1): Last reviewed commit: "Remove flatdict test dependency" | Re-trigger Greptile

@kellyguo11
kellyguo11 merged commit 7257bc9 into isaac-sim:develop Jul 17, 2026
41 of 42 checks passed
@kellyguo11 kellyguo11 mentioned this pull request Jul 17, 2026
7 tasks done
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# Description

Remove the unused `flatdict` dependency from the root test extra and the
two CI bootstrap commands that install test tooling. Also remove
`flatdict` from the Sphinx mocked-import list.

The repository no longer imports or otherwise uses `flatdict`, so
retaining it adds unnecessary installation and dependency-resolution
work.

Dependencies required by this change: none. This change removes
`flatdict`.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Screenshots

Not applicable.

## Validation

- `./isaaclab.sh -p -m pytest
source/isaaclab/test/cli/test_uv_run_pyproject.py` (6 passed)
- `bash -n .github/actions/multi-gpu/multi_gpu_shard_runner.sh`
- Parsed `pyproject.toml` and asserted the test extra contains no
`flatdict` requirement
- Searched the repository for remaining live `flatdict` references; only
the historical changelog entry remains
- `./isaaclab.sh -f` (passed before commit and again before push)

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with `./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works (no new test was needed for this metadata-only removal;
existing metadata tests pass)
- [x] I have added a changelog fragment for every touched package (not
applicable; no package under `source/` was changed)
- [x] My name already exists in `CONTRIBUTORS.md`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant