上载junit工件期间没有匹配的文件

上载junit工件期间没有匹配的文件,junit,pytest,gitlab-ci,kubernetes-helm,Junit,Pytest,Gitlab Ci,Kubernetes Helm,在Gitlab上使用pytest进行测试运行作业之后,我正在努力获取junit工件(junit.xml文件)。作业在k8s pod中运行,如下所示: testrun:component: image: ... tags: - ... stage: testrun script: - <some previous setup steps> - > helm install "some namespace"

在Gitlab上使用pytest进行测试运行作业之后,我正在努力获取junit工件(junit.xml文件)。作业在k8s pod中运行,如下所示:

testrun:component:
  image: ...
  tags:
    - ...
  stage: testrun
  script:
    - <some previous setup steps>
    - >
      helm install "some namespace"
      -- set ...
      ...
  artifacts:
    reports:
      junit: ./test_results/junit.xml
    expire_in: 1 week
上载操作附近的CI作业调试日志包含以下内容:

++ cd /builds/<some_folder>/main
++ /usr/bin/gitlab-runner-helper --version
Uploading artifacts...
++ echo 'Uploading artifacts...'
++ /usr/bin/gitlab-runner-helper artifacts-uploader --url https://<example.com>/ --token [MASKED] --id 123456 --path ./test_results/junit.xml --name junit.xml --expire-in '1 week' --artifact-format gzip --artifact-type junit
WARNING: ./test_results/junit.xml: no matching files
++cd/builds//main
++/usr/bin/gitlab runner helper--版本
正在上载工件。。。
++echo“上传工件…”
++/usr/bin/gitlab runner-helper-artifacts-uploader--url https://--token[MASKED]--id 123456--path./test_-results/junit.xml--name junit.xml--expire in'1 week'--artifact格式gzip--artifact类型junit
警告:./test_results/junit.xml:没有匹配的文件

我很好奇问题出在哪里?

在运行测试的pod上安装一个卷是否有帮助?我怀疑我的情况比我以前想象的更复杂。我在作业日志中看到错误,但它仍在工作,junit.xml文件尚未生成。现在我看到的情况是,Gitlab CI作业已安装
helm
,在helm调用后看起来已完成,但名称空间仍处于活动状态,并且工作正常(测试正在内部运行)。当名称空间完成其工作时,必须有一个跟踪对象。
++ cd /builds/<some_folder>/main
++ /usr/bin/gitlab-runner-helper --version
Uploading artifacts...
++ echo 'Uploading artifacts...'
++ /usr/bin/gitlab-runner-helper artifacts-uploader --url https://<example.com>/ --token [MASKED] --id 123456 --path ./test_results/junit.xml --name junit.xml --expire-in '1 week' --artifact-format gzip --artifact-type junit
WARNING: ./test_results/junit.xml: no matching files