pytorch/.ci/onnx
Thanh Ha a13cf5d396 Workaround dind-rootless bind mount permissions (#123641)
ARC uses dind-rootless which causes bind mounts to always be mounted as the "root" user inside the container rather than the "jenkins" user as expected. We run chown to ensure that the workspace gets mapped to the jenkins user as well as a trap to ensure this change gets reverted when the script ends for any reason. This is the same workaround as in #122922 but adapted for onnx tests.

Issue: pytorch/ci-infra#112

Pull Request resolved: https://github.com/pytorch/pytorch/pull/123641
Approved by: https://github.com/jeanschmidt, https://github.com/seemethere
2024-04-10 22:44:57 +00:00
..
common.sh
README.md
test.sh

Jenkins

The scripts in this directory are the entrypoint for testing ONNX exporter.

The environment variable BUILD_ENVIRONMENT is expected to be set to the build environment you intend to test. It is a hint for the build and test scripts to configure Caffe2 a certain way and include/exclude tests. Docker images, they equal the name of the image itself. For example: py2-cuda9.0-cudnn7-ubuntu16.04. The Docker images that are built on Jenkins and are used in triggered builds already have this environment variable set in their manifest. Also see ./docker/jenkins/*/Dockerfile and search for BUILD_ENVIRONMENT.

Our Jenkins installation is located at https://ci.pytorch.org/jenkins/.