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

[metricbeat][pythonIntegTest] is not resilience when connection issues #21563

Closed
v1v opened this issue Oct 6, 2020 · 1 comment
Closed

[metricbeat][pythonIntegTest] is not resilience when connection issues #21563

v1v opened this issue Oct 6, 2020 · 1 comment
Labels
Stalled Team:Automation Label for the Observability productivity team

Comments

@v1v
Copy link
Member

v1v commented Oct 6, 2020

What

when running the integration tests if the docker environment cannot be pulled then the whole build fails.

Command

cd metricbeat
mage pythonIntegTest

Stacktrace

[2020-10-06T10:53:15.087Z] + mage pythonIntegTest
[2020-10-06T10:54:11.398Z] Generated fields.yml for metricbeat to /var/lib/jenkins/workspace/Beats_beats_master/src/github.com/elastic/beats/metricbeat/fields.yml
[2020-10-06T10:54:26.345Z] >> Building docker images
[2020-10-06T10:54:26.345Z] Building beat
[2020-10-06T10:54:58.493Z] Service 'beat' failed to build: The command '/bin/sh -c cd /usr/lib   && curl -sLo instantclient-basic-linux.zip https://download.oracle.com/otn_software/linux/instantclient/19600/instantclient-basic-linux.x64-19.6.0.0.0dbru.zip   && unzip instantclient-basic-linux.zip   && rm instantclient-basic-linux.zip' returned a non-zero code: 56
[2020-10-06T10:54:58.493Z] Error: running "docker-compose -p metricbeat_8_0_0_0dd24289fa-snapshot build --force-rm --pull" failed with exit code 1
script returned exit code 1

Actions

  • Add retry in the mage goal, see Docker build resiliance with a retry #21587
  • Decouple the prepare docker environment from the test execution, then having a specific goal only for that particular prepare docker environment will allow the CI/CD systems to retry a few times
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 6, 2020
@andresrc andresrc added the Team:Automation Label for the Observability productivity team label Oct 6, 2020
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 6, 2020
@botelastic
Copy link

botelastic bot commented Sep 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the Stalled label Sep 21, 2021
@botelastic botelastic bot closed this as completed Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stalled Team:Automation Label for the Observability productivity team
Projects
None yet
Development

No branches or pull requests

2 participants