1

After building a docker image, I am trying to test its functionality using ContainerStructureTest@0 from azure-devops.

I have a pipeline and test configFile.

Firstly, it gives the following warning:

##[warning]Can\'t find loc string for key: FoundDockerConfigStoredInTempPath
##[warning]Can\'t find loc string for key: OldDockerConfigContent
##[warning]Can\'t find loc string for key: AddingNewAuthToExistingConfig

Then, yields the following error:

[command]/home/vsts/work/_tasks/ContainerStructureTest_39bc2c9b-55b7-4835-89cd-6cc699ef7220/0.1.2/container-structure-test test --image ***/entry_point:latest --config /home/vsts/work/1/structure-test.yaml --json
##[error]Error in executing the command: Error: spawnSync /home/vsts/work/_tasks/ContainerStructureTest_39bc2c9b-55b7-4835-89cd-6cc699ef7220/0.1.2/container-structure-test ETXTBSY
##[error]Error: Error in executing the command: Error: spawnSync /home/vsts/work/_tasks/ContainerStructureTest_39bc2c9b-55b7-4835-89cd-6cc699ef7220/0.1.2/container-structure-test ETXTBSY

I do confirm that my configFile is copied into the virtual machine:

/home/vsts/work/1/structure-test.yaml

Since your documentation is not complete yet, I followed the syntax from https://github.com/GoogleContainerTools/container-structure-test

I have a feeling that this task is not configured properly. Can anyone help me solve the error?

tash
  • 711
  • 5
  • 13
  • I am facing the same execute error with you even test with the File test script or just print out "hello world" with command test. Since there has result displayed in the doc, the function should completed. I think this issue should relevant with our test scrip. I am achieving the correct test from our internal way. Will share it with you once I got any feedback from that team. – Mengdi Liang Oct 23 '19 at 07:42
  • Thanks @MerlinLiang-MSFT. I appreciate it. – tash Oct 24 '19 at 20:24

0 Answers0