Skip to content

fix(py): reset Python flags on data edges#1294

Merged
xangcastle merged 1 commit into
aspect-build:mainfrom
tamird:tamird/reset-data-dep-group-baseline
Jul 14, 2026
Merged

fix(py): reset Python flags on data edges#1294
xangcastle merged 1 commit into
aspect-build:mainfrom
tamird:tamird/reset-data-dep-group-baseline

Conversation

@tamird

@tamird tamird commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Runtime data should not inherit a terminal-selected Python environment.
Otherwise the same data subtree is analyzed once per python_version or
dep_group.

Remember each raw setting inherited before a terminal override and reset
py_library, py_venv, and launcher data edges to that baseline. This
preserves nonempty caller settings and legacy-only rules_python version
configurations instead of hard-coding defaults. Artifacts whose analysis
must match the terminal Python environment belong in deps. Global-only
interpreter feature settings stay inherited without appearing on the
terminal transition surface.

An analysis test counts configured probe outputs across both override
dimensions, real data edges, and nested terminals.

@tamird

tamird commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 38ec62c75a

ℹ️ 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".

Comment thread py/private/py_library.bzl Outdated
@tamird tamird force-pushed the tamird/reset-data-dep-group-baseline branch from 38ec62c to 13b342d Compare July 13, 2026 22:10
@tamird

tamird commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@tamird tamird force-pushed the tamird/reset-data-dep-group-baseline branch from 13b342d to 3edc667 Compare July 13, 2026 22:13
@tamird

tamird commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3edc667d6f

ℹ️ 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".

Comment thread py/private/py_library.bzl Outdated
@tamird tamird force-pushed the tamird/reset-data-dep-group-baseline branch from 3edc667 to 0d9742e Compare July 13, 2026 22:33
@tamird tamird changed the title fix(py): reset dep groups on data edges fix(py): reset Python flags on data edges Jul 13, 2026
@tamird

tamird commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0d9742eef1

ℹ️ 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".

Comment thread py/private/py_library.bzl
@tamird tamird force-pushed the tamird/reset-data-dep-group-baseline branch from 0d9742e to 1a517c0 Compare July 13, 2026 23:04
Data dependencies are runtime artifacts shared by callers in different
Python environments. A terminal incoming transition carries its
python_version and dep_group overrides into data, so each environment
reanalyzes the same runtime subtree.

Remember the exact settings inherited before terminal overrides and
reset data edges to that baseline. Put Python-sensitive artifacts in
deps so they retain the terminal configuration.

Limit terminal transitions to attr-driven overrides; global-only
interpreter feature settings remain inherited without copy-through.

An analysis test counts configured probe outputs across real data edges,
both override dimensions, and nested terminals.
@tamird tamird force-pushed the tamird/reset-data-dep-group-baseline branch from 1a517c0 to 6d3350d Compare July 13, 2026 23:04
@tamird

tamird commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d3350d1d7

ℹ️ 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".

Comment thread py/private/py_library.bzl
@xangcastle xangcastle merged commit 2b58b73 into aspect-build:main Jul 14, 2026
43 of 44 checks passed
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.

3 participants