[JIRA] (JENKINS-59769) Tests using unix Pipe fail when run via kubernetes-jenkins integration

0 views
Skip to first unread message

stigglor@gmail.com (JIRA)

unread,
Oct 13, 2019, 10:22:03 PM10/13/19
to jenkinsc...@googlegroups.com
Jared Patterson created an issue
 
Jenkins / Bug JENKINS-59769
Tests using unix Pipe fail when run via kubernetes-jenkins integration
Issue Type: Bug Bug
Assignee: Unassigned
Components: kubernetes-plugin
Created: 2019-10-14 02:21
Priority: Minor Minor
Reporter: Jared Patterson

I have a test which creates a (interprocess-channel) unix pipe, creates and attaches a client to the pipe, and asserts that it times out after X seconds if no data is emitted over the channel.

When the test is executed via a custom PodTemplate, within the kubernetes-plugin's `container()` block, it fails with the following exception:

 14:00:41 ---- poll stdout ----
 14:00:41 running: "/opt/fst-wasi-sdk/bin/clang" "/home/jenkins/workspace/isolation/isolation/public/lucet-wasi/tests/guests/poll.c" "-target=wasm32-unknown-wasi" "sysroot=/opt/fst-wasi-sdk/share/wasi-sysroot" "-o" "/tmp/.tmpKDJhAm/out.wasm" "-Wall" "-Werror" "-Wl,-no-threads"
 14:00:41 thread 'poll' panicked at 'called `Result::unwrap()` on an `Err` value: ErrorMessage { msg: "runtime error: Runtime fault: FaultDetails { fatal: false, trapcode: Some(Unreachable), rip_addr: 140297967098212, rip_addr_details: Some(AddrDetails
{ in_module_code: true, file_name: Some(\"/tmp/.tmpKDJhAm/out.so\"), sym_name: None }
) }" } 

However, ff I have the pipeline spawn the custom pod as per usual, but sleep() right before executing the test, allowing me to jump onto the container via kubectl, and then manually run the test (executing the same target called from the pipeline) it succeeds as expected. This test also succeeds if its executed using docker-server (non kubernetes)

I have confirmed the user within the container being used is root, and permissions etc are correct. The file descriptor for the pipe gets created within /tmp/

Test is creating a pipe using: https://docs.rs/nix/0.10.0/nix/unistd/fn.pipe.html

 

Any ideas here?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages