Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to workaround venv failure in Actions runner 20240929.1. #950

Merged
merged 6 commits into from
Oct 9, 2024

Add explanatory comments.

0646127
Select commit
Loading
Failed to load commit list.
Merged

Attempt to workaround venv failure in Actions runner 20240929.1. #950

Add explanatory comments.
0646127
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch succeeded Oct 9, 2024 in 2h 39m 11s

Build Passed

The build passed. This is a change from the previous build, which canceled.

Details

This is a normal build for the fix-venv branch. You should be able to reproduce it by checking out the branch locally.

Jobs and Stages

This build has 18 jobs, running in parallel.

Job Compiler Xcode ENV OS State
4727.1 xcode14.2 BUILD_DIR=build macOS passed
4727.2 xcode14.2 BUILD_DIR=build macOS passed
4727.3 xcode14.2 BUILD_DIR=build macOS passed
4727.4 xcode14.2 BUILD_DIR=build macOS passed
4727.5 xcode14.2 BUILD_DIR=build macOS passed
4727.6 xcode14.2 BUILD_DIR=build macOS passed
4727.7 xcode14.2 BUILD_DIR=build macOS passed
4727.8 xcode14.2 BUILD_DIR=build macOS passed
4727.9 xcode14.2 BUILD_DIR=build macOS passed
4727.10 BUILD_DIR=build Linux passed
4727.11 gcc BUILD_DIR=build Linux passed
4727.12 gcc BUILD_DIR=build Linux passed
4727.13 gcc BUILD_DIR=build Linux passed
4727.14 gcc BUILD_DIR=build Linux passed
4727.15 gcc BUILD_DIR=build Linux passed
4727.16 gcc BUILD_DIR=build Linux passed
4727.17 clang BUILD_DIR=build Linux passed
4727.18 clang BUILD_DIR=build Linux passed

Build Configuration

