Repository navigation
test(python): pin a compat beta older than the build under test - #10012
Conversation
The release automation bumps main's version in the commit that cuts a beta, so from the moment that beta is published it carries the version every branch is also building. The beta slot took the newest pre-release on the index, which is that one, so a compat test's older build was the build under test.
Review follow-up. Reading the build's own version needs pylance, and the hosts that only drive provisioned venvs do not install it, so an ImportError there was landing in the index query's except arm and reporting a failed fury.io fetch. It is read before that arm now, and an empty beta slot says why it is empty. Also pins the two pieces of the selection no case covered: a stable release is not a pre-release however recent it is, and an unparseable version on the index is skipped rather than ending the search. The default bound, lance.__version__ in Cargo's pre-release spelling, is now exercised too.
…ormat Being older than the build under test is not the same as predating the row-address-domain migration. The pinned release moves forward with every beta, so a 14.0.0b17 build pins 14.0.0b16, which reads the format the current build writes and uses the index; the case asserted that no pinned build does. It now expects the index to be used from the first release that reads that format.
…e format Correction to the previous commit. A pinned build that reads the row-address domain does not necessarily use the index: in the upgrade/downgrade round trip it reads after the current build has compacted, and on a stable-row-id dataset compaction leaves the BTREE covering no fragments until the next optimize. Expecting the index there fails upgrade_downgrade once the pinned beta reaches 14.0.0b16. Such a build now only has to answer correctly; the fallback assertion for pre-migration builds is unchanged.
…er-than-build # Conflicts: # python/python/tests/compat/test_scalar_indices.py
|
Merged main. The conflict was in |
Xuanwo
left a comment
There was a problem hiding this comment.
Reviewed: beta pinning now targets the newest pre-release strictly older than the build under test (release automation bumps main's version in the beta-cutting commit, so the newest pre-release can be the build itself); hosts without pylance get an explicit empty slot instead of a misleading index-query failure; unparseable versions are skipped and stables excluded; stub asserts --pre and fury.io indices stay wired. Scalar-index compat tests use a tri-state expectation once the pinned build reads the row-address domain. CI green; approving. Note: head is behind main and maintainer edits are off for this fork, so please update the branch on your side next time.
The compat matrix is three recent stable majors plus one beta, and
_fetch_last_beta_releasefilled the beta slot with the newest pre-release on the index. The release automation bumps main's version in the same commit that tags and publishes a beta, so once that beta is on the index it carries the version main is building, and the slot labels the build's own version as the older build. That is the state right after every beta release: main builds14.0.0-beta.19and the index's newest pre-release is14.0.0b19._fetch_last_beta_releasenow picks the newest pre-release older than the build under test, so the slot is always strictly older than the version being built. Pre-releases are recognized withVersion.is_prereleaseinstead of a substring search, an index entry that does not parse is skipped, and when nothing older is available the slot stays empty instead of falling back to a stable release. Reading the build's own version needs pylance, whichcompat-pair.ymlandnightly_run.ymldo not install on the host, so a missing pylance is reported as that rather than as a failed index query; the slot is then empty there, and neither workflow's tests read it.This corrects what the slot means; it does not stop a compat case that asserts an older build lacks a feature from failing once the first beta with that feature is older than main. #10011 was such a case, and #10003 fixed it by giving the case a version threshold, which is what any such case needs regardless of this change. The cost is that a pull request's compat run no longer reads its data with the most recently published beta, only with the one before it.
Fixes #10011.
How was this patch tested
test_beta_slot_takes_the_newest_release_older_than_the_buildcovers the shapes the index can present: the published beta equal to the build, a beta newer than the build, versions out of order, a stable release newer than the betas, an unparseable entry, and nothing older to pin. Reverting the ordering, the pre-release filter or the parse guard each turns a case red.test_beta_slot_measures_against_the_installed_buildcovers the default bound, wherelance.__version__reports Cargo's14.0.0-beta.16and the index has the normalized14.0.0b16. The last two tests cover a host with no pylance.