#1064786 jruby: mri-extra - flaky TestOpen3 pipe tests

#1064786#5
Date:
2024-02-25 21:50:36 UTC
From:
To:
Dear Maintainer,

The autopkgtests for jruby fail `mri-extra` with the following errors:

  1) Failure:
TestOpen3#test_pipeline_start
[/tmp/autopkgtest.Dz4xQk/autopkgtest_tmp/test/mri/test_open3.rb:303]:
Failed assertion, no message given.

  2) Failure:
TestOpen3#test_pipeline_w
[/tmp/autopkgtest.Dz4xQk/autopkgtest_tmp/test/mri/test_open3.rb:288]:
<true> expected but was
<false>.

  3) Failure:
TestOpen3#test_capture3_flip
[/tmp/autopkgtest.Dz4xQk/autopkgtest_tmp/test/mri/test_open3.rb:190]:

The minimal reproducer of those:
----
require 'open3'

RUBY = 'jruby'
Open3.pipeline_r([RUBY, '-e', 'print "1"'],
                     [RUBY, '-e', 'print STDIN.read + "2"']) {|o,ts|
      print(o.read)
    }
---

executing the above sample results in the following output:
# jruby test.rb
12# jruby test.rb
12# jruby test.rb
12# jruby test.rb
12# jruby test.rb
2# jruby test.rb
12# jruby test.rb
2# jruby test.rb
12# jruby test.rb
2# jruby test.rb
2# jruby test.rb
2# jruby test.rb
2# jruby test.rb
12# jruby test.rb
12# jruby test.rb
2Errno::EPIPE: Broken pipe - <STDOUT>
   write at org/jruby/RubyIO.java:1569
   write at org/jruby/RubyIO.java:1458
   write at org/jruby/RubyIO.java:2829
   print at org/jruby/RubyIO.java:1831
   print at org/jruby/RubyKernel.java:649
  <main> at -e:1

Note: the failure occurs both with Java 17 and Java 21

#1064786#10
Date:
2024-02-26 01:03:25 UTC
From:
To:
This failure is probably caused by [1]


[1] https://github.com/jruby/jruby/issues/8069

#1064786#15
Date:
2026-08-29 02:34:55 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
jruby, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1064786@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jérôme Charaoui <jerome@riseup.net> (supplier of updated jruby package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 28 Aug 2026 07:41:17 -0400
Source: jruby
Architecture: source
Version: 10.1.1.0+ds-1~exp1
Distribution: experimental
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Jérôme Charaoui <jerome@riseup.net>
Closes: 1064786 1130186
Changes:
 jruby (10.1.1.0+ds-1~exp1) experimental; urgency=medium
 .
   * New upstream version 10.1.1.0+ds (Closes: #1064786, #1130186)
   * ship new upstream dotfiles used by main executable
   * jirb is no longer part of the default gems
   * add maven.compiler.release=21
   * drop obsolete lintian overrides
   * d/control:
     + add fastdoubleparser to deps
     + bump min versions for some deps
     + bump involkebinder version constraint
   * d/patches:
     + refresh for new upstream version
     + add patch to work around an appcds issue
     + new patch to bypass jruby-prism requirement
   * d/rules: avoid wiping upstream-provided libs
   * d/tests:
     + fixes for mri-core test
     + install gem bundle from rubygems.org
     + add missing netbase dependency
     + smoke test improvements
     + fix jruby testcase not actually running
     + add isolation-container restrictions
     - drop obsolete symlink
     - upstream is now excluding these tests
     - exclude two mri-stdlib tests failing
     - exclude unreliable/failing mri-stdlib tests
   * d/watch: update to v5 format
   * Remove redundant Priority: optional from source stanza.
   * Replace FSF postal address with a reference to
https://www.gnu.org/licenses/.
   * Update standards version to 4.7.4, no changes needed.
   * Removed Rules-Requires-Root
Checksums-Sha1:
 49094bf9acdd40644c8d3b2a794fc2851f6c6ca6 2956 jruby_10.1.1.0+ds-1~exp1.dsc
 c50bd8eed931e149acac53a29ea66ba5cae94f71 15570844 jruby_10.1.1.0+ds.orig-rubygems.tar.xz
 e1eaa61c70f8febe3d0c63047bcd435c8e73d563 5525472 jruby_10.1.1.0+ds.orig.tar.xz
 cb83df4fa597300a5061676c20172f045f7b32c0 37204 jruby_10.1.1.0+ds-1~exp1.debian.tar.xz
 48428e17cc78ecfebc2347b7d4b1e152fd347820 14420 jruby_10.1.1.0+ds-1~exp1_amd64.buildinfo
Checksums-Sha256:
 c4c796ab8bf11ad41383538647bedc25eb0c3e2ca53192928de0d2bbfb68366f 2956 jruby_10.1.1.0+ds-1~exp1.dsc
 c018ba4a6f48f501c7ce510d83a7b9490662700dc8b0d8fffaa18577b11a9d75 15570844 jruby_10.1.1.0+ds.orig-rubygems.tar.xz
 03bd44d02e6dcc42c82036b2b235e1b05840093337e2dc34458364afc8b61269 5525472 jruby_10.1.1.0+ds.orig.tar.xz
 5bf9b626dfb3c437f90b3278dd8f331eb8022a8c254b333e49b5424cfca83f86 37204 jruby_10.1.1.0+ds-1~exp1.debian.tar.xz
 dbf888539fc251f1f141dbab24822e11b18351059d67da62ca67173e6b00c242 14420 jruby_10.1.1.0+ds-1~exp1_amd64.buildinfo
Files:
 6d8657ed30eb8ecbeee82ea92de39a8a 2956 ruby optional jruby_10.1.1.0+ds-1~exp1.dsc
 93f6490fc5212bb69478906a87d5fd59 15570844 ruby optional jruby_10.1.1.0+ds.orig-rubygems.tar.xz
 0f12157c905c280e6aff0b040cace9a3 5525472 ruby optional jruby_10.1.1.0+ds.orig.tar.xz
 081ea1921aec612a0cb558215635a249 37204 ruby optional jruby_10.1.1.0+ds-1~exp1.debian.tar.xz
 bad1570ef5836c6ae77b6ca592f717cf 14420 ruby optional jruby_10.1.1.0+ds-1~exp1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQTAq04Rv2xblqv/eu5pxS9ljpiFQgUCapJBrQAKCRBpxS9ljpiF
QlpKAP44Hngfh1w3fnNxF5UdCm/DJvy65eLd++0Gd869YbuRJQEArmV5/+eIP80O
eyDztcIZ6dRVp2ryn8e1v8Nb8jpN3w4=
=50jM
-----END PGP SIGNATURE-----