check(4, "RunExternalM2") failing on macos-14
Nobody has claimed this yet.
- Dominant language
- Macaulay2
- Stars
- 435
- Forks
- 297
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 11
Description
This check runs the following code:
```m2
fn=temporaryFileName()|".m2";
fn< (
startTime:=cpuTime();
while(cpuTime()-startTime"ulimit -t 2");
assert(not(r#"return code"===0));
assert(r#value===null);
```
The goal is for the `ulimit -t 2` to interrupt the function that's supposed to spin for 6 seconds after only 2 seconds. But for some reason, this isn't happening on the GitHub maos-14 runners:
```m2
-- running check(4, "RunExternalM2") -- running failed
-- error log: /var/folders/y6/nj790rtn62lfktb1sh__79hc0000gn/T/M2-35190-0/8.tmp:0:1:(3):[14]:
-- input code: /Users/runner/work/M2/M2/M2/Macaulay2/packages/RunExternalM2.m2:1051:5-1070:3
*** error: M2 exited with status code 1 -- 6.5484s elapsed
=============================================================================
/Users/runner/work/M2/M2/M2/Macaulay2/packages/RunExternalM2.m2:1051:5-1070:3 error:
-- );
-- ///<"ulimit -t 2");
-- Running (ulimit -t 2 && (/Users/runner/work/M2/M2/M2/BUILD/build/usr-dist/arm64-Darwin-macOS-14.7.6/bin/M2-binary --stop --no-debug --silent -q <"/var/folders/y6/nj790rtn62lfktb1sh__79hc0000gn/T/M2-35534-0/1.m2" >"/var/folders/y6/nj790rtn62lfktb1sh__79hc0000gn/T/M2-35534-0/1.out" 2>&1 ))
-- Finished running.
--
-- i4 : assert(not(r#"return code"===0));
-- stdio:13:6:(3): error: assertion failed
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The failing check is in packages/RunExternalM2.m2 at lines 1051–1070. Start by running check(4, "RunExternalM2") on macos-14 and inspect how the PreRunScript ulimit -t 2 command is invoked. Done means the spinning function is interrupted, the return code is nonzero, and r#value is null.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos
- Domain
- operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100