Skip to content

Spam less when pressing ctrl+c #425

@Matistjati

Description

@Matistjati

This is an absurd amount of spam IMO. Might be nontrivial to reduce

verifyproblem 2026-04/cellidentifikationsvar/ -t 1 -j 3 -p submissions
Loading problem cellidentifikationsvar
Checking submissions
ERROR AC submission joshua.cpp (C++) got TLE [CPU: 1.04s @ testcase secret/group1/007-g1-k7]
                  cellidentifikationsvar
╭────────────┬────────┬────────┬────────┬────────┬───────╮
│ Submission │ sample │ group1 │ group2 │ group3 │ Score │
├────────────┼────────┼────────┼────────┼────────┼───────┤
│ joshua.cpp │ 0.00s  │  TLE   │  TLE   │  TLE   │     0 │
╰────────────┴────────┴────────┴────────┴────────┴───────╯
^CTraceback (most recent call last):
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/verifyproblem.py", line 1854, in check
    item.check(context)
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/verifyproblem.py", line 1672, in check
    sub_results = self.check_submission(sub, context, acr, timelim, timelim_high, getattr(results_table, "add_row", None) and results_table, acr)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/verifyproblem.py", line 1441, in check_submission
    results_high = judge.judge(timelim_high)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/judge/submission_judge.py", line 112, in judge
    return self._judge_group(self._root, timelim)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/judge/submission_judge.py", line 179, in _judge_group
    sub = self._judge_group(item, timelim)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/judge/submission_judge.py", line 179, in _judge_group
    sub = self._judge_group(item, timelim)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/judge/submission_judge.py", line 189, in _judge_group
    result = self._judge_testcase(item, timelim)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/judge/submission_judge.py", line 158, in _judge_testcase
    result = self._run(testcase, timelim)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/judge/submission_judge.py", line 115, in _run
    return execute_testcase(
           ^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/judge/execute.py", line 220, in execute_testcase
    result = _run_pass(testcase.infile_path, testcase, sub, output_validator, metadata, timelim, execution_dir, diag)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/judge/execute.py", line 173, in _run_pass
    return _run_normal(infile, testcase, sub, output_validator, metadata, timelim, execution_dir, diag)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/judge/execute.py", line 71, in _run_normal
    status, runtime = sub.run(
                      ^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/run/program.py", line 57, in run
    status, runtime = self.__run_wait(runcmd + args, infile, outfile, errfile, timelim, memlim, work_dir)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/run/program.py", line 135, in __run_wait
    (pid, status, rusage) = os.wait4(pid, 0)
                            ^^^^^^^^^^^^^^^^
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/verifyproblem.py", line 2054, in main
    errors, warnings = prob.check(context)
                       ^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/verifyproblem.py", line 1860, in check
    context.wait_for_background_work()
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/context.py", line 44, in wait_for_background_work
    concurrent.futures.wait(self._background_work)
  File "/usr/lib/python3.12/concurrent/futures/_base.py", line 305, in wait
    waiter.event.wait(timeout)
  File "/usr/lib/python3.12/threading.py", line 655, in wait
    signaled = self._cond.wait(timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/threading.py", line 355, in wait
    waiter.acquire()
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/verifyproblem.py", line 2070, in <module>
    main()
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/verifyproblem.py", line 2053, in main
    with Problem(problemdir, diag) as prob:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools_subtask_tables/problemtools/verifyproblem.py", line 1798, in __exit__
    shutil.rmtree(self.tmpdir)
  File "/usr/lib/python3.12/shutil.py", line 759, in rmtree
    _rmtree_safe_fd(stack, onexc)
  File "/usr/lib/python3.12/shutil.py", line 703, in _rmtree_safe_fd
    onexc(func, path, err)
  File "/usr/lib/python3.12/shutil.py", line 700, in _rmtree_safe_fd
    onexc(os.unlink, fullname, err)
  File "/usr/lib/python3.12/shutil.py", line 698, in _rmtree_safe_fd
    os.unlink(entry.name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/verify-cellidentifikationsvar-411e7pre/tmpxgm4cp4y'
^CException ignored in: <module 'threading' from '/usr/lib/python3.12/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1594, in _shutdown
    atexit_call()
  File "/usr/lib/python3.12/concurrent/futures/thread.py", line 31, in _python_exit
    t.join()
  File "/usr/lib/python3.12/threading.py", line 1149, in join
    self._wait_for_tstate_lock()
  File "/usr/lib/python3.12/threading.py", line 1169, in _wait_for_tstate_lock
    if lock.acquire(block, timeout):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions