Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In_channel: Generate and shrink bytes only on length #375

Merged
merged 3 commits into from
Aug 15, 2023

Conversation

shym
Copy link
Collaborator

@shym shym commented Jul 13, 2023

This PR spawned out of #373.

In In_channel, bytes are used as input buffers so only their lengths is relevant: generate and shrink them by taking only their lengths into account

It currently contains a focusing commit to remove before merging, so I set this PR as a draft.

shym added 2 commits July 13, 2023 15:37
Under some circumstances, `Sys.argv.(0)` is not pointing to the
executable file, use `Sys.executable` instead
(Circumstances: `dune exec ./test.exe` called in a subdirectory of the
project)
In In_channel, bytes are used as input buffers so only their lengths is
relevant: generate and shrink them by taking only their lengths into
account
@shym
Copy link
Collaborator Author

shym commented Jul 13, 2023

I triggered another round with getting a text file instead of the binary.
I should have waited longer, even in ocaml-ci the update of the PR cancelled the jobs on the first commit :-/

@jmid jmid linked an issue Jul 14, 2023 that may be closed by this pull request
Look for a text file to use to test `In_channel` to ensure that
`input_line` and `input_all` will yield smaller results
@jmid jmid marked this pull request as ready for review August 14, 2023 16:31
@jmid
Copy link
Collaborator

jmid commented Aug 14, 2023

I rebased to drop the two focusing commits and force-pushed the result.
I'll let the CI finish and then plan to merge.

@jmid
Copy link
Collaborator

jmid commented Aug 15, 2023

CI summary:

Since there were no In_channel timeouts in sight I'll merge.

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.

Long In_channel shrink runs causing timeout
2 participants