Skip to content

Commit 5e37a9a

Browse files
committed
Merge branch 'main' of github.com:grafana/alloy into secret-filter-fuzz-testing
Remove our CHANGELOG to avoid conflicts for the time being
2 parents 03b6346 + 4c8b9e1 commit 5e37a9a

File tree

299 files changed

+13994
-5086
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+13994
-5086
lines changed

.drone/drone.jsonnet

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ local pipelines = import './pipelines.jsonnet';
44
(import 'pipelines/check_containers.jsonnet') +
55
(import 'pipelines/crosscompile.jsonnet') +
66
(import 'pipelines/publish.jsonnet') +
7-
(import 'pipelines/test_packages.jsonnet') +
87
(import 'util/secrets.jsonnet').asList

.drone/drone.yml

Lines changed: 1 addition & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -287,92 +287,6 @@ trigger:
287287
type: docker
288288
---
289289
kind: pipeline
290-
name: Publish Linux alloy-devel container
291-
platform:
292-
arch: amd64
293-
os: linux
294-
steps:
295-
- commands:
296-
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
297-
failure: ignore
298-
image: grafana/alloy-build-image:v0.1.8
299-
name: Configure QEMU
300-
volumes:
301-
- name: docker
302-
path: /var/run/docker.sock
303-
- commands:
304-
- mkdir -p $HOME/.docker
305-
- printenv GCR_CREDS > $HOME/.docker/config.json
306-
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
307-
- docker buildx create --name multiarch-alloy-alloy-devel-${DRONE_COMMIT_SHA} --driver
308-
docker-container --use
309-
- ./tools/ci/docker-containers alloy-devel
310-
- docker buildx rm multiarch-alloy-alloy-devel-${DRONE_COMMIT_SHA}
311-
environment:
312-
DOCKER_LOGIN:
313-
from_secret: docker_login
314-
DOCKER_PASSWORD:
315-
from_secret: docker_password
316-
GCR_CREDS:
317-
from_secret: gcr_admin
318-
image: grafana/alloy-build-image:v0.1.8
319-
name: Publish container
320-
volumes:
321-
- name: docker
322-
path: /var/run/docker.sock
323-
trigger:
324-
ref:
325-
- refs/heads/main
326-
type: docker
327-
volumes:
328-
- host:
329-
path: /var/run/docker.sock
330-
name: docker
331-
---
332-
kind: pipeline
333-
name: Publish Linux alloy-devel-boringcrypto container
334-
platform:
335-
arch: amd64
336-
os: linux
337-
steps:
338-
- commands:
339-
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
340-
failure: ignore
341-
image: grafana/alloy-build-image:v0.1.8
342-
name: Configure QEMU
343-
volumes:
344-
- name: docker
345-
path: /var/run/docker.sock
346-
- commands:
347-
- mkdir -p $HOME/.docker
348-
- printenv GCR_CREDS > $HOME/.docker/config.json
349-
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
350-
- docker buildx create --name multiarch-alloy-alloy-devel-boringcrypto-${DRONE_COMMIT_SHA}
351-
--driver docker-container --use
352-
- ./tools/ci/docker-containers alloy-devel-boringcrypto
353-
- docker buildx rm multiarch-alloy-alloy-devel-boringcrypto-${DRONE_COMMIT_SHA}
354-
environment:
355-
DOCKER_LOGIN:
356-
from_secret: docker_login
357-
DOCKER_PASSWORD:
358-
from_secret: docker_password
359-
GCR_CREDS:
360-
from_secret: gcr_admin
361-
image: grafana/alloy-build-image:v0.1.8
362-
name: Publish container
363-
volumes:
364-
- name: docker
365-
path: /var/run/docker.sock
366-
trigger:
367-
ref:
368-
- refs/heads/main
369-
type: docker
370-
volumes:
371-
- host:
372-
path: /var/run/docker.sock
373-
name: docker
374-
---
375-
kind: pipeline
376290
name: Publish Windows alloy-devel container
377291
platform:
378292
arch: amd64
@@ -527,53 +441,6 @@ volumes:
527441
name: docker
528442
---
529443
depends_on:
530-
- Publish Linux alloy-devel container
531-
- Publish Linux alloy-devel-boringcrypto container
532-
image_pull_secrets:
533-
- dockerconfigjson_gar
534-
kind: pipeline
535-
name: Deploy to deployment_tools
536-
platform:
537-
arch: amd64
538-
os: linux
539-
steps:
540-
- commands:
541-
- apk add --no-cache bash git
542-
- echo "$(bash ./tools/image-tag-docker)" > .tag-only
543-
- echo "grafana/alloy-dev:$(bash ./tools/image-tag-docker)" > .image-tag
544-
image: alpine
545-
name: Create .image-tag
546-
- image: us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/updater
547-
name: Update deployment_tools
548-
settings:
549-
config_json: |
550-
{
551-
"git_committer_name": "updater-for-ci[bot]",
552-
"git_author_name": "updater-for-ci[bot]",
553-
"git_committer_email": "119986603+updater-for-ci[bot]@users.noreply.github.com",
554-
"git_author_email": "119986603+updater-for-ci[bot]@users.noreply.github.com",
555-
"destination_branch": "master",
556-
"repo_name": "deployment_tools",
557-
"update_jsonnet_attribute_configs": [
558-
{
559-
"file_path": "ksonnet/lib/alloy/waves/alloy.libsonnet",
560-
"jsonnet_key": "dev_canary",
561-
"jsonnet_value_file": ".image-tag"
562-
}
563-
]
564-
}
565-
github_app_id:
566-
from_secret: updater_app_id
567-
github_app_installation_id:
568-
from_secret: updater_app_installation_id
569-
github_app_private_key:
570-
from_secret: updater_private_key
571-
trigger:
572-
ref:
573-
- refs/heads/main
574-
type: docker
575-
---
576-
depends_on:
577444
- Publish Linux alloy container
578445
- Publish Linux alloy-boringcrypto container
579446
- Publish Windows alloy container
@@ -627,34 +494,6 @@ volumes:
627494
path: /var/run/docker.sock
628495
name: docker
629496
---
630-
kind: pipeline
631-
name: Test Linux system packages
632-
platform:
633-
arch: amd64
634-
os: linux
635-
steps:
636-
- commands:
637-
- DOCKER_OPTS="" make dist/alloy-linux-amd64
638-
- DOCKER_OPTS="" make test-packages
639-
image: grafana/alloy-build-image:v0.1.8
640-
name: Test Linux system packages
641-
volumes:
642-
- name: docker
643-
path: /var/run/docker.sock
644-
trigger:
645-
paths:
646-
- packaging/**
647-
- internal/tools/packaging_test/**
648-
- Makefile
649-
- tools/make/*.mk
650-
ref:
651-
- refs/heads/main
652-
type: docker
653-
volumes:
654-
- host:
655-
path: /var/run/docker.sock
656-
name: docker
657-
---
658497
get:
659498
name: app-id
660499
path: infra/data/ci/agent/githubapp
@@ -740,6 +579,6 @@ kind: secret
740579
name: updater_private_key
741580
---
742581
kind: signature
743-
hmac: cf3043f3104be4dd320c4cd79c5e80802dc3b03743852df4fd98ffd981ae146e
582+
hmac: 26b5613cbd5e5cd42656c10c372d44dc93af565ec2ae212d3b27c2fe366c6aeb
744583

745584
...

.drone/pipelines/publish.jsonnet

Lines changed: 1 addition & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -14,56 +14,6 @@ local windows_containers = [
1414
{ devel: 'alloy-devel', release: 'alloy' },
1515
];
1616

17-
local linux_containers_dev_jobs = std.map(function(container) (
18-
pipelines.linux('Publish Linux %s container' % container.devel) {
19-
trigger: {
20-
ref: ['refs/heads/main'],
21-
},
22-
steps: [{
23-
// We only need to run this once per machine, so it's OK if it fails. It
24-
// is also likely to fail when run in parallel on the same machine.
25-
name: 'Configure QEMU',
26-
image: build_image.linux,
27-
failure: 'ignore',
28-
volumes: [{
29-
name: 'docker',
30-
path: '/var/run/docker.sock',
31-
}],
32-
commands: [
33-
'docker run --rm --privileged multiarch/qemu-user-static --reset -p yes',
34-
],
35-
}, {
36-
name: 'Publish container',
37-
image: build_image.linux,
38-
volumes: [{
39-
name: 'docker',
40-
path: '/var/run/docker.sock',
41-
}],
42-
environment: {
43-
DOCKER_LOGIN: secrets.docker_login.fromSecret,
44-
DOCKER_PASSWORD: secrets.docker_password.fromSecret,
45-
GCR_CREDS: secrets.gcr_admin.fromSecret,
46-
},
47-
commands: [
48-
'mkdir -p $HOME/.docker',
49-
'printenv GCR_CREDS > $HOME/.docker/config.json',
50-
'docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD',
51-
52-
// Create a buildx worker for our cross platform builds.
53-
'docker buildx create --name multiarch-alloy-%s-${DRONE_COMMIT_SHA} --driver docker-container --use' % container.devel,
54-
55-
'./tools/ci/docker-containers %s' % container.devel,
56-
57-
'docker buildx rm multiarch-alloy-%s-${DRONE_COMMIT_SHA}' % container.devel,
58-
],
59-
}],
60-
volumes: [{
61-
name: 'docker',
62-
host: { path: '/var/run/docker.sock' },
63-
}],
64-
}
65-
), linux_containers);
66-
6717
local windows_containers_dev_jobs = std.map(function(container) (
6818
pipelines.windows('Publish Windows %s container' % container.devel) {
6919
trigger: {
@@ -177,52 +127,8 @@ local windows_containers_jobs = std.map(function(container) (
177127
}
178128
), windows_containers);
179129

180-
linux_containers_dev_jobs + windows_containers_dev_jobs +
130+
windows_containers_dev_jobs +
181131
linux_containers_jobs + windows_containers_jobs + [
182-
pipelines.linux('Deploy to deployment_tools') {
183-
trigger: {
184-
ref: ['refs/heads/main'],
185-
},
186-
image_pull_secrets: ['dockerconfigjson_gar'],
187-
steps: [
188-
{
189-
name: 'Create .image-tag',
190-
image: 'alpine',
191-
commands: [
192-
'apk add --no-cache bash git',
193-
'echo "$(bash ./tools/image-tag-docker)" > .tag-only',
194-
'echo "grafana/alloy-dev:$(bash ./tools/image-tag-docker)" > .image-tag',
195-
],
196-
},
197-
{
198-
name: 'Update deployment_tools',
199-
image: 'us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/updater',
200-
settings: {
201-
config_json: |||
202-
{
203-
"git_committer_name": "updater-for-ci[bot]",
204-
"git_author_name": "updater-for-ci[bot]",
205-
"git_committer_email": "119986603+updater-for-ci[bot]@users.noreply.github.com",
206-
"git_author_email": "119986603+updater-for-ci[bot]@users.noreply.github.com",
207-
"destination_branch": "master",
208-
"repo_name": "deployment_tools",
209-
"update_jsonnet_attribute_configs": [
210-
{
211-
"file_path": "ksonnet/lib/alloy/waves/alloy.libsonnet",
212-
"jsonnet_key": "dev_canary",
213-
"jsonnet_value_file": ".image-tag"
214-
}
215-
]
216-
}
217-
|||,
218-
github_app_id: secrets.updater_app_id.fromSecret,
219-
github_app_installation_id: secrets.updater_app_installation_id.fromSecret,
220-
github_app_private_key: secrets.updater_private_key.fromSecret,
221-
},
222-
},
223-
],
224-
depends_on: job_names(linux_containers_dev_jobs),
225-
},
226132

227133
pipelines.linux('Publish release') {
228134
trigger: {

.drone/pipelines/test_packages.jsonnet

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/create_build_image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
linux_build_image:
1313
name: Create a Linux build image
1414
runs-on:
15-
labels: github-hosted-ubuntu-x64-small
15+
labels: github-hosted-ubuntu-x64-large
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
@@ -40,7 +40,7 @@ jobs:
4040
linux_build_image_boringcrypto:
4141
name: Create a Linux build image for boringcrypto
4242
runs-on:
43-
labels: github-hosted-ubuntu-x64-small
43+
labels: github-hosted-ubuntu-x64-large
4444
steps:
4545
- name: Checkout code
4646
uses: actions/checkout@v4

0 commit comments

Comments
 (0)