Skip to content

characterization tests and atime overhead guard for [ modularization - #7931

Open
ben-schwen wants to merge 1 commit into
masterfrom
brk/a1_tests
Open

ben-schwen wants to merge 1 commit into
masterfrom
brk/a1_tests

Conversation

@ben-schwen

Copy link
Copy Markdown
Member

Towards #852

This PR is the starting point of modularizing [.

I will build it as stack on top of each other. I moved the tests to a new script since [ is such a central piece that I thought it deserves its own place. Moreover, it gives us the chance to set them as optional.

…852)

Pins down behaviour that the upcoming refactor of [.data.table could silently change:
resolution of i/j/by/on/.SDcols/env= in the calling frame (incl. nested closures),
.N shadowing in the caller, early returns, missing() semantics (including arguments substituted to the empty symbol via env=),
forms of i, forms of j with with=FALSE and also forms of by.
joins combined with by=.EACHI/:=/roll, and := forms.
Also covers some previously uncovered lines (mult='error' without duplicates, datatable.join.many=FALSE, := on key column).

Adds an atime test measuring the per-call overhead of [.
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.09%. Comparing base (7b7f63b) to head (a2e6a4a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7931   +/-   ##
=======================================
  Coverage   99.08%   99.09%           
=======================================
  Files          88       88           
  Lines       17420    17420           
=======================================
+ Hits        17261    17262    +1     
+ Misses        159      158    -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@ben-schwen
ben-schwen added this pull request to stack #7933 October 21, 2026 10:29
@MichaelChirico

Copy link
Copy Markdown
Member

Aside -- are you using gh to manage the stack? Curious how the experience is. I still swear by jj but it doesn't play that nicely with managing the stack on GitHub -- it's trivial to manage the stack locally with jj, but conveying that to GitHub, less so.

This branch has not been deployed

No deployments
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