Conversation
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Oct 25, 2025
261547c to
418c6f4
Compare
Member
Author
418c6f4 to
73c4a01
Compare
mjambon
added a commit
to mjambon/opam-repository
that referenced
this pull request
Jan 17, 2026
CHANGES: * Add support for checked output files ([semgrep/testo#134](semgrep/testo#134)). * Add an option `inline_logs` to create a test for which logs are always or never shown inline ([semgrep/testo#142](semgrep/testo#142)). * Add a command-line option `--max-inline-log-bytes` to limit the size of unchecked test output (logs) shown inline when reporting the status of a test. The default limit is 1MB ([semgrep/testo#144](semgrep/testo#144)). * Improve internal error handling ([semgrep/testo#153](semgrep/testo#153), [semgrep/testo#154](semgrep/testo#154)). * Add support for boolean selection queries on test tags, extending `-t` ([semgrep/testo#5](semgrep/testo#5)). The query language keywords `and`, `or`, `not`, `all`, and `none` can no longer be used as tag names. * New experimental submodule [Testo.Lazy_with_output] module for lazy computations that cache standard output and error output in addition to the computation's result or exception. This allows for sharing context between tests running in the same worker process. It saves unnecessary computations while providing the same logs for each test sharing this context ([semgrep/testo#156](semgrep/testo#156)). * Report and highlight differences in Unix vs. Windows line endings as well as missing trailing newlines ([semgrep/testo#163](semgrep/testo#163). * Testo's snapshot files are now open in text mode for Windows-Unix compatibility. When reading files on Windows, CRLFs are converted to LFs. When writing, LFs are converted to CRLFs. Git or equivalent must be set up to convert line endings appropriately when moving files across platforms ([semgrep/testo#165](semgrep/testo#165)). * A series of functions for reading and writing files has been deprecated and renamed to hint that we're reading or writing in text mode on Windows. These functions are `write_file`, `read_file`, `map_file`, `copy_file`, and `with_temp_file`. The new names are `write_text_file`, `read_text_file`, etc. ([semgrep/testo#165](semgrep/testo#165)). * Testo's own test suite now passes successfully on Windows. * Add a `-C`/`--chdir` option to set the current working directory ([semgrep/testo#167](semgrep/testo#167)). * Add support for a `Testo.check` function and testables, replicating the similar functionality found in Alcotest. This makes it practical to write tests that don't depend on the Alcotest library ([semgrep/testo#169](semgrep/testo#169)). * Show current working directory (cwd) when reporting missing files if one of the paths is relative ([semgrep/testo#170](semgrep/testo#170). * Rename the `broken` option of `Testo.create` and `Testo.update` to `flaky` ([semgrep/testo#172](semgrep/testo#172)).
mjambon
added a commit
to mjambon/opam-repository
that referenced
this pull request
Jan 17, 2026
CHANGES: * Add support for checked output files ([semgrep/testo#134](semgrep/testo#134)). * Add an option `inline_logs` to create a test for which logs are always or never shown inline ([semgrep/testo#142](semgrep/testo#142)). * Add a command-line option `--max-inline-log-bytes` to limit the size of unchecked test output (logs) shown inline when reporting the status of a test. The default limit is 1MB ([semgrep/testo#144](semgrep/testo#144)). * Improve internal error handling ([semgrep/testo#153](semgrep/testo#153), [semgrep/testo#154](semgrep/testo#154)). * Add support for boolean selection queries on test tags, extending `-t` ([semgrep/testo#5](semgrep/testo#5)). The query language keywords `and`, `or`, `not`, `all`, and `none` can no longer be used as tag names. * New experimental submodule [Testo.Lazy_with_output] module for lazy computations that cache standard output and error output in addition to the computation's result or exception. This allows for sharing context between tests running in the same worker process. It saves unnecessary computations while providing the same logs for each test sharing this context ([semgrep/testo#156](semgrep/testo#156)). * Report and highlight differences in Unix vs. Windows line endings as well as missing trailing newlines ([semgrep/testo#163](semgrep/testo#163)). * Testo's snapshot files are now open in text mode for Windows-Unix compatibility. When reading files on Windows, CRLFs are converted to LFs. When writing, LFs are converted to CRLFs. Git or equivalent must be set up to convert line endings appropriately when moving files across platforms ([semgrep/testo#165](semgrep/testo#165)). * A series of functions for reading and writing files has been deprecated and renamed to hint that we're reading or writing in text mode on Windows. These functions are `write_file`, `read_file`, `map_file`, `copy_file`, and `with_temp_file`. The new names are `write_text_file`, `read_text_file`, etc. ([semgrep/testo#165](semgrep/testo#165)). * Testo's own test suite now passes successfully on Windows. * Add a `-C`/`--chdir` option to set the current working directory ([semgrep/testo#167](semgrep/testo#167)). * Add support for a `Testo.check` function and testables, replicating the similar functionality found in Alcotest. This makes it practical to write tests that don't depend on the Alcotest library ([semgrep/testo#169](semgrep/testo#169)). * Show current working directory (cwd) when reporting missing files if one of the paths is relative ([semgrep/testo#170](semgrep/testo#170)). * Rename the `broken` option of `Testo.create` and `Testo.update` to `flaky` ([semgrep/testo#172](semgrep/testo#172)).
mjambon
added a commit
to mjambon/opam-repository
that referenced
this pull request
Jan 18, 2026
CHANGES: - Add support for checked output files ([\semgrep/testo#134](semgrep/testo#134)). - Add an option `inline_logs` to create a test for which logs are always or never shown inline ([\semgrep/testo#142](semgrep/testo#142)). - Add a command-line option `--max-inline-log-bytes` to limit the size of unchecked test output (logs) shown inline when reporting the status of a test. The default limit is 1MB ([\semgrep/testo#144](semgrep/testo#144)). - Improve internal error handling ([\semgrep/testo#153](semgrep/testo#153), [\semgrep/testo#154](semgrep/testo#154)). - Add support for boolean selection queries on test tags, extending `-t` ([\semgrep/testo#5](semgrep/testo#5)). The query language keywords `and`, `or`, `not`, `all`, and `none` can no longer be used as tag names. - New experimental submodule \[Testo.Lazy_with_output\] module for lazy computations that cache standard output and error output in addition to the computation’s result or exception. This allows for sharing context between tests running in the same worker process. It saves unnecessary computations while providing the same logs for each test sharing this context ([\semgrep/testo#156](semgrep/testo#156)). - Report and highlight differences in Unix vs. Windows line endings as well as missing trailing newlines ([\semgrep/testo#163](semgrep/testo#163)). - Testo’s snapshot files are now open in text mode for Windows-Unix compatibility. When reading files on Windows, CRLFs are converted to LFs. When writing, LFs are converted to CRLFs. Git or equivalent must be set up to convert line endings appropriately when moving files across platforms ([\semgrep/testo#165](semgrep/testo#165)). - A series of functions for reading and writing files has been deprecated and renamed to hint that we’re reading or writing in text mode on Windows. These functions are `write_file`, `read_file`, `map_file`, `copy_file`, and `with_temp_file`. The new names are `write_text_file`, `read_text_file`, etc. ([\semgrep/testo#165](semgrep/testo#165)). - Testo’s own test suite now passes successfully on Windows. - Add a `-C`/`--chdir` option to set the current working directory ([\semgrep/testo#167](semgrep/testo#167)). - Add support for a `Testo.check` function and testables, replicating the similar functionality found in Alcotest. This makes it practical to write tests that don’t depend on the Alcotest library ([\semgrep/testo#169](semgrep/testo#169)). - Show current working directory (cwd) when reporting missing files if one of the paths is relative ([\semgrep/testo#170](semgrep/testo#170)). - Rename the `broken` option of `Testo.create` and `Testo.update` to `flaky` ([\semgrep/testo#172](semgrep/testo#172)).
mjambon
added a commit
to mjambon/opam-repository
that referenced
this pull request
Jan 18, 2026
CHANGES: - Add support for checked output files ([semgrep/testo#134](semgrep/testo#134)). - Add an option `inline_logs` to create a test for which logs are always or never shown inline ([semgrep/testo#142](semgrep/testo#142)). - Add a command-line option `--max-inline-log-bytes` to limit the size of unchecked test output (logs) shown inline when reporting the status of a test. The default limit is 1MB ([semgrep/testo#144](semgrep/testo#144)). - Improve internal error handling ([semgrep/testo#153](semgrep/testo#153), [semgrep/testo#154](semgrep/testo#154)). - Add support for boolean selection queries on test tags, extending `-t` ([semgrep/testo#5](semgrep/testo#5)). The query language keywords `and`, `or`, `not`, `all`, and `none` can no longer be used as tag names. - New experimental submodule \[Testo.Lazy_with_output\] module for lazy computations that cache standard output and error output in addition to the computation’s result or exception. This allows for sharing context between tests running in the same worker process. It saves unnecessary computations while providing the same logs for each test sharing this context ([semgrep/testo#156](semgrep/testo#156)). - Report and highlight differences in Unix vs. Windows line endings as well as missing trailing newlines ([semgrep/testo#163](semgrep/testo#163)). - Testo’s snapshot files are now open in text mode for Windows-Unix compatibility. When reading files on Windows, CRLFs are converted to LFs. When writing, LFs are converted to CRLFs. Git or equivalent must be set up to convert line endings appropriately when moving files across platforms ([semgrep/testo#165](semgrep/testo#165)). - A series of functions for reading and writing files has been deprecated and renamed to hint that we’re reading or writing in text mode on Windows. These functions are `write_file`, `read_file`, `map_file`, `copy_file`, and `with_temp_file`. The new names are `write_text_file`, `read_text_file`, etc. ([semgrep/testo#165](semgrep/testo#165)). - Testo’s own test suite now passes successfully on Windows. - Add a `-C`/`--chdir` option to set the current working directory ([semgrep/testo#167](semgrep/testo#167)). - Add support for a `Testo.check` function and testables, replicating the similar functionality found in Alcotest. This makes it practical to write tests that don’t depend on the Alcotest library ([semgrep/testo#169](semgrep/testo#169)). - Show current working directory (cwd) when reporting missing files if one of the paths is relative ([semgrep/testo#170](semgrep/testo#170)). - Rename the `broken` option of `Testo.create` and `Testo.update` to `flaky` ([semgrep/testo#172](semgrep/testo#172)).
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.

Catch and report exceptions due to internal errors arising when printing test statuses in the scheduler's loop and other operations that aren't supposed to fail. This tries to close the workers cleanly, saving them from a confusing death by broken pipe.
Test plan: add a
if Random.int 5 = 0 then failwith "debugging" |> ignore; at the beginning of theprint_status function to simulate a real error. Then run./test. Change the argument toRandom.int to trigger the error in other contexts.PR checklist:
CHANGES.mdfor any user-facing changeCheck out
CONTRIBUTING.mdfor more details.