-
Notifications
You must be signed in to change notification settings - Fork 458
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
[CI] Add weekly job to test packages with Ubuntu Elastic Agent docker image #10844
Changes from 31 commits
dc999f5
c5bd547
e10d784
aec9e31
24661e3
127d267
35f1535
dc7f622
f2042b6
17d1b7b
250ea83
2eb841f
deeb675
f6d1452
e9cd8b4
99e4ec1
5c2220e
44ab466
0835d91
d111acb
971c2cd
888a2c2
608e233
27ac181
95969c0
c6aba2f
980a890
e959100
d3d5002
cb736d6
8dbe594
e7c986b
68da185
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json | ||
name: integrations-schedule-weekly | ||
|
||
env: | ||
SETUP_GVM_VERSION: "v0.5.2" | ||
LINUX_AGENT_IMAGE: "golang:${GO_VERSION}" | ||
|
||
# The pipeline is triggered by the scheduler every week | ||
steps: | ||
- label: ":white_check_mark: Check go sources" | ||
key: "check" | ||
command: ".buildkite/scripts/check_sources.sh" | ||
agents: | ||
image: "${LINUX_AGENT_IMAGE}" | ||
cpu: "8" | ||
memory: "4G" | ||
|
||
- label: "Check integrations local stacks and Elastic Agent Ubuntu docker - Stack Version v8.16" | ||
trigger: "integrations" | ||
build: | ||
env: | ||
SERVERLESS: "false" | ||
FORCE_CHECK_ALL: "true" | ||
STACK_VERSION: 8.16.0-SNAPSHOT | ||
PUBLISH_COVERAGE_REPORTS: "false" | ||
ELASTIC_PACKAGE_DISABLE_ELASTIC_AGENT_WOLFI: "true" | ||
depends_on: | ||
- step: "check" | ||
allow_failure: false |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -43,8 +43,8 @@ sources: | |||
captureindex: 1 | ||||
|
||||
targets: | ||||
update-snapshot: | ||||
name: '[updatecli] Update latest snapshot to {{ source "latestSnapshot" }}' | ||||
update-snapshot-daily: | ||||
name: '[updatecli] [daily] Update latest snapshot to {{ source "latestSnapshot" }}' | ||||
kind: file | ||||
sourceid: latestSnapshot | ||||
scmid: default | ||||
|
@@ -53,12 +53,34 @@ targets: | |||
matchpattern: '(STACK_VERSION:) 8\.[^\s]*\.[^\s]*' | ||||
replacepattern: '$1 {{ source "latestSnapshot" }}' | ||||
|
||||
update-snapshot-label: | ||||
name: '[updatecli] Update latest snapshot label step to {{ source "latestSnapshotMajorMinor" }}' | ||||
update-snapshot-label-daily: | ||||
name: '[updatecli] [daily] Update latest snapshot label step to {{ source "latestSnapshotMajorMinor" }}' | ||||
kind: file | ||||
sourceid: latestSnapshotMajorMinor | ||||
scmid: default | ||||
spec: | ||||
file: '.buildkite/pipeline.schedule-daily.yml' | ||||
matchpattern: '(Stack Version) v8\.\d+"' | ||||
replacepattern: 'Stack Version v{{ source "latestSnapshotMajorMinor" }}"' | ||||
|
||||
## TODO: Looks like these targets are running with the contents from main branch | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Umm, it is configured to trigger also on pull requests and I remember it took the changes 🤔
But maybe this only works for existing targets? Or for branches pushed to upstream repository? Or it could be related to the conflicting names, now they are duplicated as mentioned in other comments. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When I was testing this, the names where For that commit, that this line exists in main branch the github action was working successfully. The other commits where the expected line did not exist yet in main branch, github actions were failing. Maybe it is related to not create the branch in the upstream repository, I did not test that. |
||||
## Uncomment this target once this code is merged | ||||
#update-snapshot-daily: | ||||
mrodm marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
# name: '[updatecli] [weekly] Update latest snapshot to {{ source "latestSnapshot" }}' | ||||
# kind: file | ||||
# sourceid: latestSnapshot | ||||
# scmid: default | ||||
# spec: | ||||
# file: '.buildkite/pipeline.schedule-weekly.yml' | ||||
# matchpattern: '(STACK_VERSION:) 8\.[^\s]*\.[^\s]*' | ||||
# replacepattern: '$1 {{ source "latestSnapshot" }}' | ||||
|
||||
#update-snapshot-label-daily: | ||||
mrodm marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
# name: '[updatecli] [weekly] Update latest snapshot label step to {{ source "latestSnapshotMajorMinor" }}' | ||||
# kind: file | ||||
# sourceid: latestSnapshotMajorMinor | ||||
# scmid: default | ||||
# spec: | ||||
# file: '.buildkite/pipeline.schedule-weekly.yml' | ||||
# matchpattern: '(Stack Version) v8\.\d+"' | ||||
# replacepattern: 'Stack Version v{{ source "latestSnapshotMajorMinor" }}"' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,57 @@ spec: | |
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Resource | ||
metadata: | ||
name: pipeline-integrations-schedule-weekly | ||
description: 'Weekly pipeline for the Integrations project' | ||
links: | ||
- title: Pipeline | ||
url: https://buildkite.com/elastic/integrations-schedule-weekly | ||
|
||
spec: | ||
type: buildkite-pipeline | ||
owner: group:ingest-fp | ||
system: buildkite | ||
implementation: | ||
apiVersion: buildkite.elastic.dev/v1 | ||
kind: Pipeline | ||
metadata: | ||
name: integrations-schedule-weekly | ||
description: 'Weekly pipeline for the Integrations project' | ||
spec: | ||
pipeline_file: ".buildkite/pipeline.schedule-weekly.yml" | ||
schedules: | ||
main_weekly: | ||
branch: "main" | ||
cronline: "30 3 * * 1" | ||
message: "Run the weekly jobs" | ||
Comment on lines
+142
to
+146
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should these be commented until the wolfi is used ? or should we already running this job weekly ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should already run this weekly to capture any early bug. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This pipeline will run the system tests using the Ubuntu Elastic Agent docker image. So it would be running for now the same tests as the daily builds. This will change once the upcoming elastic-package release is merged into this repository. From there, packages will be tested with the wolfi images in the daily builds. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I guess we can wait, but it would be good to have it running at least once before wolfi images are available, to have a base to compare with. Though the dailies can be this base too. |
||
provider_settings: | ||
trigger_mode: none # don't trigger jobs from github activity | ||
build_pull_request_forks: false | ||
build_pull_requests: true | ||
build_tags: false | ||
filter_enabled: true | ||
filter_condition: >- | ||
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null && build.source == 'api') | ||
repository: elastic/integrations | ||
cancel_intermediate_builds: true | ||
cancel_intermediate_builds_branch_filter: '!main' | ||
skip_intermediate_builds: true | ||
skip_intermediate_builds_branch_filter: '!main' | ||
env: | ||
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' | ||
SLACK_NOTIFICATIONS_CHANNEL: '#ingest-notifications' | ||
SLACK_NOTIFICATIONS_ALL_BRANCHES: 'true' | ||
SLACK_NOTIFICATIONS_ON_SUCCESS: 'true' | ||
teams: | ||
ingest-fp: | ||
access_level: MANAGE_BUILD_AND_READ | ||
everyone: | ||
access_level: READ_ONLY | ||
--- | ||
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Resource | ||
metadata: | ||
name: pipeline-integrations-serverless | ||
description: 'Pipeline for the Integrations project in serverless' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be uncommented in a following PR.