Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lhchavez committed Jan 24, 2023
1 parent c30762d commit a774a6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion container.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def getImageName(ci: bool) -> str:
imageName = 'omegaup/runner-ci'

taggedContainerName = f'{imageName}:v1.9.59'
taggedContainerName = 'omegaup/runner-ci:latest'
if not subprocess.check_output(
['docker', 'image', 'ls', '-q', taggedContainerName],
universal_newlines=True).strip():
Expand Down
13 changes: 2 additions & 11 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,30 +75,21 @@ def _testProblem(p: problems.Problem, *, threadAffinityMapping: Dict[int, int],
if len(threadAffinityMapping) == 1:
# No need to involve taskset. Just run the container normally.
tasksetArgs = [
#'--entrypoint', 'strace',
container.getImageName(ci),
#'-f',
#'-o/tmp/strace.txt',
#'--',
#'/usr/bin/omegaup-runner',
]
else:
# Mark the entrypoint as only being able to run in a single core.
tasksetArgs = [
'--entrypoint', 'strace',
container.getImageName(ci),
'-f',
'-o/tmp/strace.txt',
'--',
'--entrypoint',
'/usr/bin/taskset',
container.getImageName(ci),
f'0x{2**threadAffinityMapping[threading.get_ident()]:x}',
'/usr/bin/omegaup-runner',
]

args = [
'docker',
'run',
'--name=ci',
'--rm',
'--volume',
f'{rootDirectory}:/src',
Expand Down

0 comments on commit a774a6b

Please sign in to comment.