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

chore: 7.17 backports #2187

Merged
merged 8 commits into from
Feb 28, 2022
Merged

chore: 7.17 backports #2187

merged 8 commits into from
Feb 28, 2022

Conversation

mdelapenya
Copy link
Contributor

@mdelapenya mdelapenya commented Feb 28, 2022

What does this PR do?

Backport of

Why is it important?

Keep 7.17 branch up-to-date

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 (make unit-test), 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)

Related issues

Other concerns

I partially backported #1628, as it contained the seed for the /pkg package, which is extensively modified by #2172

v1v and others added 7 commits February 28, 2022 20:07
* chore: define variable for BeatsLocalPath

* fix: update path initialisation in unit tests

* chore: pass inline env vars to commands

Co-authored-by: Victor Martinez <[email protected]>

Co-authored-by: Victor Martinez <[email protected]>
* chore: copy internal's version files into the exported pkg public package

* chore: run unit tests from top-level goal

* chore: use public package instead of the internal one

* chore: remove old internal files for habdling downloads

* fix: update missing references
…1984)

* update func

* fix path

* work on download

* small fix

* remove test

* add sha to google

* fix typo

* add comment
…elastic#2172)

* feat: support for the new bucket structure

* feat: calculate bucket URLs using resolvers

* chore: support for legacy Beats

Old PRs needs to be tested and the binaries could not exist in the new layout

* chore: support looking up the bucket in up-to 3 locations

1. new project layout
2. new beats layout
3. legacy beats layout

* chore: simplify boolean logic

* fix: pass worker environment for versions to the VMs

* fix: predefine kibana version

* fix: remove extra char

* fix: remove extra char

* chore: log resolvers

* chore: use new project method when fetching artifacts

* fix: pass stack version to stack deployment

* fix: use artifact to check for ubi8 variant

* chore: improve logs in resolvers

* fix: apply variants to project resolver

Ubi8 is a valid variant for elastic-agent

* chore: use Stack version for the dependant beats

In the running-on-top-of-beats feature file, the code installs some Beats
and we do not want to use the given SHA, because elastic-agent now lives
in a separate repo, therefore they do not share commit SHAs

* fix: use fleet-ci bucket for elastic-agent and fleet-server

* chore: look up both CI buckets

* chore: make useCISnapshots configurable on downloads

* chore: background processes should not use CI snapshots

* feat: separate elastic-agent version from beats version

* chore: extract useCISnapshots to a function

* chore: use Github_Check_Repo to identify where the Git commit lives

* fix: k8s-autodiscover lives in both worlds

* fix: missing package

* fix: use snapshot version in k8s-autodiscover
@mdelapenya mdelapenya added the backport-skip Skip notification from the automated backport with mergify label Feb 28, 2022
@mdelapenya mdelapenya self-assigned this Feb 28, 2022
@mdelapenya mdelapenya requested a review from a team February 28, 2022 20:00
@mdelapenya mdelapenya changed the title chore: backports chore: 7.17 backports Feb 28, 2022
@elasticmachine
Copy link
Contributor

elasticmachine commented Feb 28, 2022

💚 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 preview

Expand to view the summary

Build stats

  • Start Time: 2022-02-28T20:49:20.029+0000

  • Duration: 50 min 32 sec

Test stats 🧪

Test Results
Failed 0
Passed 272
Skipped 0
Total 272

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@mdelapenya mdelapenya merged commit 9884dcd into elastic:7.17 Feb 28, 2022
@mdelapenya mdelapenya deleted the 7.17-backports branch March 9, 2022 06:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport-skip Skip notification from the automated backport with mergify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants