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

[v2] Merge July 27th main into v2 feature branch #789

Merged
merged 71 commits into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
fa82d1a
[Automation] Update elastic stack version to 8.4.0-40cff009 for testi…
apmmachine Jun 15, 2022
9e5bb15
[Automation] Update elastic stack version to 8.4.0-5e6770b1 for testi…
apmmachine Jun 16, 2022
5f66839
Fix regression and use comma separated values (#560)
ph Jun 16, 2022
06ee1dd
Change in Jenkinsfile will trigger k8s run (#568)
ph Jun 16, 2022
86ca6f7
[Automation] Update elastic stack version to 8.4.0-da5a1c6d for testi…
apmmachine Jun 17, 2022
7b29dbc
Add `@metadata.input_id` and `@metadata.stream_id` when injecting str…
rdner Jun 17, 2022
b728dfe
Add filemod times to contents of diagnostics collect command (#570)
michel-laterman Jun 17, 2022
7db7406
[Automation] Update elastic stack version to 8.4.0-b13123ee for testi…
apmmachine Jun 20, 2022
d77a91e
Fix Agent upgrade 8.2->8.3 (#578)
aleksmaus Jun 20, 2022
e043f36
Update containerd (#577)
michel-laterman Jun 21, 2022
86ea452
[Automation] Update elastic stack version to 8.4.0-4fe26f2a for testi…
apmmachine Jun 22, 2022
c876ac4
Set explicit ExitTimeOut for MacOS agent launchd plist (#594)
aleksmaus Jun 23, 2022
89802c6
[Automation] Update elastic stack version to 8.4.0-2e32a640 for testi…
apmmachine Jun 23, 2022
11ce214
ci: enable build notifications as GitHub issues (#595)
v1v Jun 23, 2022
09d924f
status identifies failing component, fleet gateway may report degrade…
michel-laterman Jun 23, 2022
daa5c5f
[Automation] Update elastic stack version to 8.4.0-722a7d79 for testi…
apmmachine Jun 24, 2022
90a1f58
ci: enable flaky test detector (#605)
v1v Jun 24, 2022
79bb67e
[Automation] Update elastic stack version to 8.4.0-210dd487 for testi…
apmmachine Jun 27, 2022
f69d5b1
mergify: remove backport automation for non active branches (#615)
v1v Jun 27, 2022
43ba98d
chore: use elastic-agent profile to run the E2E tests (#610)
mdelapenya Jun 27, 2022
662a07a
[Automation] Update elastic stack version to 8.4.0-a6aa9f3b for testi…
apmmachine Jun 28, 2022
5c16e08
add macros pointing to new agent's repo and fix old macro calls (#458)
AndersonQ Jun 29, 2022
eb6fa02
Add mount of /etc/machine-id for managed Agent in k8s (#530)
daniel-almeida Jun 29, 2022
5f60fd0
Set hostPID=true for managed agent in k8s (#528)
daniel-almeida Jun 29, 2022
7a4fa6b
[Automation] Update elastic stack version to 8.4.0-86cc80f3 for testi…
apmmachine Jun 30, 2022
e194fb3
Update elastic-agent-libs version: includes restriction on default Ve…
narph Jun 30, 2022
ed9d75e
redact sensitive information in diagnostics collect command (#566)
AndersonQ Jun 30, 2022
94975cc
Support Cloudbeat regex input type (#638)
ofiriro3 Jun 30, 2022
121a4ad
Disable flaky test download test (#641)
ph Jun 30, 2022
319ea0a
[Automation] Update elastic stack version to 8.4.0-3d206b5d for testi…
apmmachine Jul 1, 2022
fab95b8
[Automation] Update elastic stack version to 8.4.0-3ad82aa8 for testi…
apmmachine Jul 4, 2022
acc91fc
jjbb: exclude allowed branches, tags and PRs (#658)
v1v Jul 4, 2022
f8ca007
Update elastic-agent-project-board.yml (#649)
jlind23 Jul 4, 2022
42b1a96
ci: fix labels that clashes with the Orka workers (#659)
v1v Jul 4, 2022
f873f36
[Automation] Update elastic stack version to 8.4.0-03bd6f3f for testi…
apmmachine Jul 5, 2022
bbd93ff
[Automation] Update elastic stack version to 8.4.0-533f1e30 for testi…
apmmachine Jul 6, 2022
6c2d91a
Osquerybeat: Fix osquerybeat is not running with logstash output (#674)
aleksmaus Jul 6, 2022
a18cfad
[Automation] Update elastic stack version to 8.4.0-d0a4da44 for testi…
apmmachine Jul 7, 2022
fe78819
[Automation] Update elastic stack version to 8.4.0-dd98ded4 for testi…
apmmachine Jul 11, 2022
d1d56a9
[Automation] Update elastic stack version to 8.4.0-164d9a10 for testi…
apmmachine Jul 12, 2022
bda217d
Add missing license headers (#711)
michel-laterman Jul 12, 2022
be33239
[Automation] Update elastic stack version to 8.4.0-00048b66 for testi…
apmmachine Jul 13, 2022
28721eb
Allow - in eql variable names (#710)
michel-laterman Jul 13, 2022
0560b46
Fix transpiler to allow : in dynamic variables. (#680)
michel-laterman Jul 13, 2022
4dcc16b
Fix for the filebeat spec file picking up packetbeat inputs (#700)
cmacknz Jul 14, 2022
f4d2b48
[Automation] Update elastic stack version to 8.4.0-3cd57abb for testi…
apmmachine Jul 15, 2022
a5351f9
[Automation] Update elastic stack version to 8.4.0-a324b98b for testi…
apmmachine Jul 18, 2022
c6cdfc0
ci: run on MacOS12 (#696)
v1v Jul 18, 2022
21c4812
[Automation] Update elastic stack version to 8.4.0-31315ca3 for testi…
apmmachine Jul 19, 2022
78019a9
fix typo on package command (#734)
belimawr Jul 19, 2022
e34e0e7
Allow / to be used in variable names (#718)
michel-laterman Jul 19, 2022
8ef98f1
Fix Elastic Agent non-fleet broken upgrade between 8.3.x releases (#701)
aleksmaus Jul 19, 2022
394033d
[Automation] Update elastic stack version to 8.4.0-31269fd2 for testi…
apmmachine Jul 20, 2022
97e6597
wrap errors and fix some docs typo and convention (#743)
AndersonQ Jul 20, 2022
b0e9623
automate the ironbank docker context generation (#679)
v1v Jul 20, 2022
f26b0eb
Update README.md
pierrehilbert Jul 20, 2022
d84b957
fix flaky (#730)
narph Jul 21, 2022
be3c48e
Add filestream ID on standalone kubernetes manifest (#742)
belimawr Jul 22, 2022
83c4fa2
Alter github action to run on different OSs (#769)
michel-laterman Jul 22, 2022
c05ce63
[Automation] Update elastic stack version to 8.4.0-d058e92f for testi…
apmmachine Jul 25, 2022
623fe82
elastic-agent manifests: add comments; add cloudnative team as a code…
tetianakravchenko Jul 25, 2022
56f2216
[Elastic-Agent] Added source uri reloading (#686)
michalpristas Jul 26, 2022
3e87782
Update will cleanup unneeded artifacts. (#752)
michel-laterman Jul 26, 2022
87f3798
ci: propagate e2e-testing errors (#695)
v1v Jul 27, 2022
e878103
[Release] add-backport-next (#784)
elasticmachine Jul 27, 2022
d525ae3
Merge branch 'main' into merge-main-jul27
blakerouse Jul 27, 2022
3f322de
Update go.sum.
blakerouse Jul 27, 2022
7283654
Merge branch 'feature-arch-v2' into merge-main-jul27
blakerouse Jul 27, 2022
7cf5063
Fix upgrade.
blakerouse Jul 27, 2022
366dd67
Fix the upgrade artifact reload.
blakerouse Jul 27, 2022
692b71e
Fix lint in coordinator.
blakerouse Jul 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pipeline {
dir("${BASE_DIR}"){
setEnvVar('ONLY_DOCS', isGitRegionMatch(patterns: [ '.*\\.(asciidoc|md)' ], shouldMatchAll: true).toString())
setEnvVar('PACKAGING_CHANGES', isGitRegionMatch(patterns: [ '(^dev-tools/packaging/.*|.ci/Jenkinsfile)' ], shouldMatchAll: false).toString())
setEnvVar('K8S_CHANGES', isGitRegionMatch(patterns: [ '(^deploy/kubernetes/.*|^version/docs/version.asciidoc)' ], shouldMatchAll: false).toString())
setEnvVar('K8S_CHANGES', isGitRegionMatch(patterns: [ '(^deploy/kubernetes/.*|^version/docs/version.asciidoc|.ci/Jenkinsfile)' ], shouldMatchAll: false).toString())
}
}
}
Expand Down Expand Up @@ -79,7 +79,7 @@ pipeline {
axes {
axis {
name 'PLATFORM'
values 'ubuntu-20.04 && immutable', 'aarch64', 'windows-2016 && windows-immutable', 'windows-2022 && windows-immutable', 'darwin && orka && x86_64'
values 'ubuntu-20.04 && immutable', 'aws && aarch64', 'windows-2016 && windows-immutable', 'windows-2022 && windows-immutable', 'macos12 && x86_64'
}
}
stages {
Expand Down Expand Up @@ -164,7 +164,7 @@ pipeline {
}
}
environment {
ARCH = "${PLATFORM.equals('aarch64') ? 'arm64' : 'amd64'}"
ARCH = "${PLATFORM.contains('aarch64') ? 'arm64' : 'amd64'}"
DEV = true
EXTERNAL = true
}
Expand All @@ -175,7 +175,7 @@ pipeline {
withMageEnv(){
dir("${BASE_DIR}"){
withPackageEnv("${PLATFORM}") {
cmd(label: 'Go package', script: 'mage package')
cmd(label: 'Go package', script: 'mage package ironbank')
uploadPackagesToGoogleBucket(
credentialsId: env.JOB_GCS_EXT_CREDENTIALS,
repo: env.REPO,
Expand Down Expand Up @@ -219,7 +219,7 @@ pipeline {
axes {
axis {
name 'K8S_VERSION'
values "v1.24.0, v1.23.6, v1.22.9, v1.21.12"
values "v1.24.0", "v1.23.6", "v1.22.9", "v1.21.12"
}
}
stages {
Expand Down Expand Up @@ -251,18 +251,23 @@ pipeline {
}
steps {
// TODO: what's the testMatrixFile to be used if any
runE2E(testMatrixFile: '',
runE2E(testMatrixFile: '.ci/.e2e-tests-for-elastic-agent.yaml',
beatVersion: "${env.BEAT_VERSION}-SNAPSHOT",
elasticAgentVersion: "${env.BEAT_VERSION}-SNAPSHOT",
gitHubCheckName: "e2e-tests",
gitHubCheckRepo: env.REPO,
gitHubCheckSha1: env.GIT_BASE_COMMIT)
gitHubCheckSha1: env.GIT_BASE_COMMIT,
propagate: true,
wait: true)
}
}
}
post {
cleanup {
notifyBuildResult(prComment: true)
notifyBuildResult(prComment: true,
analyzeFlakey: !isTag(), jobName: getFlakyJobName(withBranch: (isPR() ? env.CHANGE_TARGET : env.BRANCH_NAME)),
githubIssue: isBranch() && currentBuild.currentResult != "SUCCESS",
githubLabels: 'Team:Elastic-Agent-Control-Plane')
}
}
}
Expand All @@ -274,7 +279,7 @@ def isCodeCoverageEnabled() {

def withPackageEnv(platform, Closure body) {
if (isUnix()) {
if (platform.contains('macosx')) {
if (isDarwin()) {
withPackageDarwinEnv() {
body()
}
Expand Down
5 changes: 3 additions & 2 deletions .ci/jobs/elastic-agent-mbp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- job:
name: "elastic-agent/elastic-agent-mbp"
display-name: elastic-agent
description: "POC to isolate elastic agent from beats"
description: "Elastic agent"
project-type: multibranch
script-path: .ci/Jenkinsfile
scm:
Expand All @@ -12,6 +12,7 @@
discover-pr-forks-trust: permission
discover-pr-origin: merge-current
discover-tags: true
head-filter-regex: '(main|7\.17|8\.\d+|PR-.*|v\d+\.\d+\.\d+)'
notification-context: 'fleet-ci'
repo: elastic-agent
repo-owner: elastic
Expand Down Expand Up @@ -39,4 +40,4 @@
timeout: 100
timeout: '15'
use-author: true
wipe-workspace: 'True'
wipe-workspace: true
4 changes: 3 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Team responsable for Fleet Server
# Team responsible for Fleet Server
* @elastic/elastic-agent-control-plane

/deploy/kubernetes @elastic/obs-cloudnative-monitoring
2 changes: 1 addition & 1 deletion .github/workflows/elastic-agent-project-board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
headers: '{"GraphQL-Features": "projects_next_graphql"}'
query: |
mutation add_to_project($projectid:String!,$contentid:String!) {
mutation add_to_project($projectid:[ID!]!,$contentid:ID!) {
updateIssue(input: {id:$contentid, projectIds:$projectid}) {
clientMutationId
}
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,10 @@ jobs:
golangci:
strategy:
matrix:
include:
- GOOS: windows
- GOOS: linux
- GOOS: darwin
os: [ ubuntu-latest, macos-latest, windows-latest ]
name: lint
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Echo details
env:
GOOS: ${{ matrix.GOOS }}
run: echo Go GOOS=$GOOS

- uses: actions/checkout@v2

# Uses Go version from the repository.
Expand All @@ -38,8 +30,6 @@ jobs:
go-version: "${{ steps.goversion.outputs.version }}"

- name: golangci-lint
env:
GOOS: ${{ matrix.GOOS }}
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@ pkg/component/fake/fake

# VSCode
/.vscode

31 changes: 9 additions & 22 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,55 +181,42 @@ pull_request_rules:
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
- name: backport patches to 8.0 branch
conditions:
- merged
- label=backport-v8.0.0
actions:
backport:
assignees:
- "{{ author }}"
branches:
- "8.0"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
- name: backport patches to 8.1 branch
- name: backport patches to 8.2 branch
conditions:
- merged
- label=backport-v8.1.0
- label=backport-v8.2.0
actions:
backport:
assignees:
- "{{ author }}"
branches:
- "8.1"
- "8.2"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
- name: backport patches to 8.2 branch
- name: backport patches to 8.3 branch
conditions:
- merged
- label=backport-v8.2.0
- label=backport-v8.3.0
actions:
backport:
assignees:
- "{{ author }}"
branches:
- "8.2"
- "8.3"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
- name: backport patches to 8.3 branch
- name: backport patches to 8.4 branch
conditions:
- merged
- label=backport-v8.3.0
- label=backport-v8.4.0
actions:
backport:
assignees:
- "{{ author }}"
branches:
- "8.3"
- "8.4"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
Loading