Skip to content

Add non-target recursive instantiation coverage#3310

Merged
omry merged 1 commit into
mainfrom
agent/non-target-recursive-instantiation-coverage
Jul 24, 2026
Merged

Add non-target recursive instantiation coverage#3310
omry merged 1 commit into
mainfrom
agent/non-target-recursive-instantiation-coverage

Conversation

@omry

@omry omry commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add an explicit regression test for _recursive_: false on a non-target config node.
  • Add the corresponding feature news fragment.

Context

The behavior requested by #2577 is already present on main after #3302 rewrote instantiation. This PR adds direct coverage for the motivating target → non-target → target shape and records the feature for the 1.4 release.

Test plan

  • .venv/bin/pytest tests/instantiate/test_instantiate.py -k non_target_node_obeys_recursive_false
  • PATH=/home/omry/dev/hydra/.venv/bin:$PATH .venv/bin/pytest
  • .venv/bin/nox -s lint

Add a regression test proving that `_recursive_: false` on a non-target config node prevents nested target instantiation. Add the corresponding feature news fragment.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 24, 2026
@omry
omry marked this pull request as ready for review July 24, 2026 19:42
Copilot AI review requested due to automatic review settings July 24, 2026 19:42

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@omry

omry commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex?

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 65ac4db588

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@omry
omry merged commit 6728894 into main Jul 24, 2026
28 of 29 checks passed
@omry
omry deleted the agent/non-target-recursive-instantiation-coverage branch July 24, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants