Skip to content

chore: ignore b2's output directories - #108

Merged
jll63 merged 1 commit into
boostorg:developfrom
jll63:chore/gitignore-b2-bin
Sep 13, 2026
Merged

jll63 merged 1 commit into
boostorg:developfrom
jll63:chore/gitignore-b2-bin

Conversation

@jll63

@jll63 jll63 commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

(Written by Claude Code, on behalf of @jll63.)

.gitignore covers build/, where CMake puts its tree, but not bin/, where b2 puts its
own. b2 makes one per project that has targets, so after a b2 test run the working tree
carries untracked object trees in five places:

bin/
test/bin/
test/dynamic_loading/bin/
test/implicit_shared_libraries/custom_registry/bin/
test/implicit_shared_libraries/default_registry/bin/

Untracked but addable is the awkward part: git add test or git add -A sweeps them in,
and one such commit runs to tens of thousands of lines of .o files. Nothing warns, because
nothing is wrong until it is committed. I managed exactly that twice while preparing #107 —
400 files and ~63,000 insertions each time — caught both from the diffstat and rebuilt the
commits, but the trap is worth closing rather than remembering.

doc/node_modules, the equivalent for the Antora build, is already covered by
doc/.gitignore.

Verification

  • No tracked path in the repository contains a bin/ component (git ls-files | grep -E '(^|/)bin/' is empty), so the pattern hides nothing that is meant to be versioned.
  • Checked both ways in a worktree that had just run b2 test: with the pattern,
    git status --porcelain reports 0 untracked entries; without it, 5.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JQa4fuiwcfsheZYTCyfPPr

`.gitignore` covered `build/`, which is where CMake puts its tree, but not
`bin/`, which is where b2 puts its own. b2 makes one per project that has
targets, so after a `b2 test` run the working tree carries untracked object
trees at the root and under test/, test/dynamic_loading/ and each
test/implicit_shared_libraries/ variant.

Untracked but addable is the awkward part: `git add test` or `git add -A`
sweeps them in, and a single such commit runs to tens of thousands of lines of
`.o` files. Nothing warns, because nothing is wrong until it is committed.

`doc/node_modules`, the equivalent for the Antora build, is already covered by
doc/.gitignore.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQa4fuiwcfsheZYTCyfPPr
@cppalliance-bot

Copy link
Copy Markdown

An automated preview of the documentation is available at https://108.openmethod.prtest3.cppalliance.org/libs/openmethod/doc/html/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-09-12 16:17:06 UTC

@codecov

codecov Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.52%. Comparing base (5ec487c) to head (89e753e).
⚠️ Report is 10 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #108      +/-   ##
===========================================
+ Coverage    93.46%   93.52%   +0.05%     
===========================================
  Files           22       22              
  Lines         1653     1683      +30     
  Branches       500      508       +8     
===========================================
+ Hits          1545     1574      +29     
  Misses          64       64              
- Partials        44       45       +1     

see 3 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba56242...89e753e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jll63
jll63 merged commit eb2d5d8 into boostorg:develop Sep 13, 2026
56 checks passed
@jll63
jll63 deleted the chore/gitignore-b2-bin branch September 13, 2026 16:35
jll63 added a commit to jll63/openmethod that referenced this pull request Sep 17, 2026
boostorg#103 merged 415 files of b2 output - 613 MiB expanded, 94 MiB in the
pack, on a repository of about 3 MB - days after boostorg#108 added the `bin/`
ignore rule intended to prevent it. The branch was cut before that rule
landed, and an ignore rule does not apply to a path that is already
tracked, so the merge carried them in.

Nothing in the build or the review catches this, and boostorg#117 could only
untrack them: the superproject pins this library by SHA and its bot
bumps the pin within minutes of every merge, so rewriting `develop`
orphans commits `boostorg/boost` already points at - and would not even
remove the blobs, which stay reachable through `refs/pull/<n>/head`.

Write the rule down where the workflow is: stage named paths, never
`git add <dir>`, and ask before committing a build artefact or any file
over 1MB.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
jll63 added a commit that referenced this pull request Sep 18, 2026
#103 brought 415 files of b2 output into the tree - 106 `.o`, 8 `.so`,
the test executables, their `.run`/`.output`/`.test` stamps, and the
`bin/config.log` and `bin/project-cache.jam` at the root. 613 MiB
expanded, 94 MiB in the pack.

`bin/` has been ignored since #108, which landed four days before #103
was merged and said what would happen without it: "leaving the object
trees permanently untracked-but-addable - `git add test` would commit
tens of thousands of lines of objects". feature/hash-policies was cut
before that commit, so the rule was not in its .gitignore, and a rule
added later does not apply to a path that is already tracked. The merge
carried the files in.

Two of them are written on every b2 invocation, so `git status` came up
dirty after any local build.

`git rm -r --cached` only: the files stay on disk, the ignore rule now
takes effect, and nothing is rewritten. The blobs remain reachable
through `refs/pull/103/head`, which cannot be deleted, so a rewrite of
develop would break the superproject's pinned submodule SHAs without
actually removing them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
jll63 added a commit to jll63/openmethod that referenced this pull request Sep 19, 2026
boostorg#103 merged 415 files of b2 output - 613 MiB expanded, 94 MiB in the
pack, on a repository of about 3 MB - days after boostorg#108 added the `bin/`
ignore rule intended to prevent it. The branch was cut before that rule
landed, and an ignore rule does not apply to a path that is already
tracked, so the merge carried them in.

Nothing in the build or the review catches this, and boostorg#117 could only
untrack them: the superproject pins this library by SHA and its bot
bumps the pin within minutes of every merge, so rewriting `develop`
orphans commits `boostorg/boost` already points at - and would not even
remove the blobs, which stay reachable through `refs/pull/<n>/head`.

Write the rule down where the workflow is: stage named paths, never
`git add <dir>`, and ask before committing a build artefact or any file
over 1MB.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
jll63 added a commit to jll63/openmethod that referenced this pull request Sep 19, 2026
boostorg#103 merged 415 files of b2 output - 613 MiB expanded, 94 MiB in the
pack, on a repository of about 3 MB - days after boostorg#108 added the `bin/`
ignore rule intended to prevent it. The branch was cut before that rule
landed, and an ignore rule does not apply to a path that is already
tracked, so the merge carried them in.

Nothing in the build or the review catches this, and boostorg#117 could only
untrack them: the superproject pins this library by SHA and its bot
bumps the pin within minutes of every merge, so rewriting `develop`
orphans commits `boostorg/boost` already points at - and would not even
remove the blobs, which stay reachable through `refs/pull/<n>/head`.

Write the rule down where the workflow is: stage named paths, never
`git add <dir>`, and ask before committing a build artefact or any file
over 1MB.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
jll63 added a commit that referenced this pull request Sep 19, 2026
…e notes (#118)

* doc: correct two stale notes in CLAUDE.md's registry-affinity section

Both were falsified by changes that did not update the prose around them.

#113 collapsed the "Two things deliberately do not participate" bullets
into one sentence, because `use_classes` had just started participating -
but then named two things under "One thing": the interop headers and the
C++26 `register_classes`. Restore the bullet form for the two that are
left.

The same sentence says the `any` and `type_erasure` interop headers "are
untouched". #116 touched all three of them, and had to: #113 gave
`virtual_` a registry parameter, and their `validate_method_parameter`
specializations still spelled `virtual_<T>`, which after the change
matches only the defaulted argument. What survives is the affinity claim,
which is the point of the paragraph - a `virtual_any` contributes none.
Say that, and record why a specialization there cannot go back to the
bare spelling.

The PCH paragraph names `test_capture_errors.hpp` as the only header that
carries the override on a test's behalf. `test/CMakeLists.txt` has
scanned for `test_checked_registry.hpp` as well since #93; the sentence
three lines above, "do not add a fourth marker", already counts three.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* doc: state the rule against committing build output

#103 merged 415 files of b2 output - 613 MiB expanded, 94 MiB in the
pack, on a repository of about 3 MB - days after #108 added the `bin/`
ignore rule intended to prevent it. The branch was cut before that rule
landed, and an ignore rule does not apply to a path that is already
tracked, so the merge carried them in.

Nothing in the build or the review catches this, and #117 could only
untrack them: the superproject pins this library by SHA and its bot
bumps the pin within minutes of every merge, so rewriting `develop`
orphans commits `boostorg/boost` already points at - and would not even
remove the blobs, which stay reachable through `refs/pull/<n>/head`.

Write the rule down where the workflow is: stage named paths, never
`git add <dir>`, and ask before committing a build artefact or any file
over 1MB.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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.

2 participants