Repository navigation
Conversation
A processor record can carry more than one flags line. The guard keeps the flags every line shares, and a march that needs waitpkg is dropped when any of those lines lacks it. Scoping the file down to the processors a task may run used only the first flags line of each kept record, so a richer first line put waitpkg back and the task was offered that march. The scoped record intersects every flag line inside a kept processor, then intersects those sets across the processors that remain. Identical records stay in the original file, where the same intersection is read.
Python dirname leaves a leading pair of slashes in place, the special form POSIX allows. A cpuset walk that starts at //job therefore steps from // to an empty path and reads cpuset.cpus.effective beside the working directory. The guard treats that list as the task cpuset. On a host whose processors do not share a march, the task is judged on the wrong processor and a Sapphire Rapids stack stays loaded for a task that can also run on Haswell. An all-slash directory is the filesystem root. The walk reads that directory and stops. The native guard already stops there, because its dirname of //job is /.
GCC spells the Sapphire Rapids feature mask under the name emeraldrapids as well, and that mask includes WAITPKG. The guard listed sapphirerapids only, so a cpupath candidate with the leaf emeraldrapids stayed eligible when cpuinfo had no waitpkg. A binary built for that march then raises SIGILL. Both fronts reject that leaf unless the shared flags include waitpkg, and take the next installed candidate.
GCC maps gracemont, meteorlake and raptorlake to the Alder Lake feature mask and lunarlake to the Arrow Lake S mask. Both masks include WAITPKG. The guard listed only the base names, so a cpupath candidate with one of these leaves stayed eligible when virtual CPUs hid the flag, and a binary built for that march could fault. Both front ends reject these leaves unless the shared flags include waitpkg. The list stays sorted. A test runs each alias against a cpuinfo fixture without waitpkg and expects the next installed candidate, and a Zig unit test checks the same four names.
Python reads cgroup.controllers as text and asks whether cpuset is one of the words from str.split(). Unicode whitespace separates the words. A no-break space or an ideographic space between names still leaves cpuset named. So does U+001F around a name. Bytes that are not valid UTF-8 become the replacement character, which is no whitespace and joins the word it touches. The Zig guard split the file on ASCII whitespace only. A controllers file whose cpuset was set apart by any other whitespace gave one longer word and no cpuset. controllersAllow turned the directory away and the walk went on to the parent. Python used the directory, so the two programs could take different cpusets for the same cgroup tree and scope the cpuinfo to different processors. controllersAllow decodes the file with replacement and splits it with the pySplit helper of zig-common. It then compares each word with cpuset. A Zig unit test builds a directory for each case and calls controllersAllow. A whole-program test also reaches the walk. It starts each program in a private mount namespace with a generated tree bound over the cgroup root, each on a fresh site through the differential runner. The tree has the cgroup path of the test process and a leaf whose controllers file separates cpuset from the other names by a no-break space. Python takes the leaf, and the guard chooses the Icelake directory that processor 1 allows. The Zig program on the previous tree chose the generic directory. The Python test file covers the same cases for the reference. It adds a cpuset file of whitespace alone, which both programs skip as empty. The whole-program test does not skip. A host that cannot make the namespace fails it with the reason the probe found and the sudo sysctl command that lifts Ubuntu's AppArmor limit. The probe runs through the timed runner of the shared module. A shared composite action lifts that AppArmor limit on unprivileged user namespaces where the kernel has it, and both ci.yml and release.yml call it before running the suite.
Three tests that follow each need a stub program in place of eb-stack. Each one builds a prefix tree with one module file and writes the stub as an executable script. Each sets a clean environment and runs a guard in check-submit mode. The three copies differ in small details only. The shared runner module under tests gains one function for that job. Its arguments are the program to run and the bytes the stub writes to each stream. The exit status of the stub is an argument too, and so is a flag that makes the stub also name the flagged modules of the easystack file, after the supplied standard output. The stub writes the supplied standard error in both cases. Extra environment settings can be passed. The function returns the exit status and the parsed JSON object, followed by the bytes of standard error. A check-submit test runs the Python guard and the binary through that runner when the stub flags the loaded module and also writes to standard error. Under exit status 1 the guard reports the missing module and does not treat standard error as an eb-stack failure. Under exit status 0 it reports the loaded module as available. Under exit statuses 2 and 3 a flagged line does not count as a missing module, and the guard reports eb-stack's failure from standard error ahead of standard output. The tests that follow use the same runner, and each drops its own copy.
Python strips the text. When eb-stack fails without naming a flagged module, check-submit shows the first of stderr and stdout that has text, after str.strip(). That call removes every Unicode whitespace character. A stderr that is one no-break space counts as empty. So does a stderr of one U+001F. The message is then taken from stdout. The Zig guard removed ASCII whitespace only. A stderr of any other whitespace alone was text to it. The message was that whitespace, which the one line reducer turned into nothing, so the failure read as the bare prefix while Python reported the stdout of eb-stack. The exit status was the same, but the message differed in the JSON and on stderr. The detail is cut with the pyStrip helper of zig-common for both streams. A message padded with whitespace was the same in both programs, since the reducer collapses the padding. The test keeps those cases to show that. The new test makes eb-stack fail with a stderr and a stdout for each whitespace character that str.strip() removes, on a tree of its own. A stub program replaces eb-stack in the test and prints those streams. No real eb-stack can be made to write whitespace alone. The stub runs through the shared stub runner. The test checks the messages that Python gives and compares both programs. The comparison skips when no binary is named for the run.
When eb-stack fails, check-submit reports the first of its stderr and stdout that has text. The Python guard read both in text mode, which decodes with strict errors. One byte that is not UTF-8 raised a UnicodeDecodeError. Main caught it and printed a failed decision with exit status 0. The failure of eb-stack should end the run with exit status 2 and its text as the message. The Zig guard now reads the bytes and keeps each invalid byte as one character. The surrogateescape decoder does the same. Its JSON message has the escaped surrogate, and its standard error line has a question mark in place of the byte. The two programs differed on any eb-stack that prints a byte such as 0xff. The Python guard reads both streams as bytes and decodes them as UTF-8 with surrogateescape. It then translates the newlines as text mode does, so valid input reads as it did. The writer of the standard error line puts a question mark in place of a surrogate escape. A stream with strict error handling cannot write one. The JSON message keeps the escaped character. The new test drives a stub program in place of eb-stack. The stub writes the bytes it is given to its streams, and it runs through the shared stub runner. The test runs the Python guard with the default stream settings and with strict error handling on its streams. It checks the exit status and both messages. The cases cover an invalid byte in either stream. They cover a cut multibyte character and valid text too. A module flagged beside an invalid line is still named. The two programs are then compared, and the comparison skips when no binary is named for the run. The Python runs leave out isolated mode, because it ignores the environment setting that makes the streams strict.
Python check-submit shows the first part of the stderr of a failed eb-stack. It shows the stdout instead when the stderr is blank. It also looks for flagged modules in the lines of the stdout. The Python guard reads both streams in text mode, so a carriage return with a line feed and a lone carriage return each reach the code as one line feed. The message then has one space for each line end. The lines of the stdout come from str.splitlines. That method also ends a line at eight more characters, from the vertical tab to the paragraph separator. The test names each of them. The Zig guard read the bytes as they came. A pair of carriage return and line feed showed as two spaces, so the message differed from the Python one by a space for each pair. The guard missed a flagged module when its line followed a carriage return or any of the eight other line ends. The run ended with the failure of eb-stack where Python reports the missing module with exit status 1. The Zig guard turns each pair and each lone carriage return into one line feed before it splits or trims either stream. It splits the lines of the stdout with a new text function that ends a line at the same characters as str.splitlines. Three of them take more than one byte in UTF-8. A byte that is not UTF-8 never ends a line, as with the surrogateescape decoder. The guard module had a list-building copy of the same split for the architecture probe and for processor info, and a first-line helper for probe errors. Both go, and those callers use the text function, so the guard has one splitlines. A parity test runs both programs against a stub in place of eb-stack. The stub writes pairs and lone returns to its stderr or its stdout and exits with status 3. Further cases have it name a flagged module after each of the nine line ends. Python alone is checked for the messages first.
Pushes to develop and pull requests against it now trigger the same workflows as main. Deploy jobs still publish from main only.
fix: intersect repeated cpuinfo flags when scoping
fix: require waitpkg for the emeraldrapids march
The Zig restore helper answered a bad request with one of three fixed lines. It refused an array or object nested past 32. The Python guard reads that document and prints the exception from the UTF-8 codec or from the JSON decoder. The Zig guard now classifies those bytes with the same rules. A bad UTF-8 sequence names the start byte, the continuation byte, or the truncated sequence, at the same position. A JSON error carries the same message, line, column, and character offset. NaN, Infinity, and -Infinity stay a ValueError. A value that is not an object names the Python type in the attribute error. Arrays and objects nested 31, 32, and 33 deep follow the Python guard.
The Zig build failed against zig-common develop because lockExclusiveCancel now takes ?u64 while guard supplied ?u32.
The tests made their sites in the system temporary directory. The guards they started had no TMPDIR unless a test set one, so their restore workspaces, scoped cpuinfo copies and check-submit planner directories went there too, as did the job cache files. A cache file is named by the user and the job alone, and several tests use the same job. A full run left more than nine hundred entries in /tmp. Two runs at the same time could read, replace or remove the cache file of the other, and a listing of /tmp/eessi-arch-guard-* saw the directories of the other run. A new tests/private_tmp.py makes a directory for the test process when it is first imported. It points TMPDIR and tempfile.tempdir at it and removes it at exit. `tests/harness.py` imports it, and so does each test module that makes temporary files without that module, so a module run alone is covered as well. A site makes its own mode 0700 temp directory, and base_env hands it to the guard as TMPDIR. The check-submit tests and the real eb-stack and Lmod tests that build their own environment hand the guard a directory of the test. The test of the fallback to /tmp when TMPDIR is missing still writes there, as it must. Its job is now named by the test process, so a second run cannot touch its cache file. A new test checks that the test process has its own temporary directory and that a guard started from base_env writes its cache file under the site. Both checks fail without the change.
The guard fixes after this one call helpers that the v0.12.0 tag of zig-common lacks: the decimal digit reader, the report of the directory a failed mkdtemp names, the port of tempfile.gettempdir, and mkstemp. They are merged into zig-common main. No tag carries them yet. The dependency moves from the v0.12.0 tag to that main commit, with the package hash of its tree. The hash is the one zig fetch reports for the URL, so a clean machine resolves it from GitHub. Main also has the other changes made since the tag. The guard and its tests pass with them. The lock call of zig-common now takes a 64 bit timeout. The call site of the guard on develop already accepts either width, so only the dependency changes here.
check-submit makes its planner directory with tempfile.mkdtemp, which asks tempfile.gettempdir for a base. That function tries each candidate by creating a file in it and writing four bytes. When none takes the probe, it raises a FileNotFoundError that lists the candidates. The guard reports the text as a failed eb-stack run. The Zig guard carried two copies of its own chooser, one in main.zig for the planner directory and one in guard.zig for the cpuinfo copy and the restore workspace. Each tested a candidate with an access check, which accepts a directory that cannot take a file. Under a size limit check-submit failed later, at the first planner write, with a different message. zig-common now has fsx.TempDir, a port of gettempdir. It follows the order of tempfile and probes each directory by writing. It returns the text Python would raise. Both copies are gone. The planner directory, the directory of the cpuinfo copy and the last fallback of the restore workspace come from fsx.TempDir. The guard keeps its answer for the process, as tempfile does. When no candidate takes a file, check-submit reports the could not run eb-stack prefix followed by the text. The text is cut at 200 characters as Python cuts it. The exit status is 2, and JSON output carries the same line. The restore reports the text as the reason its workspace is unavailable, the same text Python raises there. The cpuinfo copy still falls back to the unscoped file in that case, as it did with the old chooser. A parity test runs each program on a fresh site through the differential runner, under the shared size limiter with the limit at zero. Every probe write then fails with `EFBIG`. The eb-stack stub is on PATH. The test compares exit status and both output streams as text and as JSON. One run leaves the variables that name a temporary directory unset. One sets a directory long enough that the message is cut.
When the work base cannot be written, Python's restore step reports the OSError from tempfile.mkdtemp. Its text has the errno text and then the directory that was tried, as in errno 13 with the text Permission denied and the path of the random name. The Zig guard printed a fixed sentence with no errno and no path. The restore helper printed another fixed sentence for the directory of the Lmod shell code. The private directory helper already made its directory with fsx.mkdtemp, which says only that the call failed. It now calls fsx.mkdtempReport, which also gives the OSError text Python would raise, formatted with pytext.osError, and the helper hands that text to its callers. Both places print it, so the errno text and the path that was tried match Python, quoting included. The unit test of the helper is renamed for fsx.mkdtempReport and checks that text for a missing base directory. The test runner takes an optional input, so that the parity test can feed the restore helper its request.
The restore helper writes the shell code that Lmod printed to a private file. It writes a small wrapper beside it and runs the wrapper. When one of those writes fails, Python lets the OSError out of the helper. The helper then reports the restore as failed with its text. An example is errno 27 with the text File too large. The text names the file for a failed open and for the chmod after the wrapper. It does not name the file for a failed write, because os.write raises without a file name. The Zig helper collapsed every failure of the private write into a boolean and printed one fixed sentence. The errno and the file name were gone before the message was built. The private write returns the error and records which call failed. The caller formats an open or a chmod failure with pytext.osError, which puts the file name in repr form. It formats a write failure with sys.describe straight after the failing call, so the recorded errno is still the one that failed. The other callers of the write keep their boolean form through a small wrapper. A parity test runs the helper alone under both programs, each on a fresh site through the differential runner. The shared size limiter caps the file size at zero, and the kernel refuses the first write. The Lmod command only prints. The fresh-site runner of the differential module takes a function that makes the input of a run from its environment, since the restore request names paths of the site. Unit tests cover the open and the exists cases.
The restore helper writes the shell code that Lmod printed to a private file. It writes a small wrapper that sources it to another file. Python writes each file with one os.write. A short write raises nothing. The file has the first bytes of the code, and bash runs what is there. The Zig helper wrote the files with a loop that goes on until every byte is out. The next call of that loop fails once the size limit is reached. So a limit that cut a script short ended the helper with an error. The parent then reported a failed restore helper. Python reports whatever the cut script made bash do, such as a failed module load. The same loop served the temporary cpuinfo files, which Python also writes once. The private write makes one write call and treats a return of fewer bytes as success. A failed call is still an error, and the write step keeps its errno text from the earlier commit. A parity test checks the write step. It runs the helper alone under both programs, each on a fresh site through the differential runner, with the request on standard input and the shared size limiter at 100 bytes. The Lmod command of the test prints a fixed script. The first 100 bytes of that script end inside a comment line, ahead of the line that sets a marker variable. The cut of the script is the same on every run and does not depend on the workspace path. The test checks Python alone for the effect of the short script, then compares both programs on exit status and both output streams.
A restore writes its Lmod scripts into a private workspace. It then writes the scoped cpuinfo copy that the CPU detection reads, with a single os.write. When a file size limit stops that write short, Python goes on with the short file and detects the CPU from the part that was written. The shared size limiter of the differential module sets the limit, and each program runs on a fresh site. The limiter caps the file size with the signal for an oversize write ignored. The kernel then returns a short write and sends nothing. The limit is above the largest restore script and below the size of the copy. The cpuinfo has a long line ahead of the flags. A cut inside that line leaves a vendor and no flags. The detection then picks the generic target instead of the target of the full file. Python alone is checked for that outcome, with the strict policy and without it, so that the case shows the limit reaching the copy. Strict mode restores only in a private workspace. The site hands the guard a private TMPDIR, so a strict run reaches the restore and the copy too. Both programs are then compared on exit status and both output streams. The comparison covers text and JSON modes, each with the strict policy and without it. The helper's own tempfile.gettempdir probe cannot be failed on its own. Its temporary directory is the workspace, where the scripts are written first and are larger than the four byte probe. Any limit that fails the probe has already failed a script. The test therefore covers the copy and not the probe. The limits stay clear of the script sizes, because the Lmod fragment carries the workspace path.
A comparison of the Python guard and the Zig program that runs both on one Site shares the event log of the fake Lmod between them. The log is a file, and a limit on the size of any file a program writes caps it. The program that runs second finds the log part full and fails where the first did not. A comparison at a limit of 200 bytes reported a difference in the message of the whole guard that neither program has alone. The system calls of both programs showed the cause. The log write of the second program is the one that reaches the cap. The differential module already gives each program a site of its own and starts it under the shared size limiter when asked. Two new tests use it. Both programs must agree on exit status and output at four limits from 100 to 300 bytes and in three output modes. At 200 bytes the log of each program must be the size the Python guard writes alone. The comparisons skip when no binary is named for the run. The commit sits on the single write fix of the same series. Without that fix the Zig helper fails at limits of 150 and 200 where Python goes on with the cut script. The size limit comparison cannot pass below it.
The guard writes a scoped cpuinfo to a temporary file when the task may use only some processors of the node. The CPU detection reads that file. Python makes the file with tempfile.mkstemp, which takes its directory from tempfile.gettempdir. That call tries the directories named by the environment and then the system ones. It creates and writes a probe file in each. When none takes a probe file, Python raises a FileNotFoundError with the list of candidates. Nothing catches it. The guard skips with that text and leaves the environment as it was. The Zig guard already takes the directory from fsx.TempDir and, since the restore script commit, writes the copy with one write call. But it named the file with a loop of its own, and it treated any failure as no file: when fsx.TempDir found no directory, or the open or the write failed, it ran the detection on the unscoped cpuinfo. That file describes processors the task may not use. The node could get a target that the task cannot run, and the skip Python reports never happened. The temporary file now comes from fsx.mkstemp, and the copy is written to the descriptor it returns. A failure is no longer dropped. It is kept as the exception class and text Python raises. When no directory takes a file, that is FileNotFoundError with the list of candidates. Otherwise it is the OSError of the failed open, with the path that was tried, or of the failed write. The guard reports that text as it does for any other OSError and skips. The restore helper reports it as the reason the restore failed, as Python does when the error leaves its helper. A parity test makes the failure real without privileges. Each program runs on a fresh site through the differential runner, and the shared size limiter caps the size of any file it may write. A cap of zero makes every probe write fail with `EFBIG`. A larger cap makes the copy short. Both programs run in each output mode and are compared on exit status and on both output streams.
The Python timeout parser hands its text to float(). float() reads each character that has a decimal value as that digit. A timeout written with the Arabic-Indic digit three is three seconds, and one written with fullwidth digits for ten is ten. The guard prints the timeout it chose in its dry-run report. The Zig guard accepted `ASCII` digits only. A timeout in another script failed its parse. The guard warned that the value was not a positive number and ran with the default of 60 seconds, where Python used the value given. The float reader writes the text through the decimalToAscii helper of zig-common first and keeps its own parser for what is left. The rest of the syntax behaves as before. Characters that are not decimal digits stay refused. A superscript two and a circled one are examples. A byte that is not UTF-8 stays refused too. The new test runs both programs on values in Arabic-Indic digits and in fullwidth digits. Some values have a digit separator and some have a fraction. Each value runs in both spellings of the option. The runs use JSON output and plain output. Values that float() refuses are included too. Python alone is checked for the timeout it reports. The Zig unit test of the float reader gains the same cases.
Python strips the Slurm CPU bind list variable with str.strip(). It strips the part of the CPU bind variable after the last colon the same way. That call removes every Unicode whitespace character. Python reads each mask of a mask list with int(piece, 16). int() takes a decimal digit of any script as that digit. It accepts one digit separator after the `0x` prefix and single separators between digits. It skips whitespace around the text, though not U+001C to U+001F. The Zig guard trimmed `ASCII` whitespace only, wherever it trimmed. It read a mask with `ASCII` hex digits and nothing else. A bind value that Python reads as processor 1 was ignored by Zig. A list that ends in a no-break space is one such value. A mask written with Arabic-Indic digits is another. The guard then chose the CPU with every processor in view, and the two programs named different directories for the same task. The cpu spec parser and the bind reader strip with the pyStrip helper of zig-common. So does the walk over the cpuset files, where a file of Unicode whitespace alone is skipped as an empty one. The hex mask reader reads the mask the way int() does. One pass validates the text and counts the digits. Then it sets the bits, using the decimalDigit helper that the text module re-exports. The characters U+001C to U+001F are removed around the bind value and kept inside a piece. A piece that ends in one is refused by both programs. The new test gives the Python guard a cpuinfo in which processor 0 lacks the flags of the others. A bind value read as processor 1 then shows in the directory chosen. It checks that Python chooses the Icelake directory for each value it reads and ignores each value it refuses. It then compares the two programs, each on a fresh site through the differential runner. The comparison skips when no binary is named for the run. Zig tests list the same masks and a padded cpuset file.
Python reads both kinds of line. The Python guard limits a cpuinfo to the processors a task may use. It strips each line with str.strip() and splits a field name or a flag list with str.split(). The number on a processor line comes from a regular expression whose digit class takes a decimal digit of any script. The strip and the split work on Unicode whitespace. A no-break space or U+001F is then only padding wherever it sits in a line. The Zig guard cut `ASCII` blanks and read `ASCII` digits only. A processor line that Python read was no header to Zig. It might have a no-break space at one end or Arabic-Indic digits for the number. Its processor fell into the block before it and was left out of the task. One of those characters in the name or tokens of a flags line made it no flags field, or a single token. The flags of the processors were then not intersected. The guard saw a richer CPU than the task could use, and the two programs named different directories. The functions that read a cpuinfo line strip and split with the pyStrip and pySplit helpers of zig-common. The processor number reader uses decimalDigit, which the text module re-exports. Python allows only a space or a tab around the colon of a processor line, and the guard keeps to that. The new test runs the Python guard on a cpuinfo whose processor 0 lacks the flags of the others. A header or a flags line that Python reads then shows in the directory chosen. It checks that Python chooses the Icelake directory for each text it reads and not for the headers it leaves out. It then compares the two programs, each on a fresh site through the differential runner. The comparison skips when no binary is named for the run. The whitespace characters at which splitlines ends a line are not used: both guards split the file there before a line is read, and the line break parity test covers them. A Zig test covers the same lines.
fix(zig): match Python stderr text on `--restore` stdin errors
Python reads the processor lines and the flags lines of a cpuinfo with regular expressions that ignore case. For text, that form of the match folds U+017F, the long s, to an s. A processor line may spell its first word with long s letters in place of the two s. A flags line may end its first word with one. The Zig guard compared the words with an `ASCII` case-insensitive match and skipped both. A flags line that Python read and Zig skipped left Zig without the waitpkg flag. It turned away a candidate directory that needs the flag, while Python kept it. A processor line that Zig skipped left its processor out of the task. The two programs then chose different directories for the same cpuinfo. Like the regular expression, foldedWord matches a lower case `ASCII` word at the start of a line. The two bytes of U+017F count as an s, and the function returns how many bytes it took. processorId and readCpuFlags use it for the words processor and flags. The names that cpuField collects are not folded. Python lower-cases them with str.lower(), which leaves the long s as it is. A field with that letter in its name is no flags field there either. Python also reads the processor line itself as a field of the block it starts and drops only the field named processor, so a header spelled with a long s stays a field. The Zig guard went on to the next line after a header. It now reads the header as a field too and keeps it unless its name is processor. Two processors alike but for such a header then differ in both programs, and both write the scoped copy. The new test gives the Python guard a cpuinfo with one flags line. That line has waitpkg. The key is written in `ASCII` and with long s letters of each case. A processor line written with long s letters is a second case. The test checks that Python chooses the directory that the flag or the processor selects. A control without waitpkg chooses the fallback. A third case has two processors alike but for the header of the second, run with the file size limit at zero. Python fails to place the copy there and reports the error of tempfile.gettempdir. With a plain header it writes no copy and gets as far as the detection. The two programs are then compared, each on a fresh site through the differential runner. The comparison skips when no binary is named for the run. Zig tests cover foldedWord and the header field.
fix(zig): adapt lock timeout to widened API
Give each test run its own temp dir and pin zig-common to main
test: trim the suite
eessi_arch_guard._launch.execv(path, argv) wraps execv(2). main() calls it instead of os.execv; a missing extension fails the import. The extension is multi-phase and keeps no state; it declares Py_mod_gil as not used wherever the headers define the slot. Stable ABI functions checked against CPython 3.14 Misc/stable_abi.toml, all added in 3.2 unless noted: PyArg_ParseTuple, PyUnicode_FSConverter, PySequence_Check, PySequence_Size, PySequence_GetItem, PyBytes_AsString, PyErr_SetFromErrnoWithFilenameObject, PyErr_SetString, PyErr_NoMemory, PyMem_Malloc, PyMem_Free, PyType_GetFlags (behind PyUnicode_Check and PyBytes_Check), Py_DecRef, PyModuleDef_Init (3.5). PyMem_Calloc is not used: the 3.9 limited-API header does not declare it. Py_mod_gil is 3.13 and Py_mod_multiple_interpreters 3.12, so both sit behind #ifdef. GIL CPython builds with Py_LIMITED_API=0x03090000 and the wheel is tagged cp39-abi3; free-threaded CPython builds without it (cp313t, cp314t). The get_tag override that wrote a manylinux2014 tag by hand is gone, and pyproject carries the cibuildwheel selection. tools/check_wheel.py validates the new wheel set: cp39-abi3 with one _launch.abi3.so, cp313-cp313t and cp314-cp314t with _launch.cpython-31Xt-*.so, the bundled binary and the Free Threading classifier; --local accepts linux_ARCH for wheels built outside manylinux. src/eessi_arch_guard/*.so is ignored.
test_launch.py checks argument types, embedded NUL, a missing file with its filename, a directory, leaks on the failure path, and a real exec in a child. The free-threading probe imports _launch before it reads the GIL and calls execv on a missing path from 16 threads.
CI and release build cp39-abi3, cp313t and cp314t wheels in the manylinux2014 images on x86_64 and ubuntu-24.04-arm runners, with the static binary staged into the package first. CI installs the x86_64 wheels on 3.9, 3.12, 3.14, 3.13t and 3.14t. Unit-test jobs build _launch in place first. check_install.sh installs a given WHEEL, else builds one and checks it with --local. tools/check_wheel.py (changed in the extension commit) checks the abi3 and free-threaded wheel sets, accepts linux_ARCH only with --local.
README, DESIGN, RELEASING, the contributing guide and the free-threading changelog fragment name the cp39-abi3, cp313t and cp314t wheels, the _launch extension, and the in-place build the checkout tests need.
…epair writes auditwheel repair --plat manylinux2014_ARCH writes a compressed platform tag that also lists manylinux1, manylinux2010 and manylinux_2_N variants; every component must still be a manylinux tag of the supported arches.
U+1171E AHOM CONSONANT SIGN MEDIAL RA is Mn in Unicode 13.0.0 and 15.1.0 and Mc in 16.0.0, which Python 3.14 uses, so it left the case-ignorable class as U+1734 did in 14.0.0. A capital sigma after it lower-cases as medial sigma on 3.14 while the guard keeps Unicode 13.0.0. The sigma test failed on 3.14 and 3.14t with ['U+1734', 'U+1171E'] != ['U+1734']. SIGMA_CLASS_CHANGED and COMPAT.md now list it; test_pylower_table passes on 3.9, 3.13, 3.14 and 3.14t.
Python guard, test_unit, test_cgroup_v1, test_site_path, test_cvmfs_revision and test_cli_help_restore_precedence stay deleted; the waitpkg alias list from develop is in zig/guard.zig. The folded tables, shortened timeouts and handshake-based waits from develop apply to the binary tests.
The tables keep one row per outcome class; the sections of dropped rows and the two anchor sheets go, retained sections are unchanged, and the renamed accelerator and path rows are new sections.
Retire the Python guard; the package is a launcher for the binary
GCC 16 builds `wildcatlake` with the Panther Lake feature mask, which includes the `waitpkg` instructions. `waitpkg_marches` lists `pantherlake` and `novalake` but not `wildcatlake`. A cpupath candidate with that leaf stayed eligible when cpuinfo lacked `waitpkg`, and its binaries then died with an illegal instruction signal (SIGILL). Reject that leaf unless the shared flags include `waitpkg`, and take the next installed candidate.
fix: require waitpkg for the wildcatlake march
fsx.absPath returns an error for a relative path when the working directory has been removed. The config beside the program stops the run with the FileNotFoundError skip line, check-submit reports a failed eb-stack run, and the guard's program lookup treats the path as not found. The cache temporary file's failed close is now handled by state.writePrivate, so the COMPAT.md row for it goes.
…build tuple The docs print the version followed by the build in parentheses, so the bare-version pattern matched none of the three pages and the hook refused the bump. The pattern now takes the tuple, and the how-to's install command is set as well.
main carries the argparse refactor (#175) and a zig-common v0.13.0 pin that develop never got. The release keeps the zig-common v0.14.0 pin. zig/main.zig keeps main's argparse parsing and adds the options develop introduced since (--check-mount, --check-revision, --repo, --site, --eessi, --modulepath, --mountinfo, --stat, --min, --require-input) to cli_spec. The submit test calls the parser with an allocator; test_docs_surface reads the flags from cli_spec. The argparse note joins the 0.4.0 changelog; the 0.13.0 pin fragment is superseded.
This branch has not been deployed
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.
Four commits on top of
develop: the zig-common pin, a fix to the release hook, the tutorial's "Checked with" line, and the commitcog bump --version 0.4.0made. The tagv0.4.0is on the bump commit and is pushed after the merge. The PR tomaincarries all ofdevelopsince 0.3.1, so the changelog section is the 0.3.1 to 0.4.0 span: 3 features, 31 bugfixes, 5 docs and 12 misc entries.0.4.0 makes the static binary the only guard. The Python guard, the shadow comparison and the tests that compared the two are gone; the wheels carry the binary and a
_launchextension that execs it, withcp39-abi3,cp313tandcp314tbuilds.--check-mountand--check-revisionreplaceshare/sitepath.pyandshare/cvmfsrev.py. Thewildcatlake,emeraldrapidsand Raptor Lake family targets requirewaitpkg.The zig-common pin moves to v0.14.0 (
831c49e). Itsfsx.absPathcan fail for a relative path when the working directory has been removed, so the call sites handle it: the config beside a relative program path stops the run with theFileNotFoundErrorskip line,--check-submitreports that it could not run eb-stack, and the program lookup treats the path as not found. Itsstate.writePrivatechecks the close of the cache temporary file, so the Zig guard removes the file and keeps the cache name after a failed close; theCOMPAT.mdrow that listed the difference is gone, and the existing cache test now asserts that the old cache content survives. Zig unit tests cover the removed working directory.tools/release-preparematched--versionexamples that print the bare version, and the docs print the version with the build tuple, so the hook refused the bump. The pattern now takes the tuple, and the how-to's install command is set as well.Merge with a merge commit, so the tagged commit is on
main.