Repository navigation
Build/core dev q 2.7.0 - #30
Merged
Merged
Conversation
check-vendored-pin.sh passed only a submodule sitting exactly on tag vCORE_VERSION. The core's release tags sit on master and dev carries none, so a pin to a dev commit, taken between releases, failed CI and the release job however right it was. The unmerged build/core-38fd4be3 branch stopped there. A dev pin now passes when CORE_VERSION names the newest release the commit contains, which is what the core's Makefile stamps on it. A release is contained when its commit is an ancestor of the pin, or when one of its parents with the same tree is: a dev -> master merge adds nothing of its own, and until the core merges it back, only the release PR's head is in dev's history. These are the conditions the core's own merge-back checks. Every release tag past CORE_VERSION is tried as well, so a pin that contains a newer release fails, naming it. A release cut later from a newer dev is not contained, so a pin that passes keeps passing. actions/checkout clones submodules at depth 1. The script fetches the tag with its parents, deepens the clone to a day before the release commit, and fetches the whole history only if that does not reach it. For v3.0.2 from dev e6deb32 that is 249 commits, about 2 s here. A pin exactly on a tag passes as before. Checked on full and depth-1 clones: a dev pin, a release pin, a dev pin naming an older release, a pin older than its release, a wrong commit and a missing tag.
The core's TIMESPAN (type 16), signed nanoseconds, is what subtracting two timestamps yields, and with rayforce-q 2.7.0 what a q timespan decodes to. The crate had no way to build or read one, and its own vector test stopped at type 13 while the core's ray_is_vector_type also counts 16, so a timespan vector reported len() == 0, get refused it as "not a vector or list" and is_null_at was always false. - raw::is_vec mirrors ray_is_vector_type, and atom_is_null reads a timespan's i64::MIN as null, as ray_atom_is_null_fn does. - Value::timespan_nanos and as_timespan_nanos build and read an atom, timespan_nanos_slice views a vector's &[i64], and get boxes an element as a timespan. - With the chrono feature, chrono::Duration converts both ways. Past the ~292 years an i64 of nanoseconds holds it saturates, never to i64::MIN, the null, as DateTime<Utc> already does. Tests cover the atom, its null, the type checks against timestamp and i64, and Rayfall's timestamp subtraction as an atom and as a vector; they pass on core v3.0.1 as on the new pin.
a_push_is_answered_once_the_queries_ahead_of_it_end asserted that the push was answered no sooner than the query being evaluated ahead of it. Each time is taken by the client thread that read its answer, and the server writes the two answers microseconds apart, so the threads can wake in either order: one run timed the push 0.3 ms before the query, both near 2.4 s. A push that did not wait would be answered seconds early, so the bound now allows 20 ms. Seen once in 13 runs against the sibling core checkout; 12 runs on the vendored pin passed.
The core moves from v3.0.1 (0aa2d6a) to dev e6deb32, v3.0.2 plus 248 commits; it has tagged no release that carries them. CORE_VERSION is 3.0.2, the newest release the commit contains, as the core's Makefile stamps it, which the pin check now accepts. rayforce-q moves from 2.6.0 to 2.7.0, which was tested against core dev 57841b0b. The bindings only grow: RAY_ERR_ACCESS, the anon watermark and poll password functions, ray_error_msg_set and ray_error_usage(_set), three trailing transport fields in ray_selector and a transport byte in ray_ipc_tx_info_t. The INTERNAL_FNS signatures and the hand-declared q.h / q_server.h functions and constants are unchanged. - Native IPC is wire version 4 since core #1107, and the handshake wants the same version on both ends. The tests' raw IPC client spoke 3 and the silent peer answered 3; the client now speaks 4 and the peer echoes the client's version. - The core's RDMA transport dlopens libibverbs when make lib finds its headers, so rayforce-sys links -ldl on Linux, as the core's Makefile does, for glibc before 2.34. The link directives now read the target OS from CARGO_CFG_TARGET_OS rather than the build script's host. - rayforce-q 2.7.0 decodes q timespans, so the q tests stop expecting a refusal and check the decoded vector. It also turns a table's text columns into RAY_STR vectors in q_decode, but not in q_decode_cols. q::decode_response_cols now converts a kept text column, a list of string atoms, into a string vector itself, for a plain table and a keyed table's value side, so it again equals decoding the projection. A one-character text column, a q char vector, still fails inside q_decode_cols; a test pins that until rayforce-q fixes it. - build.rs and ci.yml cite the core's Makefile and headers by line, and every citation had drifted; they point at the new lines. The ~700 functions in the private headers are ~800 now. cargo test --workspace passes on the vendored pins with the IPC tests required against a server built from the same staged core, release and DFD debug (RAY_DFD=1) alike, 187 tests each, and on the sibling checkouts. clippy -D warnings, fmt and rustdoc -D warnings are clean; cargo package -p rayforce-sys verifies, 249 files, 3.0 MiB compressed.
The server-binary step found rayforce-sys's staged core by globbing target/debug/build/rayforce-sys-*/out/core. Cargo 1.100.0, stable since 2026-11-09, moved build-script output to build/<pkg>/<hash>/out, so the glob matched nothing and both legs failed with "no staged core under target/debug/build". Cargo documents that layout as an implementation detail; any branch, master included, fails the same way on 1.100. The step now reads OUT_DIR from the build-script-executed message of `cargo build --message-format=json-render-diagnostics`. Cargo sends it for an up-to-date build script too, and on 1.97 and 1.100 alike. It is also exact where the glob was not: after Clippy's own build, the newest of several staged cores was the one picked. The JSON goes to a file rather than a pipe, so under `bash -e` a failed build still fails the step. Checked by running ci.yml's run steps verbatim on clean clones under 1.100.0: the old step fails with the CI error, the new one passes on both legs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.