-
Notifications
You must be signed in to change notification settings - Fork 517
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
[Investigation] CI Check for Minstacked Integration Schema Changes #4161
Comments
We already have a feature built in commad
We could use this on minimum version supported! so , we will know whats the next applicable version, may be a checklist after we update the integration schema monthly! :) |
This was reported to have the latest changes in integrations- https://github.com/elastic/integrations/pull/12154/files#diff-6fb787225d4f445c0e7645f4fcb538300d2d68724f30c9b17a77911ebfb06bcb. When checked with the command
The helper command clearly suggests that we will min_stack only if new features are being used. So the changes for S1 packages are not filed related when checked. We also ran a test lock versions command from todays latest main.
The diff file is attached lock-diff.txt In about 11 version modifications we never saw any double bumps. This should give us enough confidence that this may not result in double version bump tomo @w0rk3r, else we can proactively attend to the changes needed. |
Look At the steps involved in analysis of minstack refer thread - https://elastic.slack.com/archives/C02USDK55AQ/p1736181401544619?thread_ts=1735946132.885459&cid=C02USDK55AQ A straight forward CI can prove difficult in this case |
16 Jan Update I tried remodifying the code to fetch the schema of the current version and the previous version.
With the sample PR - https://github.com/elastic/integrations/pull/12285/files#diff-894c31b0555893a4caddf23f700a74a88de3c2663ff726d63f75e66b2ef403d5 where S2 has a new version say 1.8.1 i pulled in the latest schema and tried checking with this I was not able to pin point the latest field changes
and also for some previous examples where we have min stacked
Now when i think back after todays integration. 1 - Irrespective of the filed changes if the related integrations version requirement changes like below, we will ensure double bumps.
|
16 Jan Update So If you look at the journey of Okta Min-stack for currently supported and released versions. We min stacked at 8.15.0 when schema was refreshed in December - #4290
The current refresh in January we have not seen any new versions making changes to stack version compatibility |
Repository Feature
Core Repo - (rule management, validation, testing, lib, cicd, etc.)
Problem Description
Currently when we update the integration schemas for our rules and try to release new content, our automation workflows break if the integration introduces a new min stack. We then have to min stack our rules (e.g. #4156) but this is after we've tried to version lock our rules and noticed double bumps.
We can potentially catch these changes earlier.
Desired Solution
By looking at the response from https://epr.elastic.co/search?prerelease=true we can potentially alert when the conditions.kibana.version changes for a given integration name.
Ideally, per PR, we could:
conditions.kibana.version
in the manifest that we have (assuming it has the versions as well) and compare to see if the version has changed.We probably wouldn't want this to be a unit test, but rather a CLI command called in a CI workflow that runs only for our PRs. This way the PR CI check will fail and let the user know immediately that the rule needs to be minstacked.
Considered Alternatives
We can also exploring how to modify our internal logic to ignore when certain fields have changed so that we dont have to minstack our rules unecessarilily.
Additional Context
#4155
The text was updated successfully, but these errors were encountered: