Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created July 24, 2020 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/310d90635457bd4c8b3bfd69a4f7039c to your computer and use it in GitHub Desktop.
Save Whateverable/310d90635457bd4c8b3bfd69a4f7039c to your computer and use it in GitHub Desktop.
bisectable6
chdir ‘/tmp’; exit 42 if run(:err, <perl6 --profile -e>, 「say "foo"」).err.slurp.contains: ‘null’
Bisecting: 168 revisions left to test after this (roughly 7 steps)
[904db7a1130d12fed1bf2058911eebe164945c14] Revert work on (-) for now
»»»»» Testing 904db7a1130d12fed1bf2058911eebe164945c14
»»»»» Script output:
No such method 'slurp' for invocant of type 'IO::Pipe'
in block <unit> at /tmp/rzgJAIJe4x line 1
foo
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 490ffd1562309327ef4aeb1178b08ba77d9999a1
»»»»» Script output:
foo
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 167a0edf621bbf41d105f8716ebf9d8f2234cc9a
»»»»» Script output:
No such method 'slurp' for invocant of type 'IO::Pipe'
in block <unit> at /tmp/rzgJAIJe4x line 1
foo
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e7e47b302fa8fbcffcce87c50f7c3cf3074f8f1c
»»»»» Script output:
foo
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing d0924f1a287bd2966c1dec156d135f2447ca21da
»»»»» Script output:
No such method 'slurp' for invocant of type 'IO::Pipe'
in block <unit> at /tmp/rzgJAIJe4x line 1
foo
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing c13480c82a587053fd95fe1faf35675426bfd311
»»»»» Script output:
foo
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 184d499961bfeaeeb86f47af3fc32e7c3ae7feb2
»»»»» Script output:
No such method 'slurp' for invocant of type 'IO::Pipe'
in block <unit> at /tmp/rzgJAIJe4x line 1
foo
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing f1b4af7af4bd0f98a124a7d2c2fbcdd3da367351
»»»»» Script output:
foo
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 064b5858b2af54cf1e753b2216f471fd6691c7b9
»»»»» Script output:
No such method 'slurp' for invocant of type 'IO::Pipe'
in block <unit> at /tmp/rzgJAIJe4x line 1
foo
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
f1b4af7af4bd0f98a124a7d2c2fbcdd3da367351 is the first new commit
commit f1b4af7af4bd0f98a124a7d2c2fbcdd3da367351
Author: Zoffix Znet <cpan@zoffix.com>
Date: Wed Apr 12 17:44:13 2017 +0000
[io grant] Implement IO::Handle.slurp
- Per IO plan, add .slurp as a replacement for .slurp-rest
- Will add a DEPRECATED to .slurp-rest when we cut 6.d, as
currently the compiler version for that is unknown
- Leave .slurp-rest as is, but in new .slurp, toss :bin and :enc
params. Use the handle's $!encoding attr. This aligns the routine
with all the others we have and avoids
switch-of-encoding-at-a-distance for the handle
- There's a way to make the binary mode 16x faster by doing a tell,
seek to end, tell, seek to original position and using the value
as size for the binary read, but it's a bit iffy since some handles
can't be .seek'ed (so we need a `try` there that falls back to
slower method) and perhaps some can be .seeked forward but not back.
So I left it out; the faster way *is* implemented in IO::Path.slurp
:040000 040000 bdf369e1dc9b294a6624568ea34e25345ac91a12 04784327b9fcf703ff2ea66ab4181c45e8fe0462 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment