Skip to content

Match travis behavior to post failing logs to aws

5100880
Select commit
Loading
Failed to load commit list.
Merged

Match Travis behavior by posting failing GHA logs to S3 #1250

Match travis behavior to post failing logs to aws
5100880
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Feb 3, 2026 in 39m 17s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #1250 Match Travis behavior by posting failing GHA logs to S3.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has nine jobs, running in two sequential stages.

Stage 1: build-and-package

This stage passed.

Job Compiler ENV OS State
6841.1 check gcc GDAL_OPTION=--without-gdal Linux passed
6841.2 distcheck gcc GDAL_OPTION=--without-gdal Linux passed
6841.3 Enterprise Linux 8 RPMs (via Rocky8) gcc GDAL_OPTION=--without-gdal Linux passed
6841.4 Enterprise Linux 9 RPMs (via Rocky9) gcc GDAL_OPTION=--without-gdal Linux passed
6841.5 Build bes docker image (RHEL8) gcc GDAL_OPTION=--without-gdal Linux passed
6841.6 dist gcc GDAL_OPTION=--without-gdal Linux passed

Stage 2: scan

This stage passed.

Job Compiler ENV OS State
6841.7 scan bes gcc GDAL_OPTION=--without-gdal Linux passed
6841.8 scan bes-modules-1 gcc GDAL_OPTION=--without-gdal Linux passed
6841.9 scan bes-hdf-handlers gcc GDAL_OPTION=--without-gdal Linux passed

Build Configuration

