-
Notifications
You must be signed in to change notification settings - Fork 160
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
Review agent's upgrade tests and change used versions if necessary #4320
Comments
I noticed that the following test cases request a build version: TestStandaloneUpgradeRetryDownloadelastic-agent/testing/integration/upgrade_standalone_retry_test.go Lines 51 to 53 in ddd832b
TestStandaloneUpgradeUninstallKillWatcherelastic-agent/testing/integration/upgrade_uninstall_test.go Lines 51 to 55 in ddd832b
From the name of the tests I don't think they should use build versions, what do you think We're trying to minimize the use of the artifact API due to #4268 so I'd just use the current snapshot and skip the test when commit hashes match. |
I think those test can be changed to use regular snapshots/released versions without any loss of functionality. If the build lookup is just to avoid hash collision we can change them after implementing #4380 and have those tests try to upgrade to latest snapshot for the given version |
I think further adjustments are no longer necessary. Closing now. |
All the preliminary research was done here #4296 (comment)
We should review all our current upgrade tests and decide whether using the versions they use actually makes sense.
The goal is to minimize the amount of different versions used for testing, we currently have:
define.Version() => define.Version()
define.Version() => define.Version()-SNAPSHOT
define.Version() => PreviousMinor
PreviousMinor => define.Version()
define.Version() => define.Version()-SNAPSHOT+<lastBuildID>
define.Version() => define.Version()-SNAPSHOT+<lastBuildID~1>
GetUpgradableVersions(ctx, define.Version(), 2, 1) => define.Version()
FYI: versions returned from
GetUpgradableVersions()
andPreviousMinor()
are stable/deterministic and configured by a file.The text was updated successfully, but these errors were encountered: