From be03752309ec91f1e05891e53b9cb96872b7afec Mon Sep 17 00:00:00 2001 From: thekevinbot <248217931+thekevinbot@users.noreply.github.com> Date: Mon, 2 Nov 2026 21:02:55 -0500 Subject: [PATCH 1/2] test: hold ./docs/ to the fastest native --- .../python/tests/e2e/glob_speed_symlink_test.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/python/tests/e2e/glob_speed_symlink_test.py b/packages/python/tests/e2e/glob_speed_symlink_test.py index 46dc9be0c..545353bc8 100644 --- a/packages/python/tests/e2e/glob_speed_symlink_test.py +++ b/packages/python/tests/e2e/glob_speed_symlink_test.py @@ -7,7 +7,7 @@ Native for the first is bash globstar alone, the reference for which links it takes: `find`, `fd` and `rg` either skip the link or descend through it. Natives for the second are `find` bounded at one level, `fd`, `rg --files` -and a bash glob. No mocks: real console +and a bash glob, and its bar is the fastest of them. No mocks: real console script, real process, real filesystem. """ @@ -18,6 +18,7 @@ import pytest from .speed_of_light import ( + FASTEST, Native, agreed_rows, assert_speed_of_light, @@ -50,8 +51,8 @@ ), ] CASES = [ - ("./**/*.md (symlinks)", "./**/*.md", LINKED), - ("./docs/", "./docs/", DOCS), + ("./**/*.md (symlinks)", "./**/*.md", LINKED, ""), + ("./docs/", "./docs/", DOCS, FASTEST), ] FANOUT = 8 @@ -113,8 +114,8 @@ def tree(tmp_path_factory): finally: shutil.rmtree(root.parent, ignore_errors=True) - @pytest.mark.parametrize(("name", "glob", "specs"), CASES) - def it_matches_native_files_within_the_bar(tree, name, glob, specs): + @pytest.mark.parametrize(("name", "glob", "specs", "bar"), CASES) + def it_matches_native_files_within_the_bar(tree, name, glob, specs, bar): root, n, startup = tree def dirsql(timeout): @@ -125,7 +126,7 @@ def dirsql(timeout): ) return sorted(row for (row,) in dirsql_rows(proc, ("path",))), seconds - result = paired(shell_natives(root, specs), dirsql, startup) + result = paired(shell_natives(root, specs, bar=bar), dirsql, startup) expected, actual = agreed_rows(result), result.dirsql_rows assert len(expected) == matched(n, glob) From 8a58b05fe13dcf5a6507412989259be7fa24fa59 Mon Sep 17 00:00:00 2001 From: thekevinbot <248217931+thekevinbot@users.noreply.github.com> Date: Mon, 2 Nov 2026 21:19:20 -0500 Subject: [PATCH 2/2] e2e attestation for bot/1482-docs-fastest-bar-1102 --- .../e2e-attestations/bot-1482-docs-fastest-bar-1102.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 packages/python/e2e-attestations/bot-1482-docs-fastest-bar-1102.json diff --git a/packages/python/e2e-attestations/bot-1482-docs-fastest-bar-1102.json b/packages/python/e2e-attestations/bot-1482-docs-fastest-bar-1102.json new file mode 100644 index 000000000..f81024560 --- /dev/null +++ b/packages/python/e2e-attestations/bot-1482-docs-fastest-bar-1102.json @@ -0,0 +1,7 @@ +{ + "command": "uv run python -m pytest tests/e2e/glob_speed_symlink_test.py -x -q -s", + "ran_at": 1793672360, + "exit_code": 0, + "commit": "be03752309ec91f1e05891e53b9cb96872b7afec", + "branch": "bot/1482-docs-fastest-bar-1102" +}