-
Notifications
You must be signed in to change notification settings - Fork 143
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
use 8.10 instead of 8.11 for stack version and .package.version #3276
Conversation
This pull request does not have a backport label. Could you fix it @AndersonQ? 🙏
NOTE: |
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
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.
We are going to need to make these changes again in the next feature freeze period. Can the code be refactored out into a dedicated package so both pieces live together? Maybe call the package featurefreeze or something to make the purpose obvious.
🌐 Coverage report
|
If you can just fix the linter things it would be great :-) |
I ran this locally to try a single test: It started an 8.10 stack but the .package-version edit doesn't seem to be taking effect because Fleet is rejecting the version of the agent:
|
I branched from this PR and created one with the fix to get the tests to run #3277 |
You need #3281 to get the build to succeed reliably. |
@Mergifyio update |
✅ Branch has been successfully updated |
FYI you had the agent package version set to a non-snapshot version causing some of these test failures. Not sure if we needed anything else for it to pass: -AGENT_PACKAGE_VERSION=8.10.0 \
+AGENT_PACKAGE_VERSION=8.10.0-SNAPSHOT \ |
I don't know if we need 49c0770 |
The actual bug with the package version test is that we are getting 8.10.0 as the agent version from this block of code instead of 8.10.0-SNAPSHOT elastic-agent/testing/integration/pkgversion_common_test.go Lines 60 to 71 in e2a3a25
|
This is because we need both Edit: this is only weird, but not the actual root cause of the test failure. |
Just using BEAT_VERSION=8.10.0 and SNAPSHOT=true will fix this, with the consequence that we use the 8.10.0 Beats. |
Apparently there is even more to this problem, the ❯ sudo elastic-agent version --yaml
binary:
version: 8.10.0
commit: e2a3a254604bfb4902e21a8ee2495af7ce1e4ce9
build_time: 2023-08-24T00:32:56Z
snapshot: true
daemon:
version: 8.10.0
commit: e2a3a254604bfb4902e21a8ee2495af7ce1e4ce9
build_time: 2023-08-24T00:32:56Z
snapshot: true We ignore the elastic-agent/testing/integration/pkgversion_common_test.go Lines 100 to 107 in 1071b42
I am confused about how this ever passed on the 8.10 branch because the 8.10 version doesn't exist either:
|
1adcafe
to
67bfc2d
Compare
I am going to create a separate PR with ad73102 to fix the bug in the GetPrevMinor function, this will also let me test out the 8.11 snapshot on main. We still have work to do to make this work in the next minor, but now that there is an 8.11 snapshot we can leave this PR alone and focus on fixing the tests on main. |
closing as it isn't needed right now, of we need it again, we can reopen it. |
Pull request was closed
What does this PR do?
use 8.10 instead of 8.11 for stack version and .package-version
Why is it important?
8.11 stack isn't available yet on QA/Staging
Checklist
./changelog/fragments
using the changelog toolAuthor's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs
Questions to ask yourself