Skip to content

Conversation

@junaruga
Copy link
Member

@junaruga junaruga commented Sep 29, 2023

This PR is a rework for the #63, to make the workaround simple. Because I was inspired by the comment at ruby/spec#1084 (comment).

The PR has 3 commit.

The 1st commit is to improve .travis.yml printing the used zlib deb package version and other info.

The 2nd commit reverts the commit 9f3b9c4.

The 3rd commit is the main commit for this PR, setting the environment variable DFLTCC=0. When running test/**/test_*.rb" as a child process from the Ruby code in the Rakefile as a parent process. the environment variable can affect to the tests in the test file. I referred to the way of test task calling the test-internal, seeing the following ruby/openssl's Rakefile.

https://github.com/ruby/openssl/blob/6b3dd6a372c5eabc88bf35a312937ee3e1a6a105/Rakefile#L21-L35

I confirmed that the Travis CI passing in my forked repository. When running 2 times, the total running times are 28 seconds and 31 seconds. So, it's faster than GitHub Actions around 2 minutes 30 seconds ~ 7 minutes
.

@jeremyevans Could you review? The change is essentially only for the 3rd commit, as I was able to revert the 2nd commit without conflict.

Put the language syntax defining the default behaviors first and aligning with
ruby/ruby's .travis,yml.
This reverts commit 9f3b9c4 because we will
fix the issue on alternative way.
This commit is a rework for the commit 9f3b9c4
that is a workaround fixing test failures on Ubuntu jammy s390x.

This commit simplifies the workaround. Read the commit message for the commit
9f3b9c4 for details of the issue.
@junaruga junaruga force-pushed the wip/s390x-dfltcc-rakefile branch from 76e1eb4 to 18ab39e Compare September 29, 2023 11:23
@junaruga junaruga changed the title Rakefile: Update the test task to pass on s390x. Rakefile: Update the test task to pass on Ubuntu jammy s390x. Sep 29, 2023
@junaruga junaruga merged commit 280a1b5 into ruby:master Sep 29, 2023
@junaruga junaruga deleted the wip/s390x-dfltcc-rakefile branch September 29, 2023 16:14
@junaruga
Copy link
Member Author

Thanks for reviewing it. I merged the PR.

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.

2 participants