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

fix: check if kibana version is a commit#1047

Merged
adam-stokes merged 1 commit intoelastic:masterfrom
mdelapenya:is-commit
Apr 16, 2021
Merged

fix: check if kibana version is a commit#1047
adam-stokes merged 1 commit intoelastic:masterfrom
mdelapenya:is-commit

Conversation

@mdelapenya
Copy link
Copy Markdown
Contributor

@mdelapenya mdelapenya commented Apr 15, 2021

What does this PR do?

It adds a function to verify if a given string matches the commit format, which is driven by the \b[0-9a-f]{5,40}\b regexp.

This new function will be used to determine which docker namespace to use when pulling the docker image for Kibana

Why is it important?

If the version is a sha1, which happens when triggered by a Kibana PR, then uses the kibana namespace instead of the observability-ci. See https://beats-ci.elastic.co/blue/organizations/jenkins/e2e-tests%2Fe2e-testing-mbp/detail/master/720/pipeline/#step-401-log-83

Screenshot 2021-04-15 at 21 50 51

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have run the Unit tests for the CLI, and they are passing locally
  • I have run the End-2-End tests for the suite I'm working on, and they are passing locally
  • I have noticed new Go dependencies (run make notice in the proper directory)

@mdelapenya mdelapenya self-assigned this Apr 15, 2021
@mdelapenya mdelapenya requested a review from a team April 15, 2021 19:14
@mdelapenya mdelapenya marked this pull request as ready for review April 15, 2021 19:14
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

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 #1047 opened

  • Start Time: 2021-04-15T19:14:19.917+0000

  • Duration: 21 min 27 sec

  • Commit: 467caa7

Test stats 🧪

Test Results
Failed 0
Passed 144
Skipped 0
Total 144

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 144
Skipped 0
Total 144

@adam-stokes adam-stokes merged commit 05ab18f into elastic:master Apr 16, 2021
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 19, 2021
* master:
  fix: check if kibana version is a commit (elastic#1047)
  fix: incorrect variable name (elastic#1046)
  fix: typo in parameters (elastic#1045)
  chore: add debug info for the payload (elastic#1044)
  chore: add debug traces for the webhook payload (elastic#1043)
  fix: wrong interpolation (elastic#1042)
  Update Elastic Agent to not use Kibana (elastic#1036)
  fix: apply X version for non-master branches (elastic#1037)
  fix: add NodeJS to PATH (elastic#1035)
  fix: use an agent when building kibana (elastic#1030)
  fix(jjb): use a branch that exists (elastic#1029)
  remove uninstall step (elastic#1017)
  fix: delay checking stale agent version until it's used (elastic#1016)
  fix: use same JJB than in custom kibana (elastic#1010)
  chore: simplify PR template (elastic#1011)
  feat: support passing KIBANA_VERSION (elastic#905)
  [mergify] assign the original author (elastic#1009)
mergify bot pushed a commit that referenced this pull request Apr 22, 2021
(cherry picked from commit 05ab18f)

# Conflicts:
#	e2e/_suites/fleet/ingest_manager_test.go
mergify bot pushed a commit that referenced this pull request Apr 22, 2021
mergify bot pushed a commit that referenced this pull request Apr 22, 2021
mdelapenya added a commit that referenced this pull request Apr 22, 2021
* fix: check if kibana version is a commit (#1047)

(cherry picked from commit 05ab18f)

# Conflicts:
#	e2e/_suites/fleet/ingest_manager_test.go

* fix: resolve conflicts

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya added a commit that referenced this pull request Apr 22, 2021
(cherry picked from commit 05ab18f)

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya added a commit that referenced this pull request Apr 22, 2021
(cherry picked from commit 05ab18f)

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
@mdelapenya mdelapenya deleted the is-commit branch April 22, 2021 08:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants