Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

[7.13.x](backport #1171) fix: resolve issues in k8s-autodiscover test suite#1175

Closed
mergify[bot] wants to merge 1 commit into7.13.xfrom
mergify/bp/7.13.x/pr-1171
Closed

[7.13.x](backport #1171) fix: resolve issues in k8s-autodiscover test suite#1175
mergify[bot] wants to merge 1 commit into7.13.xfrom
mergify/bp/7.13.x/pr-1171

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented May 17, 2021

This is an automatic backport of pull request #1171 done by Mergify.
Cherry-pick of 9d505cc has failed:

On branch mergify/bp/7.13.x/pr-1171
Your branch is up to date with 'origin/7.13.x'.

You are currently cherry-picking commit 9d505cc6.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   e2e/_suites/kubernetes-autodiscover/autodiscover_test.go
	both modified:   internal/docker/docker.go

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

* chore: use timeout factor when tagging docker images

* fix: resolve alias version in k8s-autodiscover test suite

* fix: use common versions for k8s-autodiscover

(cherry picked from commit 9d505cc)

# Conflicts:
#	e2e/_suites/kubernetes-autodiscover/autodiscover_test.go
#	internal/docker/docker.go
@mergify mergify Bot added the conflicts There is a conflict in the backported pull request label May 17, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #1175 opened

  • Start Time: 2021-05-17T12:58:11.511+0000

  • Duration: 5 min 58 sec

  • Commit: 2fdd7f8

Test stats 🧪

Test Results
Failed 1
Passed 82
Skipped 0
Total 83

Trends 🧪

Image of Build Times

Image of Tests

Test errors 1

Expand to view the tests failures

Initializing / Pre-Submit / Sanity checks / golangcilint – pre_commit.lint
    Expand to view the error details

     error 
    

  • no stacktrace

Steps errors 2

Expand to view the steps failures

Build and test
  • Took 0 min 29 sec . View more details on here
  • Description: .ci/scripts/build-test.sh
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-05-17T13:01:23.341Z] Archiving artifacts script returned exit code 2

Log output

Expand to view the last 100 lines of log output

[2021-05-17T13:02:34.830Z]   Downloading PyYAML-5.4.1-cp36-cp36m-manylinux1_x86_64.whl (640 kB)
[2021-05-17T13:02:35.091Z] Collecting importlib-metadata
[2021-05-17T13:02:35.091Z]   Downloading importlib_metadata-4.0.1-py3-none-any.whl (16 kB)
[2021-05-17T13:02:35.091Z] Collecting toml
[2021-05-17T13:02:35.091Z]   Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
[2021-05-17T13:02:35.351Z] Collecting virtualenv>=20.0.8
[2021-05-17T13:02:35.351Z]   Downloading virtualenv-20.4.6-py2.py3-none-any.whl (7.2 MB)
[2021-05-17T13:02:35.611Z] Collecting nodeenv>=0.11.1
[2021-05-17T13:02:35.872Z]   Downloading nodeenv-1.6.0-py2.py3-none-any.whl (21 kB)
[2021-05-17T13:02:35.872Z] Collecting cfgv>=2.0.0
[2021-05-17T13:02:35.872Z]   Downloading cfgv-3.2.0-py2.py3-none-any.whl (7.3 kB)
[2021-05-17T13:02:35.872Z] Collecting importlib-resources
[2021-05-17T13:02:35.872Z]   Downloading importlib_resources-5.1.3-py3-none-any.whl (26 kB)
[2021-05-17T13:02:36.133Z] Collecting identify>=1.0.0
[2021-05-17T13:02:36.133Z]   Downloading identify-2.2.4-py2.py3-none-any.whl (98 kB)
[2021-05-17T13:02:36.133Z] Collecting filelock<4,>=3.0.0
[2021-05-17T13:02:36.133Z]   Downloading filelock-3.0.12-py3-none-any.whl (7.6 kB)
[2021-05-17T13:02:36.133Z] Collecting distlib<1,>=0.3.1
[2021-05-17T13:02:36.133Z]   Downloading distlib-0.3.1-py2.py3-none-any.whl (335 kB)
[2021-05-17T13:02:36.133Z] Collecting appdirs<2,>=1.4.3
[2021-05-17T13:02:36.133Z]   Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
[2021-05-17T13:02:36.394Z] Collecting six<2,>=1.9.0
[2021-05-17T13:02:36.394Z]   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
[2021-05-17T13:02:36.394Z] Collecting zipp>=0.5
[2021-05-17T13:02:36.394Z]   Downloading zipp-3.4.1-py3-none-any.whl (5.2 kB)
[2021-05-17T13:02:36.394Z] Collecting typing-extensions>=3.6.4
[2021-05-17T13:02:36.394Z]   Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
[2021-05-17T13:02:36.655Z] Installing collected packages: zipp, typing-extensions, six, importlib-resources, importlib-metadata, filelock, distlib, appdirs, virtualenv, toml, pyyaml, nodeenv, identify, cfgv, pre-commit
[2021-05-17T13:02:37.226Z] Successfully installed appdirs-1.4.4 cfgv-3.2.0 distlib-0.3.1 filelock-3.0.12 identify-2.2.4 importlib-metadata-4.0.1 importlib-resources-5.1.3 nodeenv-1.6.0 pre-commit-2.12.1 pyyaml-5.4.1 six-1.16.0 toml-0.10.2 typing-extensions-3.10.0.0 virtualenv-20.4.6 zipp-3.4.1
[2021-05-17T13:02:37.486Z] Downloading https://files.pythonhosted.org/packages/a4/e3/1f067de470e3a86875ed915438dc3bd781fb0346254f541190a09472b677/virtualenv-16.7.10.tar.gz
[2021-05-17T13:02:37.486Z] Done.
[2021-05-17T13:02:37.486Z] *******************************************************************************
[2021-05-17T13:02:37.486Z] Installing pre-commit to /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/bin/pre-commit
[2021-05-17T13:02:37.486Z] *******************************************************************************
[2021-05-17T13:02:37.898Z] + export PATH=/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/.gvm/versions/go1.15.9.linux.amd64/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/.ci/scripts
[2021-05-17T13:02:37.898Z] + pre-commit install --install-hooks
[2021-05-17T13:02:37.898Z] pre-commit installed at .git/hooks/pre-commit
[2021-05-17T13:02:37.898Z] [WARNING] The 'rev' field of repo 'git@github.com:elastic/apm-pipeline-library' appears to be a mutable reference (moving tag / branch).  Mutable references are never updated after first install and are not supported.  See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.  Hint: `pre-commit autoupdate` often fixes this.
[2021-05-17T13:02:37.898Z] [INFO] Initializing environment for git://github.com/pre-commit/pre-commit-hooks.
[2021-05-17T13:02:38.470Z] [INFO] Initializing environment for git://github.com/dnephin/pre-commit-golang.
[2021-05-17T13:02:38.730Z] [INFO] Initializing environment for git@github.com:elastic/apm-pipeline-library.
[2021-05-17T13:02:40.645Z] [INFO] Installing environment for git://github.com/pre-commit/pre-commit-hooks.
[2021-05-17T13:02:40.645Z] [INFO] Once installed this environment will be reused.
[2021-05-17T13:02:40.645Z] [INFO] This may take a few minutes...
[2021-05-17T13:02:46.297Z] + export PATH=/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/.gvm/versions/go1.15.9.linux.amd64/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/.ci/scripts
[2021-05-17T13:02:46.297Z] + set +e
[2021-05-17T13:02:46.297Z] + grep .ci/scripts
[2021-05-17T13:02:46.297Z] + find /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/.cache/pre-commit -type d -name scripts
[2021-05-17T13:02:46.297Z] + searchFile=/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/.cache/pre-commit/repoazebgpbe/.ci/scripts
[2021-05-17T13:02:46.297Z] + [ -e /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/.cache/pre-commit/repoazebgpbe/.ci/scripts ]
[2021-05-17T13:02:46.297Z] + export PATH=/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/.gvm/versions/go1.15.9.linux.amd64/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/bin:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/.ci/scripts:/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/.cache/pre-commit/repoazebgpbe/.ci/scripts
[2021-05-17T13:02:46.298Z] + set -e
[2021-05-17T13:02:46.298Z] + + git diff-tree --no-commit-id --name-only -r 2fdd7f81896f945ce9edc2b95b4c0c5bd5f11811
[2021-05-17T13:02:46.298Z] xargs pre-commit run --files
[2021-05-17T13:02:46.298Z] + tee pre-commit.out
[2021-05-17T13:02:46.298Z] [WARNING] The 'rev' field of repo 'git@github.com:elastic/apm-pipeline-library' appears to be a mutable reference (moving tag / branch).  Mutable references are never updated after first install and are not supported.  See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.  Hint: `pre-commit autoupdate` often fixes this.
[2021-05-17T13:02:46.559Z] Check for case conflicts.................................................Passed
[2021-05-17T13:02:46.559Z] Check that executables have shebangs.................(no files to check)Skipped
[2021-05-17T13:02:46.559Z] Check JSON...........................................(no files to check)Skipped
[2021-05-17T13:02:46.559Z] Check for merge conflicts................................................Passed
[2021-05-17T13:02:46.559Z] Check Yaml...........................................(no files to check)Skipped
[2021-05-17T13:02:46.559Z] Check Xml............................................(no files to check)Skipped
[2021-05-17T13:02:46.821Z] Fix End of Files.........................................................Passed
[2021-05-17T13:02:46.821Z] go fmt...................................................................Passed
[2021-05-17T13:02:46.821Z] go lint..................................................................Passed
[2021-05-17T13:02:46.821Z] Check files aren't using go's testing package........(no files to check)Skipped
[2021-05-17T13:03:04.940Z] golangci-lint............................................................Failed
[2021-05-17T13:03:04.940Z] - hook id: golangci-lint
[2021-05-17T13:03:04.940Z] - exit code: 3
[2021-05-17T13:03:04.940Z] 
[2021-05-17T13:03:04.940Z] level=warning msg="[runner] Can't run linter goanalysis_metalinter: S1009: failed prerequisites: [(inspect@github.com/elastic/e2e-testing/internal/docker [github.com/elastic/e2e-testing/internal/docker.test], isgenerated@github.com/elastic/e2e-testing/internal/docker [github.com/elastic/e2e-testing/internal/docker.test]): analysis skipped: errors in package: [/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/internal/docker/docker.go:406:1: expected statement, found '<<' /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/internal/docker/docker.go:407:12: function must be invoked in go statement /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/internal/docker/docker.go:412:73: illegal character U+0023 '#' /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/internal/docker/docker.go:413:12: function must be invoked in go statement /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/internal/docker/docker.go:439:2: expected declaration, found 'return']]"
[2021-05-17T13:03:04.940Z] level=error msg="Running error: S1009: failed prerequisites: [(inspect@github.com/elastic/e2e-testing/internal/docker [github.com/elastic/e2e-testing/internal/docker.test], isgenerated@github.com/elastic/e2e-testing/internal/docker [github.com/elastic/e2e-testing/internal/docker.test]): analysis skipped: errors in package: [/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/internal/docker/docker.go:406:1: expected statement, found '<<' /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/internal/docker/docker.go:407:12: function must be invoked in go statement /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/internal/docker/docker.go:412:73: illegal character U+0023 '#' /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/internal/docker/docker.go:413:12: function must be invoked in go statement /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175/src/github.com/elastic/e2e-testing/internal/docker/docker.go:439:2: expected declaration, found 'return']]"
[2021-05-17T13:03:04.940Z] 
[2021-05-17T13:03:04.940Z] check-bash-syntax....................................(no files to check)Skipped
[2021-05-17T13:03:04.940Z] check-jenkins-pipelines..............................(no files to check)Skipped
[2021-05-17T13:03:04.940Z] - hook id: check-jenkins-pipelines
[2021-05-17T13:03:04.940Z] check-unicode-non-breaking-spaces........................................Passed
[2021-05-17T13:03:04.940Z] remove-unicode-non-breaking-spaces.......................................Passed
[2021-05-17T13:03:04.941Z] check-en-dashes..........................................................Passed
[2021-05-17T13:03:04.941Z] remove-en-dashes.........................................................Passed
[2021-05-17T13:03:04.941Z] check-jjbb...........................................(no files to check)Skipped
[2021-05-17T13:03:04.941Z] - hook id: check-jjbb
[2021-05-17T13:03:04.941Z] check-gherkin-lint...................................(no files to check)Skipped
[2021-05-17T13:03:05.003Z] $ ssh-agent -k
[2021-05-17T13:03:05.008Z] unset SSH_AUTH_SOCK;
[2021-05-17T13:03:05.009Z] unset SSH_AGENT_PID;
[2021-05-17T13:03:05.009Z] echo Agent pid 4973 killed;
[2021-05-17T13:03:05.021Z] [ssh-agent] Stopped.
[2021-05-17T13:03:05.306Z] Archiving artifacts
[2021-05-17T13:03:05.874Z] Recording test results
[2021-05-17T13:03:06.816Z] [Checks API] No suitable checks publisher found.
[2021-05-17T13:03:08.419Z] Stage "Build Docs" skipped due to earlier failure(s)
[2021-05-17T13:03:08.506Z] Stage "End-To-End Tests" skipped due to earlier failure(s)
[2021-05-17T13:03:08.590Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-17T13:03:09.069Z] Running on Jenkins in /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1175
[2021-05-17T13:03:09.165Z] [INFO] getVaultSecret: Getting secrets
[2021-05-17T13:03:09.210Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-05-17T13:03:10.163Z] + chmod 755 generate-build-data.sh
[2021-05-17T13:03:10.163Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1175/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1175/runs/1 FAILURE 298380
[2021-05-17T13:03:10.163Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1175/runs/1/steps/?limit=10000 -o steps-info.json

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 1
Passed 82
Skipped 0
Total 83

Genuine test errors 1

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Initializing / Pre-Submit / Sanity checks / golangcilint – pre_commit.lint

@mdelapenya mdelapenya closed this May 17, 2021
@mergify mergify Bot deleted the mergify/bp/7.13.x/pr-1171 branch May 17, 2021 14:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

conflicts There is a conflict in the backported pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants