tapis-client test: body cut-off bound flakes under load

Open Beginner friendly
#2,431 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
testing

Research direction

Start with backend/test/tapis-client.test.ts and read the test "a body that never ends is cut off at the bound"; compare it with the streaming test fixed in #2406. Check that the test verifies cancellation and that the stream did not run to completion instead of relying on an exact byte count. Done when the assertion is stable under concurrent test load.

Written by the indexing model from the issue text.

Description

backend/test/tapis-client.test.ts > "a body that never ends is cut off at the bound" failed once locally while another test loop ran alongside it: it read 8,912,896 bytes against a limit of 8,388,608, then passed on the next three runs. Found while fixing #2402 (#2430). Like the streaming test fixed in #2406, it likely asserts a byte count that depends on how many chunks arrive before the cancel lands; assert that the stream was cancelled and never ran to its end instead.

Dominant language
TypeScript
Stars
0
Forks
1
Avg merge
6h 26m
Merged PRs (30d)
249

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nemarOrg/nemar-cli

All issues in nemarOrg/nemar-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.