Repository navigation
refactor(pyamber): drop dead AtomicInteger value setter - #9189
Merged
aglinxinyuan merged 2 commits intoOct 27, 2026
Merged
Conversation
Contributor
Automated Reviewer SuggestionsBased on the
|
kunwp1
enabled auto-merge
October 27, 2026 21:43
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9189 +/- ##
============================================
- Coverage 91.98% 91.96% -0.02%
+ Complexity 5084 5083 -1
============================================
Files 1281 1281
Lines 55812 55712 -100
Branches 7076 7067 -9
============================================
- Hits 51337 51238 -99
+ Misses 2734 2731 -3
- Partials 1741 1743 +2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🔴 | bs=10 sw=10 sl=64 | 559 | 0.341 | 17,758/21,994/21,994 us | 🔴 +10.7% / 🔴 +61.6% |
| 🔴 | bs=100 sw=10 sl=64 | 1,195 | 0.73 | 83,079/97,495/97,495 us | 🔴 +11.6% / 🟢 -12.3% |
| ⚪ | bs=1000 sw=10 sl=64 | 1,404 | 0.857 | 707,731/771,993/771,993 us | ⚪ within ±5% / 🟢 -15.9% |
Baseline details
Latest main 6659eec from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 559 tuples/sec | 620 tuples/sec | 941.58 tuples/sec | -9.8% | -40.6% |
| bs=10 sw=10 sl=64 | MB/s | 0.341 MB/s | 0.378 MB/s | 0.575 MB/s | -9.8% | -40.7% |
| bs=10 sw=10 sl=64 | p50 | 17,758 us | 16,041 us | 10,991 us | +10.7% | +61.6% |
| bs=10 sw=10 sl=64 | p95 | 21,994 us | 22,842 us | 13,776 us | -3.7% | +59.7% |
| bs=10 sw=10 sl=64 | p99 | 21,994 us | 22,842 us | 16,872 us | -3.7% | +30.4% |
| bs=100 sw=10 sl=64 | throughput | 1,195 tuples/sec | 1,313 tuples/sec | 1,264 tuples/sec | -9.0% | -5.5% |
| bs=100 sw=10 sl=64 | MB/s | 0.73 MB/s | 0.801 MB/s | 0.772 MB/s | -8.9% | -5.4% |
| bs=100 sw=10 sl=64 | p50 | 83,079 us | 74,449 us | 86,073 us | +11.6% | -3.5% |
| bs=100 sw=10 sl=64 | p95 | 97,495 us | 99,073 us | 93,135 us | -1.6% | +4.7% |
| bs=100 sw=10 sl=64 | p99 | 97,495 us | 99,073 us | 111,124 us | -1.6% | -12.3% |
| bs=1000 sw=10 sl=64 | throughput | 1,404 tuples/sec | 1,423 tuples/sec | 1,304 tuples/sec | -1.3% | +7.6% |
| bs=1000 sw=10 sl=64 | MB/s | 0.857 MB/s | 0.869 MB/s | 0.796 MB/s | -1.4% | +7.7% |
| bs=1000 sw=10 sl=64 | p50 | 707,731 us | 705,462 us | 841,986 us | +0.3% | -15.9% |
| bs=1000 sw=10 sl=64 | p95 | 771,993 us | 736,705 us | 881,107 us | +4.8% | -12.4% |
| bs=1000 sw=10 sl=64 | p99 | 771,993 us | 736,705 us | 918,208 us | +4.8% | -15.9% |
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,357.95,200,128000,559,0.341,17758.24,21994.45,21994.45
1,100,10,64,20,1673.23,2000,1280000,1195,0.730,83078.88,97495.42,97495.42
2,1000,10,64,20,14247.39,20000,12800000,1404,0.857,707731.23,771993.16,771993.16
aglinxinyuan
disabled auto-merge
October 27, 2026 22:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Removes the unused
@value.setteronAtomicIntegerinamber/src/main/python/core/util/atomic.py:48-52. Callers across the engine mutate the atomic value strictly via atomic methods (inc,dec,get_and_inc,get_and_dec,get_and_set) and read via the property getter (.value), leaving the setter unused. The corresponding unit test intest_atomic.pyis updated to verifyvalueis a read-only property (AttributeErroron assignment).+3/-11 lines. Pure deletion of dead setter and regression test update.
Any related issues, documentation, discussions?
Closes #9188.
How was this PR tested?
python -m py_compile amber/src/main/python/core/util/atomic.pypython -m pytest amber/src/test/python/core/util/test_atomic.py(11 passed)git grep -nw "AtomicInteger" | grep -v testshows only.inc(),.dec(),.get_and_inc(),.get_and_dec(),.get_and_set(),.value(getter).Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity (Claude Opus 5.5)