Skip to content

Commit

Permalink
Merge branch 'main' into kardianos-service-fork
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse authored Jun 11, 2024
2 parents 5711ad2 + 2e09c33 commit 2e68e8c
Show file tree
Hide file tree
Showing 87 changed files with 4,243 additions and 2,076 deletions.
4 changes: 2 additions & 2 deletions .agent-versions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"testVersions": [
"8.14.0-SNAPSHOT",
"8.14.1-SNAPSHOT",
"8.14.0",
"8.13.5-SNAPSHOT",
"8.13.4",
"8.12.2",
"7.17.22-SNAPSHOT",
"7.17.21"
]
Expand Down
8 changes: 4 additions & 4 deletions .buildkite/pull-requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"pipelineSlug": "elastic-agent",
"allow_org_users": true,
"allowed_repo_permissions": ["admin", "write"],
"allowed_list": ["dependabot[bot]", "mergify[bot]"],
"allowed_list": ["dependabot[bot]", "mergify[bot]", "github-actions[bot]"],
"set_commit_status": true,
"build_on_commit": true,
"build_on_comment": true,
"trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))|^/test$",
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))|^/test$",
"skip_ci_labels": [ "skip-ci" ],
"skip_target_branches": [ ],
"skip_ci_on_only_changed": [ "^.ci/", "^.github/", "^changelog", "^docs/", "\\.md$", "^docker-compose.yml", "^.pre-commit-config.yaml", "skaffold.yaml", "^Dockerfile.skaffold", "^Dockerfile"],
"skip_ci_on_only_changed": [ "^.ci/", "^changelog", "^docs/", "\\.md$", "^docker-compose.yml", "^.pre-commit-config.yaml", "skaffold.yaml", "^Dockerfile.skaffold", "^Dockerfile"],
"always_require_ci_on_changed": [ ]
},
{
Expand All @@ -22,15 +22,15 @@
"pipelineSlug": "elastic-agent-extended-testing",
"allow_org_users": true,
"allowed_repo_permissions": ["admin", "write"],
"allowed_list": ["dependabot[bot]", "mergify[bot]"],
"allowed_list": ["dependabot[bot]", "mergify[bot]", "github-actions[bot]"],
"set_commit_status": true,
"build_on_commit": true,
"build_on_comment": true,
"trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:extended))|^/test extended$",
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:extended))|^/test extended$",
"skip_ci_labels": [ "skip-ci", "skip-it" ],
"skip_target_branches": [ ],
"skip_ci_on_only_changed": [ "^.ci/", "^.github/", "^changelog", "^docs/", "\\.md$", "^sonar-project.properties", "^docker-compose.yml", "^.pre-commit-config.yaml", "skaffold.yaml", "^Dockerfile.skaffold", "^Dockerfile"],
"skip_ci_on_only_changed": [ "^.ci/", "^changelog", "^docs/", "\\.md$", "^sonar-project.properties", "^docker-compose.yml", "^.pre-commit-config.yaml", "skaffold.yaml", "^Dockerfile.skaffold", "^Dockerfile"],
"always_require_ci_on_changed": [ ]
},
{
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/bump-agent-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ else
echo "Another PR for $GITHUB_REF_NAME is in review, skipping..."
exit 0
fi
# the mage target above requires to be on a release branch
# so, the new branch should not be created before the target is run
git checkout -b update-agent-versions-$GITHUB_RUN_ID
git add .agent-versions.json .package-version

nl=$'\n' # otherwise the new line character is not recognized properly
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/bump-agent-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ jobs:
with:
go-version: 1.21

- name: Set up branch
run: git checkout -b update-agent-versions-$GITHUB_RUN_ID
- name: Set git config
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Install mage
uses: magefile/mage-action@v3
Expand Down Expand Up @@ -83,4 +85,3 @@ jobs:
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_MESSAGE: "Update for Elastic Agent versions has been created: ${{ steps.update.outputs.pr }}"

2 changes: 1 addition & 1 deletion .github/workflows/bump-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install Updatecli in the runner
uses: updatecli/updatecli-action@fa41baa922561b436c449de1a0bd1f5bd768248c # v0.76.1
uses: updatecli/updatecli-action@4922d58d06f0d096428933f153275e15a3eb49de # v0.76.1

- name: Run Updatecli in Apply mode
run: updatecli apply --config .github/updatecli-bump-golang.yml
Expand Down
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.21.10
1.21.11
8 changes: 4 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ linters-settings:

gosimple:
# Select the Go version to target. The default is '1.13'.
go: "1.21.10"
go: "1.21.11"

nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
Expand All @@ -136,17 +136,17 @@ linters-settings:

staticcheck:
# Select the Go version to target. The default is '1.13'.
go: "1.21.10"
go: "1.21.11"
checks: ["all"]

stylecheck:
# Select the Go version to target. The default is '1.13'.
go: "1.21.10"
go: "1.21.11"
checks: ["all"]

unused:
# Select the Go version to target. The default is '1.13'.
go: "1.21.10"
go: "1.21.11"

gosec:
excludes:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.21.10
ARG GO_VERSION=1.21.11
FROM circleci/golang:${GO_VERSION}


Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.skaffold
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.21.10
ARG GO_VERSION=1.21.11
ARG crossbuild_image="docker.elastic.co/beats-dev/golang-crossbuild"
ARG AGENT_VERSION=8.9.0-SNAPSHOT
ARG AGENT_IMAGE="docker.elastic.co/beats/elastic-agent"
Expand Down
Loading

0 comments on commit 2e68e8c

Please sign in to comment.