You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests: Move sanic under toxgen & add option to control how many releases to pick (#4767)
- Move sanic under toxgen
- This gets rid of the `-latest` group for Web 2 as all Web 2 test
suites are now governed by toxgen
- Add `num_versions` as a new option to optionally slim down the number
of tested versions (useful for sanic as it has a lot of "majors" due to
calver)
- When a package had multiple majors, we used to always pick the lowest
as well as the highest release in the last major -- removed the lowest
now to not over-test. All majors will still be tested by default, we
just won't be testing two releases in the last major.
Ref #4506
Copy file name to clipboardExpand all lines: scripts/populate_tox/README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,7 @@ then determining which versions make sense to test to get good coverage.
18
18
19
19
The lowest supported and latest version of a framework are always tested, with
20
20
a number of releases in between:
21
-
- If the package has majors, we pick the highest version of each major. For the
22
-
latest major, we also pick the lowest version in that major.
21
+
- If the package has majors, we pick the highest version of each major.
23
22
- If the package doesn't have multiple majors, we pick two versions in between
24
23
lowest and highest.
25
24
@@ -46,6 +45,8 @@ integration_name: {
46
45
},
47
46
"python": python_version_specifier,
48
47
"include": package_version_specifier,
48
+
"integration_name": integration_name,
49
+
"num_versions": int,
49
50
}
50
51
```
51
52
@@ -161,6 +162,10 @@ of which are actually testing the `openai` integration. If this is the case, you
161
162
162
163
Linking an integration to a test suite allows the script to access integration configuration like for example the minimum version defined in `sentry_sdk/integrations/__init__.py`.
163
164
165
+
### `num_versions`
166
+
167
+
With this option you can tweak the default version picking behavior by specifying how many package versions should be tested. It accepts an integer equal to or greater than 2, as the oldest and latest supported versions will always be picked. Additionally, if there is a recent prerelease, it'll also always be picked (this doesn't count towards `num_versions`).
0 commit comments