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

[Automation] Bump Golang version to 1.19.12 #36233

Closed
wants to merge 117 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
ec5a685
chore: Updated to content ":go-version: 1.19.10" in file "libbeat/doc...
apmmachine Jun 17, 2023
7907874
chore: Updated to content "1.19.10" in file ".golangci.yml"
apmmachine Jun 17, 2023
91dcaef
chore: Updated to content "1.19.10" in file ".go-version"
apmmachine Jun 17, 2023
fdf3e6c
chore: Updated to content "FROM golang:1.19.10" in file "./metricbeat...
apmmachine Jun 17, 2023
5b5eaf2
[Release] add-backport-next (#35867)
elasticmachine Jun 21, 2023
a98c576
x-pack/filebeat/input/entityanalytics/provider/azuread/fetcher: add d…
efd6 Jun 21, 2023
d591ac4
[Release] update version to next minor 8.10.0 (#35870)
elasticmachine Jun 22, 2023
90f6a25
[Release] Update test environment to 8.10.0 (#35872)
elasticmachine Jun 22, 2023
f7111dc
Fix double fetch (#35843)
andrewvc Jun 22, 2023
2bdc35b
Removing obsolete package from metricbeat (#35827)
amitkanfer Jun 22, 2023
c6e955a
[Heartbeat] filter dev flags inside synthetics args (#35788)
emilioalvap Jun 23, 2023
0f81098
filebeat/inputs/journald - Document cursor_seek_fallback, add seek te…
andrewkroh Jun 23, 2023
8ac9531
all: Fix grammatical mistakes in `*.tmpl` files (#35697)
shmsr Jun 23, 2023
4b371f9
filebeat/input/{v2,filestream] - Fix log format, ignore context cance…
andrewkroh Jun 23, 2023
62979b5
x-pack/filebeat/input/http_endpoint: make sure address is removed on …
efd6 Jun 27, 2023
52e8984
Merge branch 'main' into updatecli_bump-golang-version
rdner Jun 27, 2023
e16de71
Tests for exposing filestream metrics together with log input metrics…
belimawr Jun 27, 2023
27763e8
Make all docker images consistent for future updates (#35919)
rdner Jun 27, 2023
2a5bfb1
Adding prealloc linter rule (#35921)
amitkanfer Jun 28, 2023
3639b2e
Include all Dockerfiles that use Golang into the bump job (#35931)
rdner Jun 28, 2023
26827e7
Add separate Golan Bump job for 7.17 (#35942)
rdner Jun 28, 2023
2fec2d9
Removing pkg/errors from beats repo (#35896)
amitkanfer Jun 28, 2023
46de82c
x-pack/filebeat/input/cel: use structpb.Struct as intermediate type (…
efd6 Jun 28, 2023
1e41ab2
docs: Prepare Changelog for 8.8.2 (#35939) (#35954)
mergify[bot] Jun 29, 2023
d37986c
Updated protobuf to 1.29.1 (#35946)
michalpristas Jun 29, 2023
59447f6
Remove NOTE about port in Cloud ID (#35951)
sakurai-youhei Jun 29, 2023
e9272ad
filebeat,packetbeat,winlogbeat - Register input metrics diagnostic ho…
andrewkroh Jun 30, 2023
f7fa407
[filebeat] Check for duplicate ID for filestream metrics (#35972)
taylor-swanson Jul 3, 2023
8597ca7
[updatecli] update elastic stack version for testing 8.10.0-18649b44 …
apmmachine Jul 5, 2023
ba20101
x-pack/filebeat/docs/inputs: fix copy paste error (#35997)
efd6 Jul 5, 2023
c903cb0
Introducing Deployment condition status metric in Kubernetes module (…
gizas Jul 6, 2023
29843f4
Bump github.com/elastic/go-elasticsearch/v8 from 8.8.1 to 8.8.2 (#36011)
dependabot[bot] Jul 6, 2023
e5db103
doc-change: Add defaults for udp input. (#36004)
alstolten Jul 6, 2023
f75a2ed
Do not print context canceled errors (#36006)
fearful-symmetry Jul 6, 2023
15a9ec7
Fix recovering from invalid output configuration under Elastic-Agent …
belimawr Jul 7, 2023
8432069
chore: Updated to content "" in file "testing/environments/snapshot.y…
apmmachine Jul 10, 2023
e741a6d
filebeat/input/{tcp,udp}: use correct address list in udp (#35996)
efd6 Jul 10, 2023
a705396
x-pack/filebeat/module/fortinet: remove NUL bytes from log lines (#36…
efd6 Jul 11, 2023
3de3d53
Fix rollover handling in system/network host data (#35977)
fearful-symmetry Jul 11, 2023
ae923ba
x-pack/filebeat/input/cel: make redact configuration recommended (#36…
efd6 Jul 11, 2023
536019b
Remove logger from WriteJSONKeys (#35920)
alexsapran Jul 12, 2023
2dc3f67
Update docs.asciidoc (#36050)
rseldner Jul 12, 2023
91bbccf
Improve StreamBuf append (#35928)
jeniawhite Jul 12, 2023
5d974fd
Remove deprecate message for flag that wasn't deprecated (#36047)
fearful-symmetry Jul 12, 2023
faf88b7
Decrease Clones (#35945)
jeniawhite Jul 13, 2023
a755bbc
Filebeat mqtt add cleansession (#35806)
dramis Jul 14, 2023
b701377
Add new `fingerprint` file identity (#35734)
rdner Jul 14, 2023
5e73a64
x-pack/filebeat/docs/inputs/cel: fix copy paste error (#36063)
efd6 Jul 14, 2023
e76ecef
chore: Updated to content ":go-version: 1.19.11" in file "libbeat/doc...
apmmachine Jul 15, 2023
3bcb212
chore: Updated to content "1.19.11" in file ".golangci.yml"
apmmachine Jul 15, 2023
46fc489
chore: Updated to content "1.19.11" in file ".go-version"
apmmachine Jul 15, 2023
a37490d
[updatecli] update elastic stack version for testing 8.10.0-464beb1d …
apmmachine Jul 16, 2023
061cb88
Make fingerprinting faster (#36073)
rdner Jul 17, 2023
e4d287f
Add file system information to each event (#36065)
rdner Jul 17, 2023
af2d773
[awss3][automation] Fix skipping aws tests in automation (#36054)
bhapas Jul 17, 2023
b481143
Add benchmarks for scanning files (#36078)
rdner Jul 17, 2023
46adbac
Pin PyYAML version to 5.3.1 to avoid CI errors temporarily (#36091)
shmsr Jul 18, 2023
0cd5775
Fix empty new file edge case (#36076)
rdner Jul 18, 2023
57d649d
x-pack/filebeat/input/awss3: fix priority of region name configuratio…
efd6 Jul 18, 2023
f52d38a
Fix the wrong event type for a new file (#36098)
rdner Jul 18, 2023
38e7b02
Update docker documentation example for dbus in system metrics (#36045)
fearful-symmetry Jul 18, 2023
4eaa918
Set providers list in config to aws for provider_aws_ec2_test.go (#36…
kaiyan-sheng Jul 19, 2023
9f28394
x-pack/filebeat/processors/decode_def/cef: relax size constraint on n…
efd6 Jul 20, 2023
8a9d6f6
Support build of projects outside of beats directory (#36126)
jeniawhite Jul 20, 2023
2aba00a
Fix ndjson parser to store JSON fields correctly under `target` (#36089)
zipperle Jul 20, 2023
b6c377c
x-pack/filebeat/input/cel: make now global static per evaluation (#36…
efd6 Jul 21, 2023
2429af1
[filebeat][httpjson]- Added min & max functions to the template engin…
ShourieG Jul 24, 2023
cc740f9
x-pack/filebeat/input/awss3 ; Fix nil hit panic when a getter is invo…
bhapas Jul 24, 2023
b5a811e
x-pack/filebeat/input/entityanalytics/provider/azuread: add registere…
efd6 Jul 24, 2023
3f30e5e
x-pack/filebeat/docs/inputs/cel: use attributes for mito doc links (#…
efd6 Jul 24, 2023
a3e66cd
x-pack/filebeat/input/cel: update mito version to v1.5.0 (#36146)
efd6 Jul 25, 2023
1835318
x-pack/filebeat/docs/inputs/cel: add a text API example (#36152)
efd6 Jul 25, 2023
143c130
[Release] Update docs for the 8.10.0 release (#35871)
elasticmachine Jul 26, 2023
f60c665
Add CODEOWNER for salesforce as obs-infraobs-integrations (#36160)
kush-elastic Jul 26, 2023
6a5b09a
x-pack/filebeat/input/awss3[integration test]Test integration tests o…
bhapas Jul 27, 2023
7fd27bf
[Azure Billing] Update forecast api metrics interval (#36142)
muthu-mps Jul 27, 2023
b0124b4
[main](backport #36128) docs: Prepare Changelog for 8.9.0 (#36154)
mergify[bot] Jul 27, 2023
739e381
filebeat/input/journald: allow specifying since when to read journal…
efd6 Jul 27, 2023
a278734
upgrade Go to 1.20.6 (#36000)
AndersonQ Jul 28, 2023
3ea0c53
Update PULL_REQUEST_TEMPLATE.md (#36167)
pierrehilbert Jul 28, 2023
b2d5017
[Heartbeat] Add publish pipeline timeout to run_once (#35721)
emilioalvap Jul 28, 2023
224e3e1
Convert some libbeat python tests to go (#35959)
leehinman Jul 28, 2023
3b94f18
dependabot: skip github.com/elastic/mito auto updates (#36158)
efd6 Jul 28, 2023
3c807b0
[filebeat][httpjson] - Fix input metric name (#36169)
ShourieG Jul 29, 2023
5e978ea
update elastic-agent-client (#36171)
fearful-symmetry Jul 30, 2023
c7d5920
Skip TestFetch as Flaky (#36179)
pierrehilbert Jul 31, 2023
d8db41b
x-pack/winlogbeat/module/powershell: improve details regexp pattern p…
efd6 Jul 31, 2023
0a655a1
packetbeat/beater: make Npcap installation lazy (#35935)
efd6 Aug 1, 2023
4ae13d9
metricbeat/module/postgresql: Improve healthcheck for Postgres (#36182)
shmsr Aug 1, 2023
e1267be
[DOCS] Advise users to migrate from Filebeat to Elastic Agent (#36157)
natasha-moore-elastic Aug 1, 2023
68f7387
Bump github.com/elastic/go-elasticsearch/v8 from 8.8.2 to 8.9.0 (#36168)
dependabot[bot] Aug 1, 2023
90cd631
Documenting metrics messages in Beats logs (#36163)
ycombinator Aug 1, 2023
78fc965
[DOCS] Remove unneeded breaking changes pages (#36204)
jrodewig Aug 3, 2023
5f5c42a
Allow manually triggering the golang bump (#36216)
cmacknz Aug 3, 2023
47c403b
chore: Updated to content ":go-version: 1.20.7" in file "libbeat/docs...
apmmachine Aug 3, 2023
53a9ac3
chore: Updated to content "1.20.7" in file ".golangci.yml"
apmmachine Aug 3, 2023
9087b6c
chore: Updated to content "1.20.7" in file ".go-version"
apmmachine Aug 3, 2023
ff2cc28
chore: Updated to content "go 1.20" in file "go.mod"
apmmachine Aug 3, 2023
0716c51
[updatecli] update elastic stack version for testing 8.10.0-ed2e01b4 …
apmmachine Aug 3, 2023
f6f7d05
chore: changed lines [1] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
9d31c3b
chore: changed lines [1] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
409b740
chore: changed lines [5] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
37ad668
chore: changed lines [5] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
01aa481
chore: changed lines [1] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
ee6bfbb
chore: changed lines [1] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
cede9c0
chore: changed lines [2] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
997b35a
chore: changed lines [1] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
dd91292
chore: changed lines [1] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
b51f504
chore: changed lines [1] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
0bf42bc
chore: changed lines [1] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
fc1193f
chore: changed lines [1] of file "/var/folders/n3/mrw1c3451wvgcll_c5k...
cmacknz Aug 3, 2023
f5ce461
Merge branch 'main' into updatecli_bump-golang-version
cmacknz Aug 3, 2023
8e5bd26
chore: Updated the content of the file "/var/folders/n3/mrw1c3451wvgc...
cmacknz Aug 4, 2023
7990bd0
chore: Updated the content of the file "/var/folders/n3/mrw1c3451wvgc...
cmacknz Aug 4, 2023
3a23ad1
chore: Updated the content of the file "/var/folders/n3/mrw1c3451wvgc...
cmacknz Aug 4, 2023
06a6468
chore: Updated the content of the file "/var/folders/n3/mrw1c3451wvgc...
cmacknz Aug 4, 2023
b6be24b
chore: Updated the content of the file "/var/folders/n3/mrw1c3451wvgc...
cmacknz Aug 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
144 changes: 144 additions & 0 deletions .ci/bump-golang-7.17.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
---
name: Bump golang-version to latest version in 7.17
pipelineid: "bump-golang-version-7.17"

scms:
githubConfig:
kind: github
spec:
user: '{{ requiredEnv "GIT_USER" }}'
email: '{{ requiredEnv "GIT_EMAIL" }}'
owner: elastic
repository: beats
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
username: '{{ requiredEnv "GIT_USER" }}'
branch: 7.17

actions:
beats:
kind: github/pullrequest
scmid: githubConfig
sourceid: latestGoVersion
title: '[Automation][7.17] Bump Golang version to {{ source "latestGoVersion" }}'
spec:
automerge: false
labels:
- dependencies
- backport-skip
description: |
Generated automatically with {{ requiredEnv "JOB_URL" }}

sources:
minor:
name: Get minor version in .go-version
kind: shell
transformers:
- findsubmatch:
pattern: '^\d+.(\d+).\d+$'
captureindex: 1
spec:
command: cat .go-version

latestGoVersion:
name: Get Latest Go Release
kind: githubrelease
dependson:
- minor
transformers:
- trimprefix: v
spec:
owner: elastic
repository: golang-crossbuild
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
username: '{{ requiredEnv "GIT_USER" }}'
versionfilter:
kind: regex
pattern: v1\.{{ source "minor" }}\.(\d*)$

gomod:
dependson:
- latestGoVersion
name: Get version in go.mod format
kind: shell
transformers:
- findsubmatch:
pattern: '^(\d+.\d+).\d+'
captureindex: 1
spec:
command: echo {{ source "latestGoVersion" }}

conditions:
dockerTag:
name: Is docker image golang:{{ source "latestGoVersion" }} published
kind: dockerimage
spec:
image: golang
tag: '{{ source "latestGoVersion" }}'
sourceid: latestGoVersion

goDefaultVersion-check:
name: Check if defined golang version differs
kind: shell
sourceid: latestGoVersion
spec:
command: 'grep -v -q {{ source "latestGoVersion" }} .go-version #'

targets:
update-go-version:
name: "Update .go-version"
sourceid: latestGoVersion
scmid: githubConfig
kind: file
spec:
content: '{{ source "latestGoVersion" }}'
file: .go-version
matchpattern: '\d+.\d+.\d+'
update-golang.ci:
name: "Update .golangci.yml"
sourceid: latestGoVersion
scmid: githubConfig
kind: file
spec:
content: '{{ source "latestGoVersion" }}'
file: .golangci.yml
matchpattern: '\d+.\d+.\d+'
update-version.asciidoc:
name: "Update version.asciidoc"
sourceid: latestGoVersion
scmid: githubConfig
kind: file
spec:
content: ':go-version: {{ source "latestGoVersion" }}'
file: libbeat/docs/version.asciidoc
matchpattern: ':go-version: \d+.\d+.\d+'
update-dockerfiles:
name: "Update from dockerfiles"
sourceid: latestGoVersion
scmid: githubConfig
kind: file
spec:
content: 'FROM golang:{{ source "latestGoVersion" }}'
# This list differs from the main branch, this is the main reason we have a separate job
files:
- ./metricbeat/Dockerfile
- ./metricbeat/module/vsphere/_meta/Dockerfile
- ./metricbeat/module/nats/_meta/Dockerfile
- ./metricbeat/module/http/_meta/Dockerfile
- ./filebeat/Dockerfile
- ./auditbeat/Dockerfile
- ./heartbeat/Dockerfile
- ./packetbeat/Dockerfile
- ./libbeat/Dockerfile
- ./x-pack/metricbeat/module/stan/_meta/Dockerfile
- ./x-pack/functionbeat/Dockerfile
- ./x-pack/libbeat/Dockerfile
matchpattern: 'FROM golang:\d+.\d+.\d+'
update-gomod:
name: "Update go.mod"
sourceid: gomod
scmid: githubConfig
kind: file
spec:
content: 'go {{ source "gomod" }}'
file: go.mod
matchpattern: 'go \d+.\d+'
7 changes: 7 additions & 0 deletions .ci/bump-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ targets:
- ./metricbeat/Dockerfile
- ./packetbeat/Dockerfile
- ./x-pack/functionbeat/Dockerfile
- ./metricbeat/module/nats/_meta/Dockerfile
- ./metricbeat/module/http/_meta/Dockerfile
- ./metricbeat/module/vsphere/_meta/Dockerfile
- ./dev-tools/kubernetes/metricbeat/Dockerfile.debug
- ./dev-tools/kubernetes/filebeat/Dockerfile.debug
- ./dev-tools/kubernetes/heartbeat/Dockerfile.debug
- ./x-pack/metricbeat/module/stan/_meta/Dockerfile
matchpattern: 'FROM golang:\d+.\d+.\d+'
update-gomod:
name: "Update go.mod"
Expand Down
23 changes: 23 additions & 0 deletions .ci/jobs/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '2.3'
services:
# This is a proxy used to block beats until all services are healthy.
# See: https://github.com/docker/compose/issues/4369
proxy_dep:
image: busybox
depends_on:
localstack: { condition: service_healthy }

localstack:
container_name: "${localstack_integration_test_container}"
image: localstack/localstack:2.1.0 # Latest stable release
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
environment:
- DEBUG=1
- DOCKER_HOST=unix:///var/run/docker.sock
- LOCALSTACK_HOST=localhost
- S3_HOSTNAME=localhost
- PROVIDER_OVERRIDE_S3=asf
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
7 changes: 7 additions & 0 deletions .ci/scripts/docker-services-cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -exuo pipefail

${HOME}/bin/docker-compose -f .ci/jobs/docker-compose.yml down -v

exit $?
7 changes: 7 additions & 0 deletions .ci/scripts/install-docker-services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -exuo pipefail

${HOME}/bin/docker-compose -f .ci/jobs/docker-compose.yml up -d

exit $?
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ CHANGELOG*
/x-pack/filebeat/module/proofpoint @elastic/security-external-integrations
/x-pack/filebeat/module/rabbitmq @elastic/obs-infraobs-integrations
/x-pack/filebeat/module/radware @elastic/security-external-integrations
/x-pack/filebeat/module/salesforce @elastic/obs-infraobs-integrations
/x-pack/filebeat/module/snort @elastic/security-external-integrations
/x-pack/filebeat/module/snyk @elastic/security-external-integrations
/x-pack/filebeat/module/sonicwall @elastic/security-external-integrations
Expand Down
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ List here all the items you have verified BEFORE sending this PR. Please DO NOT
- [ ] 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 added an entry in `CHANGELOG.next.asciidoc` or `CHANGELOG-developer.next.asciidoc`.
- [ ] I have made my commit title and message explanatory about the purpose and the reason of the change

## Author's Checklist

Expand Down
4 changes: 3 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ updates:
- dependabot
- Team:Security-External Integrations
allow:
# Skip github.com/elastic/mito because it requires documentation updates.
- dependency-name: github.com/elastic/go-libaudit/*
- dependency-name: github.com/elastic/go-perf
- dependency-name: github.com/elastic/go-seccomp-bpf
- dependency-name: github.com/elastic/toutoumomoma
ignore:
# Skip github.com/elastic/mito because it requires documentation updates.
- dependency-name: github.com/elastic/mito
reviewers:
- elastic/security-external-integrations
open-pull-requests-limit: 2
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/bump-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
name: bump-golang

on:
workflow_dispatch:
schedule:
- cron: '0 20 * * 6'
- cron: "0 20 * * 6"

permissions:
contents: read
Expand All @@ -15,7 +16,6 @@ jobs:
bump:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- uses: elastic/apm-pipeline-library/.github/actions/updatecli@current
Expand All @@ -24,3 +24,10 @@ jobs:
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
pipeline: ./.ci/bump-golang.yml

- uses: elastic/apm-pipeline-library/.github/actions/updatecli@current
with:
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
pipeline: ./.ci/bump-golang-7.17.yml
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.19.10
1.19.12
23 changes: 19 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ linters:
- unconvert # Remove unnecessary type conversions
- wastedassign # wastedassign finds wasted assignment statements.
- gomodguard # check for blocked dependencies
- prealloc # Finds slice declarations that could potentially be pre-allocated

# all available settings of specific linters
linters-settings:
Expand Down Expand Up @@ -108,7 +109,7 @@ linters-settings:

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

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

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

stylecheck:
# Select the Go version to target. The default is '1.13'.
go: "1.19.10"
go: "1.19.12"
# Disabled:
# ST1005: error strings should not be capitalized
checks: ["all", "-ST1005"]

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

gosec:
excludes:
Expand All @@ -147,3 +148,17 @@ linters-settings:
- G401 # Detect the usage of DES, RC4, MD5 or SHA1: Used in non-crypto contexts.
- G501 # Import blocklist: crypto/md5: Used in non-crypto contexts.
- G505 # Import blocklist: crypto/sha1: Used in non-crypto contexts.

prealloc:
# IMPORTANT: we don't recommend using this linter before doing performance profiling.
# For most programs usage of prealloc will be a premature optimization.

# Report pre-allocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them.
# Default: true
simple: false
# Report pre-allocation suggestions on range loops.
# Default: true
range-loops: true
# Report pre-allocation suggestions on for loops.
# Default: false
for-loops: true
13 changes: 13 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,16 @@ pull_request_rules:
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
- name: backport patches to 8.9 branch
conditions:
- merged
- label=backport-v8.9.0
actions:
backport:
assignees:
- "{{ author }}"
branches:
- "8.9"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
3 changes: 3 additions & 0 deletions CHANGELOG-developer.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ The list below covers the major changes between 7.0.0-rc2 and main only.
- Fix the multiple host support for mongodb module {pull}34624[34624]
- Skip HTTPJSON flakey test. {issue}34929[34929] {pull}35138[35138]
- Fix ingest pipeline for panw module to parse url scheme correctly {pull}35757[35757]
- Renamed an httpjson input metric to follow naming conventions. `httpjson_interval_pages_total` was renamed to `httpjson_interval_pages` because the `_total` suffix is reserved for counters. {issue}35933[35933] {pull}36169[36169]

==== Added

Expand Down Expand Up @@ -162,6 +163,8 @@ The list below covers the major changes between 7.0.0-rc2 and main only.
- Add benchmarking to HTTPJSON input testing. {pull}35138[35138]
- Allow non-AWS endpoints for testing Filebeat awss3 input. {issue}35496[35496] {pull}35520[35520]
- Add AUTH (username) and SSL/TLS support for Redis module {pull}35240[35240]
- Pin PyYAML version to 5.3.1 to avoid CI errors temporarily {pull}36091[36091]
- Skip dependabot updates for github.com/elastic/mito. {pull}36158[36158]

==== Deprecated

Expand Down
Loading
Loading