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

Proposing changes to patch this base worker image #672

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

adding go updates

13e9427
Select commit
Loading
Failed to load commit list.
Open

Proposing changes to patch this base worker image #672

adding go updates
13e9427
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request failed May 16, 2024 in 4m 58s

Build Failed

The build failed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #672 Proposing changes to patch this base worker image.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has four jobs, running in parallel.

Stage 1: test

This stage failed.

Job Go ENV OS State
4583.1 lint 1.17.x AMQP_URI="amqp://" Linux failed
4583.2 linux 1.17.x AMQP_URI="amqp://" Linux failed
4583.3 crossbuild 1.17.x AMQP_URI="amqp://" Linux failed
4583.4 http-job-test 1.17.x AMQP_URI="amqp://" Linux failed

Build Configuration

Build Option Setting
Language Go
Operating System Linux (Xenial)
Go Version 1.17.x
Build Configuration
{
  "language": "go",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "go": [
    "1.17.x"
  ],
  "git": {
    "depth": 10
  },
  "branches": {
    "only": [
      "master"
    ]
  },
  "cache": {
    "directories": [
      "vendor",
      "$HOME/.cache/go-build",
      "$HOME/gopath/bin",
      "$HOME/gopath/pkg/mod"
    ]
  },
  "services": [
    "rabbitmq",
    "docker",
    "redis"
  ],
  "env": [
    "global={:AMQP_URI=>\"\\\"amqp://\\\"\"}={:GOPATH=>\"\\\"$HOME/gopath\\\"\"}={:PATH=>\"\\\"bin:$HOME/gopath/bin:$HOME/bin:$PATH\\\"\"}={:CHECKOUT_ROOT=>\"\\\"$HOME/gopath/src/github.com/travis-ci/worker\\\"\"}={:GO15VENDOREXPERIMENT=>\"'1'\"}={:REDIS_URL=>\"\\\"redis://\\\"\"}"
  ],
  "stages": [
    {
      "name": "test",
      "if": "(type = push OR type = pull_request) AND branch = master"
    }
  ],
  "before_cache": [
    "make clean"
  ],
  "jobs": {
    "include": [
      {
        "stage": "test",
        "name": "lint",
        "script": [
          "make deps",
          "make lintall"
        ]
      },
      {
        "stage": "test",
        "name": "linux",
        "script": [
          "make deps",
          "GO111MODULE=on make build",
          "mkdir -p build/linux/amd64",
          "cp ${GOPATH%%:*}/bin/travis-worker build/linux/amd64",
          "make test-no-cover",
          "make test-cover",
          "make smoke"
        ],
        "addons": {
          "apt": {
            "packages": [
              "rabbitmq-server"
            ]
          },
          "artifacts": {
            "paths": [
              "./build/linux/amd64/travis-worker"
            ],
            "target_paths": [
              "travis-ci/worker/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER",
              "travis-ci/worker/$(git describe --always --dirty --tags)",
              "travis-ci/worker/$TRAVIS_BRANCH"
            ]
          }
        }
      },
      {
        "stage": "test",
        "name": "crossbuild",
        "script": [
          "GO111MODULE=on make build/darwin/amd64/travis-worker"
        ],
        "addons": {
          "artifacts": {
            "paths": [
              "./build/darwin/amd64/travis-worker"
            ],
            "target_paths": [
              "travis-ci/worker/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER",
              "travis-ci/worker/$(git describe --always --dirty --tags)",
              "travis-ci/worker/$TRAVIS_BRANCH"
            ]
          }
        }
      },
      {
        "stage": "test",
        "name": "docker",
        "if": "type != 'pull_request' && env(VAULT_PASS) is present && env(VAULT_USERNAME) is present",
        "script": [
          "vault login --no-print -method=userpass username=$VAULT_USERNAME password=$VAULT_PASS",
          "vault kv get -field=secret gcp/gcr-sa-key > /tmp/gcr_key.json;",
          "gcloud -q auth activate-service-account --key-file /tmp/gcr_key.json;",
          "gcloud -q config set project ${GCE_PROJECT}",
          "gcloud auth configure-docker",
          "make docker-build",
          "make docker-push"
        ],
        "addons": {
          "snaps": [
            {
              "confinement": "classic",
              "name": "google-cloud-sdk"
            },
            {
              "name": "vault"
            }
          ],
          "apt": {
            "update": true,
            "packages": [
              "docker-ce"
            ]
          }
        }
      },
      {
        "stage": "test",
        "name": "http-job-test",
        "script": [
          "GO111MODULE=on make build",
          "mkdir -p build/linux/amd64",
          "cp ${GOPATH%%:*}/bin/travis-worker build/linux/amd64",
          "make http-job-test"
        ]
      }
    ]
  }
}