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

break: move from "pull-requests" to "commits" GCP bucket #866

Merged
merged 4 commits into from
Mar 11, 2021

Conversation

mdelapenya
Copy link
Contributor

@mdelapenya mdelapenya commented Mar 9, 2021

What does this PR do?

This PR removes all code using the pr- prefix, so that we are going to support triggering Beats builds (from PRs or branches) without adding the BEAT_VERSION. Instead we are going to pass the GITHUB_CHECK_SHA1, only.

For that reason, we will use the commits bucket instead of the pull-requests one, downloading and consuming the artifacts from the first bucket.

Why is it important?

Firstly, to fix errors on Beats PR: https://beats-ci.elastic.co/blue/organizations/jenkins/e2e-tests%2Fe2e-testing-mbp/detail/7.12.x/27/pipeline/223/ It seems the PR is not calculating the right filename, not resolving the alias and therefore failing in an horrible manner because the artifact cannot be fetched 🤦‍♀️

Second, simplicity: supporting less modes simplifies the codebase.

Finally, reproducibility. A PR could receive another commit without being notified. Using commits will allow us to couple e2e tests execution with exact code.

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)

Author's Checklist

  • [ ]

How to test this PR locally

  • Running the tests for a commit
SUITE="fleet" TAGS="fleet_mode_agent && reenroll" TIMEOUT_FACTOR=3 BEATS_USE_CI_SNAPSHOTS=true GITHUB_CHECK_SHA1=1784eb98467ecf57c75bc31c55bfb8f20a7ad4a8 LOG_LEVEL=TRACE DEVELOPER_MODE=true make -C e2e functional-test
  • Running the tests for a version
SUITE="fleet" TAGS="fleet_mode_agent && reenroll" TIMEOUT_FACTOR=3 LOG_LEVEL=TRACE DEVELOPER_MODE=true make -C e2e functional-test 

Related issues

Follow-ups

We must update the packaging job on Beats, to not pass the BEATS_VERSION variable, and use the one in the defined branch.

@mdelapenya mdelapenya self-assigned this Mar 9, 2021
@mdelapenya mdelapenya requested a review from a team March 9, 2021 19:08
@mdelapenya mdelapenya added breaking-change bug Something isn't working P1 Priority: urgent labels Mar 9, 2021
@elasticmachine
Copy link
Contributor

elasticmachine commented Mar 9, 2021

💚 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 #866 updated

  • Start Time: 2021-03-10T11:43:04.196+0000

  • Duration: 36 min 53 sec

  • Commit: 6295dff

Test stats 🧪

Test Results
Failed 0
Passed 129
Skipped 0
Total 129

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 129
Skipped 0
Total 129

@mdelapenya
Copy link
Contributor Author

jenkins run the tests

@mdelapenya mdelapenya marked this pull request as ready for review March 10, 2021 07:23
e2e/_suites/fleet/README.md Outdated Show resolved Hide resolved
@@ -204,7 +204,6 @@ func (i *DockerPackage) Preinstall() error {
e2e.Sleep(3 * time.Second)

// we need to tag the loaded image because its tag relates to the target branch,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ,

@mdelapenya
Copy link
Contributor Author

I think the failures will be fixed by #868

@mdelapenya mdelapenya merged commit 56f71c4 into elastic:master Mar 11, 2021
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Mar 11, 2021
* fix: use fallback version when using Git SHA commits

* break: move from "pull-requests" to "commits" GCP bucket

* chore: typos
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Mar 11, 2021
* fix: use fallback version when using Git SHA commits

* break: move from "pull-requests" to "commits" GCP bucket

* chore: typos
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Mar 11, 2021
* fix: use fallback version when using Git SHA commits

* break: move from "pull-requests" to "commits" GCP bucket

* chore: typos
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Mar 11, 2021
* fix: use fallback version when using Git SHA commits

* break: move from "pull-requests" to "commits" GCP bucket

* chore: typos
mdelapenya added a commit that referenced this pull request Mar 11, 2021
* fix: use fallback version when using Git SHA commits

* break: move from "pull-requests" to "commits" GCP bucket

* chore: typos
mdelapenya added a commit that referenced this pull request Mar 11, 2021
* fix: use fallback version when using Git SHA commits

* break: move from "pull-requests" to "commits" GCP bucket

* chore: typos
mdelapenya added a commit that referenced this pull request Mar 12, 2021
* fix: use fallback version when using Git SHA commits

* break: move from "pull-requests" to "commits" GCP bucket

* chore: typos
v1v added a commit to v1v/e2e-testing that referenced this pull request Mar 15, 2021
…hings

* upstream/master:
  [CI] tear down the workspace (elastic#885)
  docs: add Make as build system (elastic#886)
  fix: proper usage of step (elastic#883)
  feat: run most frequent flavours in the PR stage (elastic#873)
  break: move from "pull-requests" to "commits" GCP bucket (elastic#866)
  fix: use proper flags (elastic#868)
  feat: instrument Helm charts test suite (elastic#858)
@mdelapenya mdelapenya deleted the fix-alias branch June 28, 2021 07:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking-change bug Something isn't working P1 Priority: urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants