ci(ff): support feature freeze automation#13138
Closed
v1v wants to merge 10 commits into
Closed
Conversation
Member
Author
|
@copilot review the errors in the linting |
Contributor
|
This pull request is now in conflicts. Could you fix it? 🙏 |
Member
Author
Minorexport PROJECT_OWNER="v1v"
export CURRENT_RELEASE="9.5.0"
export GITHUB_TOKEN=$(gh auth token)
export DRY_RUN=true
# Dry run first
mage release:runMajorMinor
🔍 DRY RUN MODE - No changes will be pushed or branches created remotely
=== Starting Major/Minor Release Workflow for 9.5.0 ===
Step 1: Preparing release files...
=== Preparing Major/Minor Release 9.5.0 ===
✓ Updated version to 9.5.0 in version/version.go
✓ Updated version to 9.5.0 in deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
✓ Updated version to 9.5.0 in deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
✓ Added backport rule for 9.5 to .mergify.yml
✓ All files updated for major/minor release
Step 2: [DRY RUN] Would create release branch and commit
Branch: 9.5
Commit: [Release] Prepare release 9.5.0
Step 3: [DRY RUN] Would push branch to remote
git push origin 9.5
Step 4: [DRY RUN] Would create pull request
Title: [Release 9.5.0] Prepare release branch
Head: 9.5
Base: main
=== Major/Minor Release Workflow Complete ===
⚠️ This was a DRY RUN. Review the changes with 'git diff' and run again without DRY_RUN=truediff --git a/.mergify.yml b/.mergify.yml
index a0cc5c8d5c..d0c688987b 100644
--- a/.mergify.yml
+++ b/.mergify.yml
@@ -1,348 +1,339 @@
+ - actions:
+ backport:
+ branches:
+ - "9.5"
+ conditions:
+ - merged
+ - label=backport-9.5
+ name: backport patches to 9.5 branch
diff --git a/beats b/beats
index eff088939b..11d1fe736b 160000
--- a/beats
+++ b/beats
@@ -1 +1 @@
-Subproject commit eff088939b9a4c2f1616a9b64eb5fe4a3352fea4
+Subproject commit 11d1fe736b330f5293576796b8732289259da0ff
diff --git a/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml b/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
index e6451393ff..c7bf6ee93e 100644
--- a/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
+++ b/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
@@ -34,7 +34,7 @@ spec:
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: elastic-agent
- image: docker.elastic.co/elastic-agent/elastic-agent:9.4.0
+ image: docker.elastic.co/elastic-agent/elastic-agent:9.5.0
env:
# Set to 1 for enrollment into Fleet server. If not set, Elastic Agent is run in standalone mode
- name: FLEET_ENROLL
diff --git a/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml b/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
index 7fbc77540e..f669cfd038 100644
--- a/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
+++ b/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
@@ -711,7 +711,7 @@ spec:
# Uncomment if using hints feature
#initContainers:
# - name: k8s-templates-downloader
- # image: docker.elastic.co/elastic-agent/elastic-agent:9.4.0
+ # image: docker.elastic.co/elastic-agent/elastic-agent:9.5.0
# command: ['bash']
# args:
# - -c
@@ -723,7 +723,7 @@ spec:
# mountPath: /etc/elastic-agent/inputs.d
containers:
- name: elastic-agent-standalone
- image: docker.elastic.co/elastic-agent/elastic-agent:9.4.0
+ image: docker.elastic.co/elastic-agent/elastic-agent:9.5.0
args: ["-c", "/etc/elastic-agent/agent.yml", "-e"]
env:
# The API Key with access privilleges to connect to Elasticsearch. https://www.elastic.co/guide/en/fleet/current/grant-access-to-elasticsearch.html#create-api-key-standalone-agent
diff --git a/version/version.go b/version/version.go
index c308f7ba8b..bdb3291104 100644
--- a/version/version.go
+++ b/version/version.go
@@ -4,5 +4,5 @@
package version
-const defaultBeatVersion = "9.4.0"
+const defaultBeatVersion = "9.5.0"
const Agent = defaultBeatVersion
$ export PROJECT_OWNER="v1v"
export CURRENT_RELEASE="9.5.1"
export GITHUB_TOKEN=$(gh auth token)
export DRY_RUN=true
# Dry run first
mage release:runPatch
🔍 DRY RUN MODE - No changes will be pushed
=== Starting Patch Release Workflow for 9.5.1 ===
Step 1: Verifying current branch...
Step 1: [DRY RUN] Would verify current branch
Step 2: Updating version files...
✓ Updated version to 9.5.1 in version/version.go
✓ Updated version to 9.5.1 in deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
✓ Updated version to 9.5.1 in deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
Step 3: [DRY RUN] Would commit changes
Commit: [Release] Prepare patch release 9.5.1
Step 4: [DRY RUN] Would push changes to remote
git push origin 9.5
=== Patch Release Workflow Complete ===
⚠️ This was a DRY RUN. Review the changes with 'git diff' and run again without DRY_RUN=true
-Subproject commit eff088939b9a4c2f1616a9b64eb5fe4a3352fea4
+Subproject commit 11d1fe736b330f5293576796b8732289259da0ff
diff --git a/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml b/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
index e6451393ff..1b98569b75 100644
--- a/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
+++ b/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
@@ -34,7 +34,7 @@ spec:
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: elastic-agent
- image: docker.elastic.co/elastic-agent/elastic-agent:9.4.0
+ image: docker.elastic.co/elastic-agent/elastic-agent:9.5.1
env:
# Set to 1 for enrollment into Fleet server. If not set, Elastic Agent is run in standalone mode
- name: FLEET_ENROLL
diff --git a/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml b/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
index 7fbc77540e..6072871ac6 100644
--- a/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
+++ b/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
@@ -711,7 +711,7 @@ spec:
# Uncomment if using hints feature
#initContainers:
# - name: k8s-templates-downloader
- # image: docker.elastic.co/elastic-agent/elastic-agent:9.4.0
+ # image: docker.elastic.co/elastic-agent/elastic-agent:9.5.1
# command: ['bash']
# args:
# - -c
@@ -723,7 +723,7 @@ spec:
# mountPath: /etc/elastic-agent/inputs.d
containers:
- name: elastic-agent-standalone
- image: docker.elastic.co/elastic-agent/elastic-agent:9.4.0
+ image: docker.elastic.co/elastic-agent/elastic-agent:9.5.1
args: ["-c", "/etc/elastic-agent/agent.yml", "-e"]
env:
# The API Key with access privilleges to connect to Elasticsearch. https://www.elastic.co/guide/en/fleet/current/grant-access-to-elasticsearch.html#create-api-key-standalone-agent
diff --git a/version/version.go b/version/version.go
index c308f7ba8b..e26da47984 100644
--- a/version/version.go
+++ b/version/version.go
@@ -4,5 +4,5 @@
package version
-const defaultBeatVersion = "9.4.0"
+const defaultBeatVersion = "9.5.1"
const Agent = defaultBeatVersion
|
this should help with manipulating the YAML using the YAML golang library
Member
Author
|
buildkite test this |
Contributor
|
This pull request is now in conflicts. Could you fix it? 🙏 |
1 similar comment
Contributor
|
This pull request is now in conflicts. Could you fix it? 🙏 |
Contributor
|
@copilot resolve the merge conflicts in this pull request |
8 tasks
Contributor
|
Replaced by #15433 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR migrates the elastic-agent release automation from Makefile-based scripts to a pure Go implementation using Mage, eliminating all external tool dependencies.
✨ Key Features
Why is it important?
Move away from centralised approach but support the FF automation as part of #12711
Checklist
./changelog/fragmentsusing the changelog toolDisruptive User Impact
How to test this PR locally
Related issues
Questions to ask yourself