Repository navigation
test(amber): remove the duplicate local-file document spec - #9735
Open
aglinxinyuan wants to merge 1 commit into
Open
aglinxinyuan wants to merge 1 commit into
aglinxinyuan wants to merge 1 commit into
Conversation
Workflow Core's ReadonlyLocalFileDocumentSpec, added by apache#6095, makes every assertion this Amber suite makes: the URI, the backing file, reading through an input stream, and the five unsupported accessors, with exact messages instead of substrings. DocumentFactorySpec covers the factory's file-scheme dispatch that this suite went through.
aglinxinyuan
requested review from
kunwp1
and
a balanced review from Copilot
November 27, 2026 22:34
Contributor
Automated Reviewer SuggestionsBased on the
|
Contributor
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🔴 | bs=10 sw=10 sl=64 | 681 | 0.416 | 13,997/19,904/19,904 us | 🔴 +10.2% / 🔴 +46.7% |
| ⚪ | bs=100 sw=10 sl=64 | 1,393 | 0.85 | 71,995/80,632/80,632 us | ⚪ within ±5% / 🟢 -22.5% |
| ⚪ | bs=1000 sw=10 sl=64 | 1,510 | 0.922 | 667,167/705,973/705,973 us | ⚪ within ±5% / 🟢 -22.4% |
Baseline details
Latest main e8c37e6 from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 681 tuples/sec | 706 tuples/sec | 951.49 tuples/sec | -3.5% | -28.4% |
| bs=10 sw=10 sl=64 | MB/s | 0.416 MB/s | 0.431 MB/s | 0.581 MB/s | -3.5% | -28.4% |
| bs=10 sw=10 sl=64 | p50 | 13,997 us | 12,700 us | 10,659 us | +10.2% | +31.3% |
| bs=10 sw=10 sl=64 | p95 | 19,904 us | 20,397 us | 13,570 us | -2.4% | +46.7% |
| bs=10 sw=10 sl=64 | p99 | 19,904 us | 20,397 us | 16,744 us | -2.4% | +18.9% |
| bs=100 sw=10 sl=64 | throughput | 1,393 tuples/sec | 1,391 tuples/sec | 1,256 tuples/sec | +0.1% | +10.9% |
| bs=100 sw=10 sl=64 | MB/s | 0.85 MB/s | 0.849 MB/s | 0.767 MB/s | +0.1% | +10.9% |
| bs=100 sw=10 sl=64 | p50 | 71,995 us | 71,650 us | 84,170 us | +0.5% | -14.5% |
| bs=100 sw=10 sl=64 | p95 | 80,632 us | 78,775 us | 91,401 us | +2.4% | -11.8% |
| bs=100 sw=10 sl=64 | p99 | 80,632 us | 78,775 us | 104,021 us | +2.4% | -22.5% |
| bs=1000 sw=10 sl=64 | throughput | 1,510 tuples/sec | 1,498 tuples/sec | 1,299 tuples/sec | +0.8% | +16.2% |
| bs=1000 sw=10 sl=64 | MB/s | 0.922 MB/s | 0.915 MB/s | 0.793 MB/s | +0.8% | +16.3% |
| bs=1000 sw=10 sl=64 | p50 | 667,167 us | 669,657 us | 819,011 us | -0.4% | -18.5% |
| bs=1000 sw=10 sl=64 | p95 | 705,973 us | 706,401 us | 859,723 us | -0.1% | -17.9% |
| bs=1000 sw=10 sl=64 | p99 | 705,973 us | 706,401 us | 909,957 us | -0.1% | -22.4% |
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,293.52,200,128000,681,0.416,13997.40,19904.17,19904.17
1,100,10,64,20,1436.04,2000,1280000,1393,0.850,71994.90,80631.81,80631.81
2,1000,10,64,20,13241.54,20000,12800000,1510,0.922,667167.10,705973.27,705973.27
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9735 +/- ##
=========================================
Coverage 91.77% 91.77%
Complexity 5136 5136
=========================================
Files 1308 1308
Lines 58013 58013
Branches 7552 7552
=========================================
Hits 53240 53240
Misses 2887 2887
Partials 1886 1886
*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:
|
This branch has not been deployed
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?
Remove Amber's
ReadonlyLocalFileDocumentSpec(+0/−111 lines). Every check it makes is already made in Workflow Core, so no coverage is lost, and there is no behaviour change:getURI,asFileand reading throughasInputStream: Core'sReadonlyLocalFileDocumentSpecchecks all three.getItem,get,getRange,getAfterandgetCountthrowingNotImplementedError: Core's suite matches their exact messages, where this suite matches substrings.DocumentFactory.openReadonlyDocument:DocumentFactorySpecchecks that thefilescheme returns aReadonlyLocalFileDocumentwith the file's URI.As of 2026-11-27, it has duplicated the Core suite for almost five months.
Any related issues, documentation, discussions?
Closes #9734.
How was this PR tested?
Ran on this branch and on
mainate8c37e625a(Windows 11, JDK 17):asInputStream, anotherasFilepath and anothergetCountmessage inReadonlyLocalFileDocument, and another URI from the factory'sfilebranch. Onmain, the same breaks fail the four matching cases of this suite, so it catches nothing the Core suites miss.To re-check, this returns no hits on this branch:
git grep -n "ReadonlyLocalFileDocumentSpec" -- amberWas this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)