Build Option Setting
Language C++
Operating System Linux (Focal)
Compiler Version gcc
Build Configuration
{
  "language": "cpp",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "vm": {
    "size": "2x-large"
  },
  "compiler": [
    "gcc"
  ],
  "branches": {
    "only": [
      "master",
      "main",
      "/^(.*-test-deploy)$/"
    ]
  },
  "cache": {
    "directories": [
      "./.cache/sonar/"
    ]
  },
  "addons": {
    "sonarcloud": {
      "enabled": true
    },
    "apt": {
      "packages": [
        "uuid-dev",
        "libxml2-dev",
        "libcurl4-openssl-dev",
        "libcppunit-dev",
        "libicu-dev",
        "gcovr",
        "grep",
        "libfl-dev",
        "openjdk-17-jdk-headless"
      ]
    }
  },
  "git": {
    "depth": 1
  },
  "env": [
    "global={:GDAL_OPTION=>\"--without-gdal\"}={:prefix=>\"$HOME/install\"}={:PATH=>\"$prefix/bin:$prefix/deps/bin:$PATH\"}={:TESTSUITEFLAGS=>\"-j7\"}={:LIBDAP_RPM_VERSION=>\"3.21.1-0\"}=SONAR_LOGIN=[secure]=SONAR_MODULES_LOGIN=[secure]=SONAR_SUBMODULES_LOGIN=[secure]=AWS_ACCESS_KEY_ID=[secure]=AWS_SECRET_ACCESS_KEY=[secure]=GIT_UID=[secure]=GIT_PSWD=[secure]={:CMAC_ID=>\"\\\"${AWS_ACCESS_KEY_ID}\\\"\"}={:CMAC_ACCESS_KEY=>\"\\\"${AWS_SECRET_ACCESS_KEY}\\\"\"}={:CMAC_URL=>\"\\\"https://s3.amazonaws.com/cloudydap/\\\"\"}={:CMAC_REGION=>\"\\\"us-east-1\\\"\"}={:CMAC_ON=>\"\\\"yes\\\"\"}"
  ],
  "before_install": [
    "gem install bundler",
    "pip install --user awscli",
    "export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64",
    "export PATH=\"$JAVA_HOME/bin:$PATH\"",
    "java -version"
  ],
  "install": [
    "aws s3 cp s3://opendap.travis.build/hyrax-dependencies-build.tgz $TRAVIS_BUILD_DIR",
    "tar -C $HOME -xzvf $TRAVIS_BUILD_DIR/hyrax-dependencies-build.tgz",
    "aws s3 cp s3://opendap.travis.build/libdap-build.tar.gz $TRAVIS_BUILD_DIR",
    "tar -C $HOME -xzvf $TRAVIS_BUILD_DIR/libdap-build.tar.gz"
  ],
  "before_script": [
    "source travis/travis_bes_build_offset.sh",
    "export BES_BUILD_NUMBER=$(expr $TRAVIS_BUILD_NUMBER - $BES_TRAVIS_BUILD_OFFSET)",
    "echo \"BES_BUILD_NUMBER is ${BES_BUILD_NUMBER} = ${TRAVIS_BUILD_NUMBER} - ${BES_TRAVIS_BUILD_OFFSET}\"",
    "export LIBDAP_RPM_VERSION=$(grep \"libdap4-\" libdap4-snapshot | awk '{print $1;}' - | sed \"s/libdap4-//g\")",
    "echo \"Travis default env:\"",
    "printenv"
  ],
  "stages": [
    {
      "name": "build-and-package"
    },
    {
      "name": "scan",
      "if": "branch = master"
    },
    {
      "name": "hyrax-olfs-trigger",
      "if": "type != pull_request OR branch =~ ^(.*-test-deploy)$"
    },
    {
      "name": "never",
      "if": "branch = never"
    }
  ],
  "jobs": {
    "include": [
      {
        "stage": "build-and-package",
        "name": "check",
        "script": [
          "export BES_BUILD=main",
          "autoreconf --force --install --verbose",
          "./configure --disable-dependency-tracking --prefix=$prefix --with-dependencies=$prefix/deps $GDAL_OPTION --enable-developer",
          "export LD_LIBRARY_PATH=\"/home/travis/install/deps/lib:$LD_LIBRARY_PATH\"",
          "echo \"LD_LIBRARY_PATH - $LD_LIBRARY_PATH\" >&2",
          "make -j16 && make install && besctl start && make check -j16 && besctl stop"
        ]
      },
      {
        "stage": "build-and-package",
        "name": "distcheck",
        "script": [
          "export BES_BUILD=distcheck",
          "autoreconf --force --install --verbose",
          "./configure --disable-dependency-tracking --prefix=$prefix --with-dependencies=$prefix/deps $GDAL_OPTION--enable-developer",
          "make distcheck -j16 GZIP_ENV=--fast"
        ]
      },
      {
        "stage": "build-and-package",
        "name": "Enterprise Linux 8 RPMs (via Rocky8)",
        "script": [
          "export BES_BUILD=rocky8",
          "mkdir -p $prefix/rpmbuild",
          "echo \"branch name ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}\"",
          "docker run --env prefix=/root/install --volume $prefix/rpmbuild:/root/rpmbuild --volume $TRAVIS_BUILD_DIR:/root/travis --env GDAL_OPTION=\"$GDAL_OPTION\" --env OS=rocky8 --env DIST=el8 --env LIBDAP_RPM_VERSION=$LIBDAP_RPM_VERSION --env BES_BUILD_NUMBER=$BES_BUILD_NUMBER --env AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY opendap/rocky8_hyrax_builder:latest /root/travis/travis/build-rh8-rpm.sh"
        ]
      },
      {
        "stage": "build-and-package",
        "name": "Enterprise Linux 9 RPMs (via Rocky9)",
        "script": [
          "export BES_BUILD=rocky9",
          "mkdir -p $prefix/rpmbuild",
          "echo \"branch name ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}\"",
          "docker run --env prefix=/root/install --volume $prefix/rpmbuild:/root/rpmbuild --volume $TRAVIS_BUILD_DIR:/root/bes --env GDAL_OPTION=\"$GDAL_OPTION\" --env DIST=\"el9\" --env LIBDAP_RPM_VERSION=\"$LIBDAP_RPM_VERSION\" --env BES_BUILD_NUMBER=\"$BES_BUILD_NUMBER\" --env AWS_ACCESS_KEY_ID=\"$AWS_ACCESS_KEY_ID\" --env AWS_SECRET_ACCESS_KEY=\"$AWS_SECRET_ACCESS_KEY\" opendap/rocky9_hyrax_builder:latest /root/bes/travis/build-rh9-rpm.sh"
        ]
      },
      {
        "stage": "build-and-package",
        "name": "Build bes docker image (RHEL8)",
        "script": [
          "export BES_BUILD=docker-rhel8",
          "echo \"branch name ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}\"",
          "export DOCKER_NAME=\"bes_rhel8\"",
          "export SNAPSHOT_IMAGE_TAG=\"opendap/${DOCKER_NAME}:snapshot\"",
          "export BASE_IMAGE=\"opendap/rocky8_hyrax_builder:latest\"",
          "export DIST=el8",
          "export OS=rocky8",
          "export BES_REPO_DIR=${TRAVIS_BUILD_DIR}",
          "source ${TRAVIS_BUILD_DIR}/travis/build-rhel-docker.sh"
        ]
      },
      {
        "stage": "build-and-package",
        "name": "dist",
        "script": [
          "export BES_BUILD=srcdist",
          "autoreconf --force --install --verbose",
          "./configure --disable-dependency-tracking --prefix=$prefix --with-dependencies=$prefix/deps $GDAL_OPTION --with-build=$BES_BUILD_NUMBER",
          "make dist -j7",
          "SOURCE_VERSION=$(cat bes_VERSION)",
          "mv bes-*.tar.gz bes-$SOURCE_VERSION.tar.gz",
          "cp bes-$SOURCE_VERSION.tar.gz bes-snapshot.tar.gz"
        ]
      },
      {
        "stage": "scan",
        "name": "scan bes",
        "script": [
          "export BES_BUILD=sonar-bes-framework",
          "autoreconf --force --install --verbose",
          "./configure --disable-dependency-tracking --prefix=$prefix --with-dependencies=$prefix/deps --enable-developer --enable-coverage",
          "build-wrapper-linux-x86-64 --out-dir bw-output make -j16",
          "sonar-scanner -Dproject.settings=sonar-bes-framework.properties -Dsonar.login=$SONAR_LOGIN",
          "curl -s https://sonarcloud.io/api/project_badges/quality_gate?project=opendap-bes | grep \"QUALITY GATE PASS\""
        ]
      },
      {
        "stage": "scan",
        "name": "scan bes-modules-1",
        "script": [
          "export BES_BUILD=sonar-bes-modules",
          "autoreconf --force --install --verbose",
          "./configure --disable-dependency-tracking --prefix=$prefix --with-dependencies=$prefix/deps --enable-developer  --enable-coverage",
          "build-wrapper-linux-x86-64 --out-dir bw-output make -j16",
          "sonar-scanner -Dproject.settings=sonar-bes-modules-1.properties -Dsonar.login=$SONAR_MODULES_LOGIN",
          "curl -s https://sonarcloud.io/api/project_badges/quality_gate?project=opendap-bes-modules | grep \"QUALITY GATE PASS\""
        ]
      },
      {
        "stage": "scan",
        "name": "scan bes-hdf-handlers",
        "script": [
          "export BES_BUILD=sonar-bes-hdf-handlers",
          "autoreconf --force --install --verbose",
          "./configure --disable-dependency-tracking --prefix=$prefix --with-dependencies=$prefix/deps --enable-developer  --enable-coverage",
          "build-wrapper-linux-x86-64 --out-dir bw-output make -j16",
          "sonar-scanner -Dproject.settings=sonar-bes-hdf-handlers.properties -Dsonar.login=$SONAR_SUBMODULES_LOGIN",
          "curl -s https://sonarcloud.io/api/project_badges/quality_gate?project=opendap-bes-submodules | grep \"QUALITY GATE PASS\""
        ]
      },
      {
        "stage": "hyrax-olfs-trigger",
        "name": "Hyrax OLFS Trigger",
        "script": [
          "export STAGE=hyrax-olfs",
          "echo $STAGE",
          "autoreconf --force --install --verbose",
          "./configure --disable-dependency-tracking --prefix=$prefix --with-dependencies=$prefix/deps --with-build=$BES_BUILD_NUMBER",
          "./travis/trigger-olfs-build.sh"
        ]
      }
    ]
  },
  "after_script": [
    "./travis/upload-test-results.sh"
  ],
  "before_deploy": [
    "export DEPLOY=\"S3\"",
    "mkdir -p $TRAVIS_BUILD_DIR/package;",
    "if test \"$BES_BUILD\" = \"srcdist\"; then cp bes-*.tar.gz $TRAVIS_BUILD_DIR/package; fi",
    "if test \"$BES_BUILD\" = \"rocky8\"; then ./travis/rpm-to-package-dir.sh \"el8\"; fi",
    "if test \"$BES_BUILD\" = \"rocky9\"; then ./travis/rpm-to-package-dir.sh \"el9\"; fi",
    "ls -l $TRAVIS_BUILD_DIR/package"
  ],
  "deploy": [
    {
      "provider": "s3",
      "access_key_id": "$AWS_ACCESS_KEY_ID",
      "secret_access_key": "$AWS_SECRET_ACCESS_KEY",
      "bucket": "opendap.travis.build",
      "skip_cleanup": true,
      "local_dir": "$TRAVIS_BUILD_DIR/package",
      "on": {
        "all_branches": true,
        "condition": [
          "$BES_BUILD =~ ^rocky8|rocky9|srcdist$"
        ]
      }
    },
    {
      "provider": "script",
      "script": "bash ${TRAVIS_BUILD_DIR}/travis/deploy-to-docker-hub.sh",
      "on": {
        "all_branches": true,
        "condition": [
          "$BES_BUILD =~ ^docker$"
        ]
      }
    }
  ]
}