Skip to content

Use resource_size instead of -j - #54771

Closed
JSGette wants to merge 1 commit into
mainfrom
jsgette/clean_up_dash_j
Closed

Use resource_size instead of -j#54771
JSGette wants to merge 1 commit into
mainfrom
jsgette/clean_up_dash_j

Conversation

@JSGette

@JSGette JSGette commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Usage of resource_size prevents action keys from being polluted by the number of threads assigned to build processes driven by rules_foreign_cc.

@JSGette JSGette self-assigned this Aug 12, 2026
@JSGette
JSGette requested a review from a team as a code owner August 12, 2026 10:39
@JSGette JSGette added changelog/no-changelog No changelog entry needed qa/no-code-change No code change in Agent code requiring validation labels Aug 12, 2026
@dd-octo-sts dd-octo-sts Bot added internal Identify a non-fork PR team/agent-build labels Aug 12, 2026
@github-actions github-actions Bot added the medium review PR review might take time label Aug 12, 2026

@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: 13aed1c609

ℹ️ 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 deps/cpython.BUILD.bazel
""".format(
version = PYTHON_MAJOR_MINOR,
),
resource_size = "enormous",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep CPython's install phase serial

On Linux and macOS, resource_size = "enormous" is translated by bazel/patches/rules_foreign_cc/0003-pass-j-flag-directly-on-make-command-line.patch into a -j<N> argument for every make invocation, so the remaining targets = ["install"] now executes a parallel make install. The previous configuration deliberately used separate "-j 16" and "install" targets so compilation was parallel but installation stayed serial due to CPython's known concurrent-install race; this reintroduces flaky or incomplete embedded-Python builds. Preserve a separate serial install invocation while deriving only the compilation parallelism from the resource allocation.

Useful? React with 👍 / 👎.

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.

looks like a valid concern, no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will drop the whole PR then, krb is small anyhow

@JSGette JSGette closed this Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog No changelog entry needed internal Identify a non-fork PR medium review PR review might take time qa/no-code-change No code change in Agent code requiring validation team/agent-build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants