New changelog versions validation check#808
Conversation
|
test integrations |
|
Created or updated PR in integrations repository to test this version. Check elastic/integrations#11304 |
40766d1 to
7650b1d
Compare
| "changelog next version manifest older version", | ||
| "1.0.0", | ||
| []string{ | ||
| "1.1.0-next", | ||
| "1.0.1", | ||
| "1.0.0", | ||
| }, | ||
| false, |
There was a problem hiding this comment.
This test case shows the current behaviour when using next versions in changelog (but not in manifest).
Here, the manifest version 1.0.0 is not the latest stable 1.0.1.
Should this be allowed? Or, should it be revisited this code? @jsoriano
There was a problem hiding this comment.
I think this would be a different change, and not sure if we want to be strict on that. We can keep it as is now.
There was a problem hiding this comment.
Ok, let's keep it as is 👍
| "changelog next version manifest older version", | ||
| "1.0.0", | ||
| []string{ | ||
| "1.1.0-next", | ||
| "1.0.1", | ||
| "1.0.0", | ||
| }, | ||
| false, |
There was a problem hiding this comment.
I think this would be a different change, and not sure if we want to be strict on that. We can keep it as is now.
code/go/internal/validator/semantic/validate_version_integrity.go
Outdated
Show resolved
Hide resolved
|
Just as a note, this new validation rule will affect all packages independently of their With the latest execution of "test integrations" , there were two packages that would fail "aws" and "network_traffic". I'll check which packages running "test integrations" once more. |
|
test integrations |
|
Created or updated PR in integrations repository to test this version. Check elastic/integrations#11304 |
💚 Build Succeeded
History
cc @mrodm |
|
Currently these are the packages failing due to package-spec related errors:
Build: https://buildkite.com/elastic/integrations/builds/16755 |
I guess these can be solved by fixing the order in the changelog? I think it would be fine to do that when we update elastic-package in integrations.
Not related to this PR (but to #801), and this is known by the package owners, to be fixed when updating elastic-package. I think we can go on with this change. |
|
There is already a PR open to fix AWS changelog elastic/integrations#11307 |
In case for instance of network_traffic, it has this version as the least 1.31.1, and the second one is 1.32.0. If it is re-ordered, 1.32.0 would have less changes/"code" than 1.31.1 version. Another option would be to release a new version 1.32.1 with the same contents as 1.31.1. Not sure what it could be set in the changelog entry for this. Probably the same data as in 1.31.1? |
Yes, actually 1.32.0 will be "reverting" the change in 1.31.1. The changelog could be fixed to something like this: |
|
PR open with the change I am propossing for network traffic: elastic/integrations#11322 |
What does this PR do?
Add a new validation check to ensure that the first (newer) changelog entry defined in the changelog file is not lower than the other versions.
Example of PR releasing an old version: elastic/integrations#10800
Why is it important?
Ensure that it is not released a older version. Releasing an older version should be performed through another mechanism.
Checklist
test/packagesthat prove my change is effective.spec/changelog.yml.Related issues