Build Option Setting
Language C++
Operating System macOS
Xcode Version xcode14.2
Build Configuration
{
  "language": "cpp",
  "os": [
    "osx"
  ],
  "osx_image": [
    "xcode14.2"
  ],
  "addons": {
    "homebrew": {
      "update": false,
      "packages": [
        "git-lfs"
      ]
    }
  },
  "cache": {
    "directories": [
      "$HOME/.cache/vcpkg/archives"
    ]
  },
  "env": [
    "global={:BUILD_DIR=>\"build\"}={:CHECK_MKVK=>\"false\"}={:CHECK_REUSE=>\"false\"}={:FEATURE_TESTS=>\"true\"}={:GIT_LFS_SKIP_SMUDGE=>\"1\"}={:HOMEBREW_NO_AUTO_UPDATE=>\"1\"}={:PACKAGE=>\"false\"}={:REL_DESC_FILE=>\"$BUILD_DIR/rel_desc.md\"}={:VULKAN_SDK_VER=>\"1.3.290.0\"}={:VULKAN_INSTALL_DIR=>\"$HOME/VulkanSDK/$VULKAN_SDK_VER\"}={:VULKAN_SDK=>\"$VULKAN_INSTALL_DIR/macOS\"}={:WASM_BUILD=>\"false\"}={:WERROR=>\"true\"} jobs={:CONFIGURATION=>\"Debug,Release\", :PLATFORM=>\"macOS\", :ARCHS=>\"x86_64\", :FEATURE_DOC=>\"ON\", :FEATURE_JNI=>\"ON\", :FEATURE_PY=>\"ON\", :FEATURE_LOADTESTS=>\"OpenGL+Vulkan\", :FEATURE_TOOLS=>\"ON\", :FEATURE_TOOLS_CTS=>\"ON\", :SUPPORT_SSE=>\"ON\", :SUPPORT_OPENCL=>\"OFF\", :DEPLOY_DOCS=>\"YES\", :PACKAGE=>\"YES\"}={:CONFIGURATION=>\"Release\", :PLATFORM=>\"macOS\", :ARCHS=>\"arm64\", :FEATURE_DOC=>\"ON\", :FEATURE_JNI=>\"ON\", :FEATURE_PY=>\"OFF\", :FEATURE_LOADTESTS=>\"OpenGL+Vulkan\", :FEATURE_TESTS=>\"OFF\", :FEATURE_TOOLS=>\"ON\", :FEATURE_TOOLS_CTS=>\"OFF\", :SUPPORT_SSE=>\"ON\", :SUPPORT_OPENCL=>\"OFF\", :PACKAGE=>\"YES\"}={:CONFIGURATION=>\"Release\", :PLATFORM=>\"macOS\", :ARCHS=>\"x86_64\", :FEATURE_DOC=>\"OFF\", :FEATURE_JNI=>\"OFF\", :FEATURE_PY=>\"OFF\", :FEATURE_LOADTESTS=>\"OFF\", :FEATURE_TOOLS=>\"OFF\", :FEATURE_TOOLS_CTS=>\"OFF\", :SUPPORT_SSE=>\"ON\", :SUPPORT_OPENCL=>\"ON\"}={:CONFIGURATION=>\"Release\", :PLATFORM=>\"macOS\", :ARCHS=>\"arm64\", :FEATURE_DOC=>\"OFF\", :FEATURE_JNI=>\"OFF\", :FEATURE_PY=>\"OFF\", :FEATURE_LOADTESTS=>\"OFF\", :FEATURE_TESTS=>\"OFF\", :FEATURE_TOOLS=>\"OFF\", :FEATURE_TOOLS_CTS=>\"OFF\", :SUPPORT_SSE=>\"ON\", :SUPPORT_OPENCL=>\"ON\"}={:CONFIGURATION=>\"Release\", :PLATFORM=>\"macOS\", :ARCHS=>\"x86_64\", :FEATURE_DOC=>\"OFF\", :FEATURE_JNI=>\"OFF\", :FEATURE_PY=>\"OFF\", :FEATURE_LOADTESTS=>\"OFF\", :FEATURE_TOOLS=>\"OFF\", :FEATURE_TOOLS_CTS=>\"OFF\", :SUPPORT_SSE=>\"OFF\", :SUPPORT_OPENCL=>\"ON\"}={:CONFIGURATION=>\"Release\", :PLATFORM=>\"macOS\", :ARCHS=>\"arm64\", :FEATURE_DOC=>\"OFF\", :FEATURE_JNI=>\"OFF\", :FEATURE_PY=>\"OFF\", :FEATURE_LOADTESTS=>\"OFF\", :FEATURE_TESTS=>\"OFF\", :FEATURE_TOOLS=>\"OFF\", :FEATURE_TOOLS_CTS=>\"OFF\", :SUPPORT_SSE=>\"OFF\", :SUPPORT_OPENCL=>\"ON\"}={:CONFIGURATION=>\"Release\", :PLATFORM=>\"macOS\", :ARCHS=>\"x86_64\", :FEATURE_DOC=>\"OFF\", :FEATURE_JNI=>\"OFF\", :FEATURE_PY=>\"OFF\", :FEATURE_LOADTESTS=>\"OFF\", :FEATURE_TOOLS=>\"OFF\", :FEATURE_TOOLS_CTS=>\"OFF\", :SUPPORT_SSE=>\"OFF\", :SUPPORT_OPENCL=>\"OFF\"}={:CONFIGURATION=>\"Release\", :PLATFORM=>\"macOS\", :ARCHS=>\"arm64\", :FEATURE_DOC=>\"OFF\", :FEATURE_JNI=>\"OFF\", :FEATURE_PY=>\"OFF\", :FEATURE_LOADTESTS=>\"OFF\", :FEATURE_TESTS=>\"OFF\", :FEATURE_TOOLS=>\"OFF\", :FEATURE_TOOLS_CTS=>\"OFF\", :SUPPORT_SSE=>\"OFF\", :SUPPORT_OPENCL=>\"OFF\"}={:CONFIGURATION=>\"Debug,Release\", :PLATFORM=>\"iOS\", :FEATURE_DOC=>\"OFF\", :FEATURE_JNI=>\"OFF\", :FEATURE_PY=>\"OFF\", :FEATURE_LOADTESTS=>\"OpenGL+Vulkan\", :FEATURE_TOOLS=>\"OFF\", :FEATURE_TOOLS_CTS=>\"OFF\", :SUPPORT_SSE=>\"OFF\", :SUPPORT_OPENCL=>\"OFF\", :PACKAGE=>\"YES\"}"
  ],
  "jobs": {
    "include": [
      {
        "os": "linux",
        "dist": "jammy",
        "env": [
          {
            "CHECK_REUSE": "ONLY"
          }
        ]
      },
      {
        "os": "linux",
        "dist": "jammy",
        "compiler": "gcc",
        "env": [
          {
            "VULKAN_SDK_VER": "1.3.290"
          },
          {
            "CMAKE_GEN": "Ninja"
          },
          {
            "CONFIGURATION": "Debug",
            "FEATURE_DOC": "OFF",
            "FEATURE_JNI": "ON",
            "FEATURE_PY": "ON",
            "FEATURE_LOADTESTS": "OpenGL+Vulkan",
            "FEATURE_TOOLS": "ON",
            "SUPPORT_SSE": "ON",
            "SUPPORT_OPENCL": "OFF",
            "WERROR": "ON"
          }
        ]
      },
      {
        "os": "linux",
        "dist": "jammy",
        "addons": {
          "apt": {
            "packages": [
              "graphviz"
            ]
          }
        },
        "compiler": "gcc",
        "env": [
          {
            "VULKAN_SDK_VER": "1.3.290"
          },
          {
            "CMAKE_GEN": "Ninja"
          },
          {
            "CONFIGURATION": "Release",
            "FEATURE_DOC": "ON",
            "FEATURE_JNI": "ON",
            "FEATURE_PY": "ON",
            "FEATURE_LOADTESTS": "OpenGL+Vulkan",
            "FEATURE_TOOLS": "ON",
            "FEATURE_TOOLS_CTS": "ON",
            "SUPPORT_SSE": "ON",
            "SUPPORT_OPENCL": "OFF",
            "WERROR": "ON",
            "PACKAGE": "YES"
          }
        ]
      },
      {
        "os": "linux",
        "arch": "arm64",
        "dist": "jammy",
        "group": "previous",
        "addons": {
          "apt": {
            "packages": [
              "graphviz"
            ]
          }
        },
        "compiler": "gcc",
        "env": [
          {
            "VULKAN_SDK_VER": "1.3.290"
          },
          {
            "CMAKE_GEN": "Ninja"
          },
          {
            "CONFIGURATION": "Release",
            "FEATURE_DOC": "ON",
            "FEATURE_JNI": "ON",
            "FEATURE_PY": "ON",
            "FEATURE_LOADTESTS": "OpenGL",
            "FEATURE_TOOLS": "ON",
            "FEATURE_TOOLS_CTS": "ON",
            "SUPPORT_SSE": "OFF",
            "SUPPORT_OPENCL": "OFF",
            "WERROR": "ON",
            "PACKAGE": "YES"
          }
        ]
      },
      {
        "os": "linux",
        "dist": "jammy",
        "compiler": "gcc",
        "env": [
          {
            "CMAKE_GEN": "Ninja"
          },
          {
            "CONFIGURATION": "Release",
            "FEATURE_DOC": "OFF",
            "FEATURE_JNI": "OFF",
            "FEATURE_PY": "OFF",
            "FEATURE_LOADTESTS": "OFF",
            "FEATURE_TOOLS": "OFF",
            "FEATURE_TOOLS_CTS": "OFF",
            "SUPPORT_SSE": "ON",
            "SUPPORT_OPENCL": "ON",
            "WERROR": "ON",
            "PACKAGE": "NO"
          }
        ]
      },
      {
        "os": "linux",
        "dist": "jammy",
        "compiler": "gcc",
        "env": [
          {
            "CMAKE_GEN": "Ninja"
          },
          {
            "CONFIGURATION": "Release",
            "FEATURE_DOC": "OFF",
            "FEATURE_JNI": "OFF",
            "FEATURE_PY": "OFF",
            "FEATURE_LOADTESTS": "OFF",
            "FEATURE_TOOLS": "OFF",
            "FEATURE_TOOLS_CTS": "OFF",
            "SUPPORT_SSE": "OFF",
            "SUPPORT_OPENCL": "ON",
            "WERROR": "ON",
            "PACKAGE": "NO"
          }
        ]
      },
      {
        "os": "linux",
        "dist": "jammy",
        "compiler": "gcc",
        "env": [
          {
            "CMAKE_GEN": "Ninja"
          },
          {
            "CONFIGURATION": "Release",
            "FEATURE_DOC": "OFF",
            "FEATURE_JNI": "OFF",
            "FEATURE_PY": "OFF",
            "FEATURE_LOADTESTS": "OFF",
            "FEATURE_TOOLS": "OFF",
            "FEATURE_TOOLS_CTS": "OFF",
            "SUPPORT_SSE": "OFF",
            "SUPPORT_OPENCL": "OFF",
            "WERROR": "ON",
            "PACKAGE": "NO"
          }
        ]
      },
      {
        "os": "linux",
        "dist": "jammy",
        "compiler": "clang",
        "services": [
          "docker"
        ],
        "env": [
          {
            "WASM_BUILD": "YES"
          },
          {
            "CONFIGURATION": "Debug",
            "FEATURE_DOC": "OFF",
            "FEATURE_JNI": "OFF",
            "FEATURE_PY": "OFF",
            "FEATURE_LOADTESTS": "OpenGL",
            "SUPPORT_SSE": "OFF",
            "SUPPORT_OPENCL": "OFF",
            "WERROR": "ON"
          }
        ]
      },
      {
        "os": "linux",
        "dist": "jammy",
        "compiler": "clang",
        "services": [
          "docker"
        ],
        "env": [
          {
            "WASM_BUILD": "YES"
          },
          {
            "CONFIGURATION": "Release",
            "FEATURE_DOC": "OFF",
            "FEATURE_JNI": "OFF",
            "FEATURE_PY": "OFF",
            "FEATURE_LOADTESTS": "OpenGL",
            "SUPPORT_SSE": "OFF",
            "SUPPORT_OPENCL": "OFF",
            "WERROR": "ON",
            "PACKAGE": "YES"
          }
        ]
      }
    ]
  },
  "before_install": [
    "echo -n \"Running on the following travis CI runner: \" && uname -a\n",
    "echo -n \"CMake version on the runner is \" && cmake --version\n",
    "echo -e \"machine github.com\\n  login $GITHUB_TOKEN\" >> ~/.netrc",
    "cat ~/.netrc",
    "case \"${TRAVIS_OS_NAME:-linux}\" in\nlinux)\n  if [ \"$WASM_BUILD\" = \"YES\" ]; then\n    # Need to set uid/gid because, unlike when running docker locally,\n    # /src ends up being owned by the uid/gid running this script and\n    # the recent fix for CVE-2022-24765 in Git causes Git to error\n    # when the repo owner differs from the user. For details see\n    # https://github.blog/2022-04-12-git-security-vulnerability-announced/\n    docker run -dit --name emscripten --user \"$(id -u):$(id -g)\" -v $(pwd):/src emscripten/emsdk bash\n  elif [ \"$CHECK_REUSE\" != \"ONLY\" -a \"$CHECK_MKVK\" != \"ONLY\" ]; then\n    sudo apt-get update\n  fi\n  ;;\nosx)\n  if [[ -n \"$FEATURE_LOADTESTS\" && \"$FEATURE_LOADTESTS\" != \"OFF\" ]]; then\n    # Install vcpkg.\n    pushd $HOME\n    git clone https://github.com/microsoft/vcpkg\n    cd vcpkg && ./bootstrap-vcpkg.sh -disableMetrics && export VCPKG_ROOT=$(pwd)\n    popd\n  fi\n  ;;\nesac\n"
  ],
  "install": [
    "case \"${TRAVIS_OS_NAME:-linux}\" in\nlinux)\n  if [ \"$CHECK_REUSE\" = \"YES\" -o \"$CHECK_REUSE\" = \"ONLY\" ]; then\n    set -e  # because the if below swallows a bad exit status.\n    # reuse available via `apt install reuse` is very old: 0.14.0.\n    # Therefore install via pip. Version today, 2024.7.9, is 4.0.3.\n    pip3 install reuse\n    set +e\n  fi\n  if [ \"$CHECK_REUSE\" != \"ONLY\" -a \"$CHECK_MKVK\" != \"ONLY\" -a \"$WASM_BUILD\" != \"YES\" ]; then\n    if [ \"$TRAVIS_CPU_ARCH\" = \"arm64\" ]; then\n      # JDK was not installed on arm64 runner. Kept for reference.\n      #sudo apt-get -qq install openjdk-17-jdk\n      # Must be manually set. Setting JAVA_HOME might be an alternative.\n      #sudo ln -s -f /usr/lib/jvm/java-1.17.0-openjdk-arm64 /usr/lib/jvm/default-java\n      # Runner now has JDK but is not setting JAVA_HOME or default-java.\n      # Delete this when fixed.\n      export JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-arm64\n    fi\n    echo \"JAVA_HOME = $JAVA_HOME\"\n    echo \"/usr/lib/jvm\"\n    ls -l /usr/lib/jvm\n    echo \"/usr/local/lib/jvm\"\n    ls -l /usr/local/lib/jvm\n    ./scripts/install_linux.sh\n  fi\n  ;;\nosx)\n  if [ \"$CHECK_REUSE\" != \"ONLY\" -a \"$CHECK_MKVK\" != \"ONLY\" ]; then\n    if [ \"$FEATURE_DOC\" = \"ON\" ]; then\n        brew install doxygen\n        brew install graphviz\n    fi\n    ./scripts/install_macos.sh\n  fi\n  ;;\nesac\n"
  ],
  "before_script": [
    "git fetch --unshallow --tags",
    "case \"${TRAVIS_OS_NAME:-linux}\" in\nlinux)\n  ;;\nosx)\n  ./scripts/before_build_macos.sh\n  ;;\nesac\n",
    "if [ \"$FEATURE_TOOLS_CTS\" = \"ON\" ]; then\n  git submodule update --init --recursive tests/cts\nfi\n",
    "./install-gitconfig.sh",
    "scripts/smudge_date.sh"
  ],
  "script": [
    "set -e # Instead of trying to chain everything together with &&\n       # otherwise subsequent commands will swallow bad exit status.\ncase \"${TRAVIS_OS_NAME:-linux}\" in\nlinux)\n  if [ \"$CHECK_REUSE\" = \"YES\" -o \"$CHECK_REUSE\" = \"ONLY\" ]; then\n    echo \"Calling reuse lint.\"\n    reuse lint\n  fi\n  if [ \"$CHECK_REUSE\" != \"ONLY\" -a \"$CHECK_MKVK\" != \"ONLY\" ]; then\n    if [ \"$WASM_BUILD\" = \"YES\" ]; then\n      ./scripts/build_wasm_docker.sh\n    else\n      ./scripts/build_linux.sh\n    fi\n  fi\n  ;;\nosx)\n  if [ \"$CHECK_REUSE\" != \"ONLY\" -a \"$CHECK_MKVK\" != \"ONLY\" ]; then\n    if [ \"$PLATFORM\" = \"macOS\" ]; then\n      ./scripts/build_macos.sh\n    else\n      ./scripts/build_ios.sh\n    fi\n  fi\n  ;;\nesac\nif [ \"$CHECK_MKVK\" = \"ONLY\" ]; then\n  scripts/check_mkvk.sh\nfi\nif [ \"$DEPLOY_DOCS\" = \"YES\" ]; then\n  # Some files in the pyktx docs have an _ prefix so Jekyll will\n  # not copy them from the gh-pages branch to the website. This\n  # file says no Jekyll files here. Treat all as ordinary files.\n  touch $BUILD_DIR/docs/html/.nojekyll\nfi\nset +e\n"
  ],
  "after_failure": [
    "./scripts/on_failure.sh"
  ],
  "after_success": [
],
"before_deploy": [
"gem install octokit:'> 4.15.0' mime-types\ncase "${TRAVIS_OS_NAME:-linux}" in\nlinux)\n  ;;\nosx)\n  # Only notarize if we're going to deploy. I.e on a tag. Also check for\n  # access to signing certs to make sure we don't try this on a fork which\n  # has a tag.\n  #\n  # Although undocumented, except for a blog post, before_deploy is run for\n  # each deployment so we need to take steps to prevent notarization being\n  # run twice. https://github.com/travis-ci/travis-ci/issues/2570 about\n  # this has been open for years. What a crock!\n  if [ -n "$MACOS_CERTIFICATES_P12" -a -n "$TRAVIS_TAG" -a -z "$NOTARIZED" ]; then\n    ./scripts/notarize.sh $BUILD_DIR/KTX-Software-.pkg $APPLE_ID $DEVELOPMENT_TEAM $ALTOOL_PASSWORD && export NOTARIZED="true"\n  fi\n  ;;\nesac\nif [ ! -f $REL_DESC_FILE -a -f RELEASE_NOTES.md ]; then\n  # Remove lines that are unnecessary in the context of a GitHub\n  # release description.\n  awk '/^Release Notes/,/^## Version/ { next }\n       ! /<!-- Copyright/ && ! /<!-- SPDX/ { print }' RELEASE_NOTES.md \\n  > $REL_DESC_FILE\n  # dpl v2 alternative\n  #RELNOTES=$(awk '/^Release Notes/,/^## Version/ { next }\n  #     ! /<!-- Copyright/ && ! /<!-- SPDX/ { print }' RELEASE_NOTES.md)\nfi\n"
],
"deploy": [
{
"provider": "pages",
"strategy": "git",
"edge": true,
"token": "$GITHUB_TOKEN",
"local_dir": "$BUILD_DIR/docs/html",
"on": {
"tags": true,
"condition": [
"$DEPLOY_DOCS = YES"
]
}
},
{
"provider": "script",
"edge": true,
"script": "ruby scripts/github_release.rb -s ${GITHUB_TOKEN} -r ${TRAVIS_REPO_SLUG} -c $REL_DESC_FILE -t ${TRAVIS_TAG} --overwrite true --draft true --prerelease true $BUILD_DIR/KTX-Software--*",
"on": {
"tags": true,
"condition": [
"$PACKAGE = "YES" && $TRAVIS_TAG = ^v[0-9]."
]
}
},
{
"provider": "script",
"edge": true,
"script": "ruby scripts/github_release.rb -s ${GITHUB_TOKEN} -r ${TRAVIS_REPO_SLUG} -c $REL_DESC_FILE -t ${TRAVIS_TAG} --overwrite true --draft true --prerelease true $BUILD_DIR/interface/python_binding/dist/.whl",
"on": {
"tags": true,
"condition": [
"$PACKAGE = "YES" && $TRAVIS_TAG =~ ^v[0-9].* && $FEATURE_PY = "ON""
]
}
}
]
}