Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Task autotest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
Task autotest
Compare revisions
5812accc7c6897c1b82f83e84b7386181866bec5 to 3caf0ff515efa5cac5eca8fdf38bbf0c22408ab5
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
jirikalvoda/task-autotest
Select target project
No results found
3caf0ff515efa5cac5eca8fdf38bbf0c22408ab5
Select Git revision
Branches
master
1 result
Swap
Target
jirikalvoda/task-autotest
Select target project
jirikalvoda/task-autotest
1 result
5812accc7c6897c1b82f83e84b7386181866bec5
Select Git revision
Branches
master
1 result
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source
2
Test: Fix wrong path
· b3f581c6
Daniel Skýpala
authored
Nov 25, 2023
yet again
b3f581c6
Refresh: Fix directory
· 3caf0ff5
Daniel Skýpala
authored
Nov 25, 2023
3caf0ff5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
task_autotest/refresh.py
+1
-1
1 addition, 1 deletion
task_autotest/refresh.py
task_autotest/test.py
+7
-3
7 additions, 3 deletions
task_autotest/test.py
with
8 additions
and
4 deletions
task_autotest/refresh.py
View file @
3caf0ff5
...
...
@@ -25,7 +25,7 @@ def test_random(task_commits: dict[str, str]):
shuffle
(
task_commits
)
for
task
,
commit_hash
in
task_commits
:
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
config
.
DATA_DIR
,
path_to_str
(
task
),
commit_hash
)):
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
config
.
DATA_DIR
,
"
tests
"
,
path_to_str
(
task
),
commit_hash
)):
return
test_task_commit
(
task
,
commit_hash
)
return
None
...
...
This diff is collapsed.
Click to expand it.
task_autotest/test.py
View file @
3caf0ff5
...
...
@@ -20,17 +20,21 @@ def test_task_commit(task_path: str, commit_hash: str, workdir="_test") -> None:
with
open
(
outdir
+
"
time
"
,
"
w
"
)
as
f
:
f
.
write
(
str
(
int
(
start_time
)))
task_path
=
os
.
path
.
join
(
config
.
REPO_DIR
,
workdir
,
task_path
)
def
run_pisek
(
args
,
output
):
print
(
"
Run pisek
"
)
with
open
(
os
.
path
.
join
(
outdir
,
output
),
"
w
"
)
as
out
:
re
turn
subprocess
.
run
(
re
s
=
subprocess
.
run
(
[
"
pisek
"
]
+
args
,
stdout
=
out
,
stderr
=
subprocess
.
STDOUT
,
text
=
True
,
cwd
=
os
.
path
.
join
(
config
.
REPO_DIR
,
workdir
,
task_path
),
cwd
=
task_path
)
print
(
"
Finished running pisek
"
)
return
res
lock
=
os
.
path
.
join
(
outdir
,
"
.pisek_lock
"
)
lock
=
os
.
path
.
join
(
task_path
,
"
.pisek_lock
"
)
if
os
.
path
.
exists
(
lock
):
os
.
unlink
(
lock
)
...
...
This diff is collapsed.
Click to expand it.