Fix reverse DNS lookup for current hostname in GitHub Actions CI Runner VMs#7588
Fix reverse DNS lookup for current hostname in GitHub Actions CI Runner VMs#7588lhotari wants to merge 2 commits intotrinodb:masterfrom
Conversation
Fixes trinodb#7534 - Fixes reverse DNS lookup for current hostname and related issues such as "java.net.BindException: Cannot assign requested address"
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
|
I have signed the CLA and sent it to cla@trino.io . |
|
Can you please try to stress the CI for phoenix tests by adding one more commit that should be removed before merging where phoenix job is executed several times and other jobs are removed. Just to see that this flaky issue is really gone. |
kokosing
left a comment
There was a problem hiding this comment.
Welcome in the community. Thanks fixing this!
| sudo apt-get clean | ||
| df -h | ||
| - uses: actions/checkout@v2 | ||
| - uses: ./.github/actions/tune-runner-vm |
There was a problem hiding this comment.
Please apply this only for phoenix job.
There was a problem hiding this comment.
What does a "the phoenix job" mean? I think it makes sense to apply the configuration to all jobs since there's no harm in doing that.
The intention of "tune-runner-vm" action is to be able to add tuning for GitHub Actions Runner VMs. After the reverse name lookup problem has been fixed in GitHub, it might be able to leave the tune-runner-vm action in place, but just make it a no-op in case some other optimizations are added later.
Some useful tuning to do in tune-runner-vm is to adjust other Linux kernel settings such as vm.swappiness or THP settings, for example:
echo 1 | sudo tee /proc/sys/vm/swappiness
echo madvise | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
Depending on the type of builds, these might be useful.
|
Can you please try to stress the CI for phoenix tests by adding one more commit that should be removed before merging where phoenix job is executed several times and other jobs are removed. Just to see that this flaky issue is really gone. |
See #7592 for an example |
|
Or #7593 |
|
Hi @lhotari thanks for fixing this. Curious... Could you briefly explain how this fixes the problem and why this used to cause the problem only sometimes? |
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
@lhofhansl I have reported the issue as actions/runner-images#3185 . |
|
Is it only problem when hostname is changed during test execution, or it's an issue with VM setup where |
|
I agree with @kokosing it would be preferably applied to phoenix job only (actually: the i am stress-testing the fix @ #7593 (comment) |
|
The stress test looks great! @lhotari let's limit this to @martint we need CLA help here. |
|
Can you add a revert of #7613 as part of this PR please? |
|
BTW. Thank for figuring this out. We ran into the very same problem recently with tests in the Phoenix connectors and this helped us fix it there too :) |
Fixes #7534
and related issues such as
java.net.BindException: Cannot assign requested address