Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce archive.tira.io to prepare for usage in pyterrier-artifacts #671

Open
wants to merge 150 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
1a5fe8d
rough prototype that would be compatible with alpha pyterrier artifac…
mam10eks Aug 29, 2024
93f508f
helper method to get tasks
mam10eks Sep 3, 2024
860cf8c
use prepared docker image
mam10eks Sep 24, 2024
23d835d
Start lightweight client-side validation of formats #666
mam10eks Sep 24, 2024
445abd9
Merge pull request #667 from tira-io/development
mam10eks Sep 24, 2024
fc9d6ea
improve formatting
mam10eks Sep 24, 2024
fef5a28
prepare command for export for data.tira.io #659
mam10eks Sep 24, 2024
35ff580
use dedicated formatting error codes #666
mam10eks Sep 24, 2024
254fdb5
prepare export
mam10eks Sep 25, 2024
b4493f1
add datasets overview
mam10eks Sep 26, 2024
f9f7540
add system view
mam10eks Sep 26, 2024
2512a2a
we now use https://github.com/tira-io/tira-data/blob/main/data/create…
mam10eks Sep 26, 2024
6a463c1
add links to datasets and public softwares
mam10eks Sep 27, 2024
7e928d8
prepare App meni
mam10eks Oct 2, 2024
c2a054f
prepare UI improvements
mam10eks Oct 2, 2024
0a65543
add login method
mam10eks Oct 2, 2024
204917e
adjust breadcrumb and allow to traversal
mam10eks Oct 3, 2024
7f6522b
Allow to use well-known
mam10eks Nov 21, 2024
d59511e
Allow to use well-known
mam10eks Nov 21, 2024
025fde2
fix typescript build
mam10eks Nov 25, 2024
4ef66f1
mf
mam10eks Nov 25, 2024
e4b6d97
improve pipeline
mam10eks Nov 25, 2024
a4e28df
mf
mam10eks Nov 25, 2024
6edf44f
mf
mam10eks Nov 25, 2024
5e91144
mf
mam10eks Nov 25, 2024
f208066
mf
mam10eks Nov 25, 2024
405e040
mf
mam10eks Nov 25, 2024
9b231d4
mf
mam10eks Nov 25, 2024
aa32297
mf
mam10eks Nov 25, 2024
b7ba950
mf
mam10eks Nov 25, 2024
7a2e01e
prepare anonymous uploads
mam10eks Nov 26, 2024
c6b5164
refactor release.yml to publish.yml
mam10eks Nov 26, 2024
21701d1
refactor usage of inject method
mam10eks Nov 26, 2024
dd9499c
allow posts in dev environment
mam10eks Nov 28, 2024
0669bb9
incorproate csrf via userinfo via inject
mam10eks Nov 28, 2024
57d2b8a
incorproate csrf via userinfo via inject
mam10eks Nov 28, 2024
d32c27f
incorproate csrf via userinfo via inject
mam10eks Nov 28, 2024
a56613b
Implement first version of run-file formats
mam10eks Nov 28, 2024
2700870
add format to datasets
mam10eks Nov 28, 2024
9c24422
implement run serializers
mam10eks Nov 29, 2024
4236cf0
add ir_datasets_id and chatnoir_id to datasets
mam10eks Nov 29, 2024
e23e323
adjust DatasetInfo type
mam10eks Nov 29, 2024
a17bfab
add pypi version with format checks
mam10eks Nov 29, 2024
8b4d340
add migrations
mam10eks Nov 29, 2024
239bbf2
adjust datasets listing endpoint
mam10eks Nov 29, 2024
b52e9db
adjust datasets listing endpoint
mam10eks Nov 29, 2024
d794378
adjust datasets listing endpoint
mam10eks Nov 29, 2024
00f58ce
adjust datasets listing endpoint
mam10eks Nov 29, 2024
fec6afb
adjust systems listing endpoint
mam10eks Nov 29, 2024
baa29c5
adjust systems listing endpoint
mam10eks Nov 29, 2024
3c7e307
mf
mam10eks Nov 29, 2024
07948e0
mf
mam10eks Nov 29, 2024
474d090
mf
mam10eks Nov 29, 2024
47c8d1a
mf
mam10eks Nov 29, 2024
39dadec
mf
mam10eks Nov 29, 2024
4804fec
mf
mam10eks Nov 29, 2024
0585f2a
dataset search tests
mam10eks Nov 29, 2024
c06ec0e
mf
mam10eks Nov 29, 2024
9ffeec5
do not send credentials to archived pages
mam10eks Nov 29, 2024
66b2189
prepare form to claim submissions
mam10eks Nov 30, 2024
62e0013
refactor SERP rendering with DiffIr
mam10eks Nov 30, 2024
a77fc87
refactor SERP rendering with DiffIr
mam10eks Nov 30, 2024
eb0f3b0
refactor SERP rendering with DiffIr
mam10eks Nov 30, 2024
e516e69
add mirrors to datasets
mam10eks Dec 1, 2024
07af7e6
mf
mam10eks Dec 1, 2024
b96adac
mf
mam10eks Dec 1, 2024
df383d7
mf
mam10eks Dec 1, 2024
36b94ec
add git to prod container
mam10eks Dec 1, 2024
c55519b
mf
mam10eks Dec 1, 2024
ba6aa0d
mf
mam10eks Dec 1, 2024
3ac877e
mf
mam10eks Dec 1, 2024
4a0a1df
mf
mam10eks Dec 1, 2024
1b5b926
mf
mam10eks Dec 1, 2024
7b4c908
allow for multiple ir-datasets for a single tira dataset
mam10eks Dec 1, 2024
f5f5525
allow anonymous uploads
mam10eks Dec 2, 2024
2f0412a
allow anonymous uploads
mam10eks Dec 2, 2024
f94ae8c
allow anonymous uploads
mam10eks Dec 2, 2024
858ea2e
allow anonymous uploads
mam10eks Dec 2, 2024
1b9d246
allow anonymous uploads
mam10eks Dec 2, 2024
f341349
Fix TemporaryDirectory arguments
janheinrichmerker Dec 2, 2024
d9f334b
Merge pull request #670 from tira-io/janheinrichmerker-patch-1
mam10eks Dec 2, 2024
dc447d0
fix tempfile
mam10eks Dec 2, 2024
9ecab9e
mf
mam10eks Dec 2, 2024
80c17d8
add endpoint to upload uuids
mam10eks Dec 2, 2024
a0759e1
add endpoint to upload uuids
mam10eks Dec 2, 2024
dc6a811
add endpoint to upload uuids
mam10eks Dec 2, 2024
75221ec
add endpoint to upload uuids
mam10eks Dec 2, 2024
a0845fd
use archive.tira.io
mam10eks Dec 3, 2024
b90a230
improve TiraMenu
mam10eks Dec 3, 2024
b26b6e1
mf
mam10eks Dec 3, 2024
e1e34d1
mf
mam10eks Dec 3, 2024
b6920a2
mf
mam10eks Dec 3, 2024
f66dcaa
improve method to create vms
mam10eks Dec 3, 2024
cb4cb3e
mf
mam10eks Dec 3, 2024
8767983
mf
mam10eks Dec 3, 2024
2eec7bf
mf
mam10eks Dec 3, 2024
50641cf
mf
mam10eks Dec 3, 2024
9478035
mf
mam10eks Dec 3, 2024
7880300
mf
mam10eks Dec 3, 2024
6b4e8a7
mf
mam10eks Dec 3, 2024
8ec7eb8
mf
mam10eks Dec 4, 2024
16c54a7
mf
mam10eks Dec 4, 2024
c082f42
mf
mam10eks Dec 4, 2024
b4d7fd4
mf
mam10eks Dec 4, 2024
2afc21f
mf
mam10eks Dec 4, 2024
bcdd449
mf
mam10eks Dec 4, 2024
67acebb
fix inject in vue
mam10eks Dec 4, 2024
3a883c1
mf
mam10eks Dec 4, 2024
8515370
mf
mam10eks Dec 4, 2024
9932d04
mf
mam10eks Dec 5, 2024
8253989
deploy to pypi via Github Action
mam10eks Dec 5, 2024
f480c5a
mf
mam10eks Dec 9, 2024
4e21c03
mf
mam10eks Dec 9, 2024
0532ceb
mf
mam10eks Dec 9, 2024
0105b62
Fix code scanning alert no. 229: Reflected server-side cross-site scr…
mam10eks Dec 10, 2024
e4cbbd0
Fix code scanning alert no. 225: Reflected server-side cross-site scr…
mam10eks Dec 10, 2024
de67d58
resolve problem pointed out in review
mam10eks Dec 10, 2024
97f357e
adjust rest schema
mam10eks Dec 10, 2024
29577e2
fix security vulnerability
mam10eks Dec 10, 2024
fe66a88
fix linter
mam10eks Dec 10, 2024
1955a99
adjust rest schema
mam10eks Dec 10, 2024
43db15c
adjust rest schema
mam10eks Dec 10, 2024
0719ce5
mf
mam10eks Dec 10, 2024
71c710f
Merge pull request #672 from tira-io/main
mam10eks Dec 10, 2024
76e1433
add rest endpoint to doanload submissions
mam10eks Dec 10, 2024
eb290ac
mf
mam10eks Dec 10, 2024
0b38e76
use environment variables to overwrite rest api settings
mam10eks Dec 10, 2024
b0744b2
mf
mam10eks Dec 10, 2024
73257d6
mf
mam10eks Dec 10, 2024
b599d00
mf
mam10eks Dec 10, 2024
805e863
mf
mam10eks Dec 10, 2024
a452795
mf
mam10eks Dec 10, 2024
297175c
mf
mam10eks Dec 10, 2024
59771d4
mf
mam10eks Dec 10, 2024
f790c29
mf
mam10eks Dec 11, 2024
bff6b05
add download method
mam10eks Dec 11, 2024
7a7a3e6
mf
mam10eks Dec 11, 2024
1f8a59f
mf
mam10eks Dec 12, 2024
97df57d
add new logo for archive.tira.io
mam10eks Dec 13, 2024
9844cba
mf
mam10eks Dec 13, 2024
f2a76a3
mf
mam10eks Dec 13, 2024
a119abf
add loading screen
mam10eks Dec 13, 2024
3bcef67
mf
mam10eks Dec 13, 2024
d6dbf64
loading
mam10eks Dec 13, 2024
46739d4
start to use router-links
mam10eks Dec 13, 2024
58568b8
fix scroll behaviour
mam10eks Dec 13, 2024
33d91ff
mf
mam10eks Dec 16, 2024
f28959e
fix archive bug
mam10eks Dec 18, 2024
a8199af
fix archive bug
mam10eks Dec 18, 2024
0d43db1
fix archive bug
mam10eks Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
start to use router-links
mam10eks committed Dec 13, 2024
commit 46739d4b73dfca2b79218f52f54f35d3ce07e50f
4 changes: 2 additions & 2 deletions frontend/src/Datasets.vue
Original file line number Diff line number Diff line change
@@ -15,11 +15,11 @@

<v-data-table :headers="headers_xs" :items="datasets" :itemsPerPage="10" :search="query" density="compact" fixed-footer>
<template #item.display_name="{ item }">
<a v-if="item.default_task" :href="'/task-overview/' + item.default_task + '/' + item.dataset_id" style="text-decoration: none !important;">{{ item.display_name }}</a>
<router-link v-if="item.default_task" :to="'/task-overview/' + item.default_task + '/' + item.dataset_id" style="text-decoration: none !important;">{{ item.display_name }}</router-link>
<span v-if="!item.default_task">{{ item.display_name }}</span>
</template>
<template #item.default_task="{ item }">
<a v-if="item.default_task" :href="'/task-overview/' + item.default_task + '/' + item.dataset_id" style="text-decoration: none !important;">{{ item.default_task_name }}</a>
<router-link v-if="item.default_task" :to="'/task-overview/' + item.default_task + '/' + item.dataset_id" style="text-decoration: none !important;">{{ item.default_task_name }}</router-link>
<span v-if="!item.default_task">No Task</span>
</template>
<template #item.ir_datasets_id="{ item }">
16 changes: 10 additions & 6 deletions frontend/src/Home.vue
Original file line number Diff line number Diff line change
@@ -10,10 +10,12 @@
</p>
<v-row class="d-flex justify-center py-4">
<v-col cols="auto">
<v-btn color="primary" href="/tasks" min-width="228" rel="noopener noreferrer" size="x-large" variant="flat">
<router-link to="/tasks">
<v-btn color="primary" min-width="228" rel="noopener noreferrer" size="x-large" variant="flat">
<v-icon icon="mdi-speedometer" size="large" start/>
Get Started
</v-btn>
</v-btn>
</router-link>
</v-col>
<v-col cols="auto text-primary">
<v-btn href="https://webis.de/downloads/publications/papers/potthast_2019p.pdf" min-width="228" rel="noopener noreferrer" size="x-large" variant="outlined">
@@ -47,10 +49,12 @@

<v-row class="d-flex align-center justify-center">
<v-col cols="auto text-primary">
<v-btn href="/tirex" min-width="228" rel="noopener noreferrer" size="x-large" variant="text">
<v-icon size="large" start><v-img src="@/assets/tirex.png"/></v-icon>
TIREx
</v-btn>
<router-link to="/tirex" style="text-decoration: none;">
<v-btn href="/tirex" min-width="228" rel="noopener noreferrer" size="x-large" variant="text">
<v-icon size="large" start><v-img src="@/assets/tirex.png"/></v-icon>
TIREx
</v-btn>
</router-link>
</v-col>
</v-row>
</section>
6 changes: 3 additions & 3 deletions frontend/src/Systems.vue
Original file line number Diff line number Diff line change
@@ -18,16 +18,16 @@
<v-data-table :headers="headers" :items="systems" :itemsPerPage="10" :search="query" density="compact" fixed-footer>

<template #item.team="{ item }">
<a :href="'/systems/' + item.team" style="text-decoration: none !important;">{{ item.team }}</a>
<router-link :to="'/systems/' + item.team">{{ item.team }}</router-link>
</template>

<template #item.name="{ item }">
<a :href="'/systems/' + item.team + '/' + item.name " style="text-decoration: none !important;">{{ item.name }}</a>
<router-link :to="'/systems/' + item.team + '/' + item.name ">{{ item.name }}</router-link>
</template>

<template #item.tasks="{ item }">
<span v-for="task in item.tasks">
<a :href="'/task-overview/' + task" style="text-decoration: none !important;">{{ task }}</a>
<router-link :to="'/task-overview/' + task">{{ task }}</router-link>
</span>
</template>

14 changes: 9 additions & 5 deletions frontend/src/Tasks.vue
Original file line number Diff line number Diff line change
@@ -8,19 +8,23 @@
<div class="d-none d-md-block">
<v-row>
<v-col cols="4" v-for="t in featured_tasks">
<v-card :text="t.task_description" :title="t.task_name" :href="'/task-overview/' + t.task_id" />
<router-link :to="'/task-overview/' + t.task_id" style="text-decoration: none;">
<v-card :text="t.task_description" :title="t.task_name" />
</router-link>
</v-col>
</v-row>
</div>
<div class="d-md-none">
<v-row>
<v-col cols="12" v-for="t in featured_tasks">
<v-card :text="t.task_description" :title="t.task_name" :href="'/task-overview/' + t.task_id" />
<router-link :to="'/task-overview/' + t.task_id" style="text-decoration: none;">
<v-card :text="t.task_description" :title="t.task_name"/>
</router-link>
</v-col>
</v-row>
</div>

<div class="pt-5">TIRA hosts {{ task_list.length }} tasks with <a href="/systems">{{ serverinfo.publicSystemCount }} public systems</a> and <a href="/datasets">{{ serverinfo.datasetCount }} datasets</a>.</div>
<div class="pt-5">TIRA hosts {{ task_list.length }} tasks with <router-link to="/systems">{{ serverinfo.publicSystemCount }} public systems</router-link> and <router-link to="/datasets">{{ serverinfo.datasetCount }} datasets</router-link>.</div>

<h3 class="text-h3 py-5">All Task</h3>
<div class="py-5"></div>
@@ -40,7 +44,7 @@
</tr>
</template>
<template #item.task_name="{ item }">
<a :href="'/task-overview/' + item.task_id" style="text-decoration: none !important;">{{ item.task_name }}</a>
<router-link :to="'/task-overview/' + item.task_id" style="text-decoration: none !important;">{{ item.task_name }}</router-link>
</template>
</v-data-table>

@@ -53,7 +57,7 @@
</tr>
</template>
<template #item.task_name="{ item }">
<a :href="'/task-overview/' + item.task_id" style="text-decoration: none !important;">{{ item.task_name }}</a>
<router-link :to="'/task-overview/' + item.task_id" style="text-decoration: none !important;">{{ item.task_name }}</router-link>
</template>
</v-data-table>
</v-container>
2 changes: 1 addition & 1 deletion frontend/src/components/TiraBreadcrumb.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-breadcrumbs :items="items" :class="!$vuetify.display.mdAndUp ? 'px-3' : 'px-10'">
<template v-slot:title="{ item }">
{{ item.title.toUpperCase() }}
<router-link :to="item.href" style="text-decoration: none;">{{ item.title.toUpperCase() }}</router-link>
</template>
</v-breadcrumbs>
</template>
12 changes: 6 additions & 6 deletions frontend/src/components/TiraMenu.vue
Original file line number Diff line number Diff line change
@@ -3,9 +3,9 @@
<v-container style="max-width: 1110px;" class="d-md-none">
<v-row>
<v-col>
<a href="/">
<router-link to="/">
<img id="site-logo" src="https://assets.tira.io/tira-icons/tira-archive-banner-120x360-dark.png" alt="TIRA" style="height: 2.667em">
</a>
</router-link>
</v-col>

<v-col class="text-right">
@@ -45,10 +45,10 @@
<v-container style="max-width: 1110px;" class="d-none d-md-block">
<v-row>
<v-col>
<a href="/">
<img id="site-logo" src="https://assets.tira.io/tira-icons/tira-archive-banner-120x360-dark.png" alt="TIRA" style="height: 2.667em">
</a>
</v-col>
<router-link to="/">
<img id="site-logo" src="https://assets.tira.io/tira-icons/tira-archive-banner-120x360-dark.png" alt="TIRA" style="height: 2.667em">
</router-link>
</v-col>

<v-col class="text-right">
<v-btn href="https://pypi.org/project/tira/">API</v-btn>

Unchanged files with check annotations Beta

]:
p = Path(settings.TIRA_ROOT) / "data" / "runs" / dataset_id / vm_id / evaluation / "output" / f
checked_paths += [str(p)]
if p.is_file():

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
return p
raise ValueError(f"Could not find .data-top-10-for-rendering.jsonl. Searched in {checked_paths}.")
/ __normalize_ids(run_id_1, run_id_2)
/ "diffir.html"
)
diffir_dir = (diffir_file / "..").resolve()

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
if diffir_file.is_file():

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
return HttpResponse(open(diffir_file).read())

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
run_dir = Path(settings.TIRA_ROOT) / "data" / "runs" / run_1["dataset"]
run_1_file = run_dir / run_1["vm"] / run_id_1 / "output" / "run.txt"
run_2_file = run_dir / run_2["vm"] / run_id_2 / "output" / "run.txt"
if not run_1_file.is_file():

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
raise ValueError(f"Error: The expected file {run_1_file} does not exist.")
if not run_2_file.is_file():

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
raise ValueError(f"Error: The expected file {run_2_file} does not exist.")
doc_files = [
topk=topk,
)
diffir_dir.mkdir(parents=True, exist_ok=True)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
with open(diffir_file, "w") as f:

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
f.write(ret)
return HttpResponse(ret)
return JsonResponse(ret[0], safe=False)
else:
return HttpResponseNotFound(
json.dumps({"status": 1, "message": f"Could not find a software '{software}' by user '{user_id}'."})

Check warning

Code scanning / CodeQL

Reflected server-side cross-site scripting Medium

Cross-site scripting vulnerability due to a
user-provided value
.
Cross-site scripting vulnerability due to a
user-provided value
.
)
workdir_in_user_image,
):
job_dir = Path(tmp_dir) / dataset_id / vm_id / run_id
job_dir.mkdir(parents=True, exist_ok=True)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
metadata = {
# The pipeline executed first a pseudo software so the following three values are
metadata["TIRA_INPUT_RUN_VM_IDS"] = json.dumps([i["vm_id"] for i in input_run])
metadata["TIRA_INPUT_RUN_RUN_IDS"] = json.dumps([i["run_id"] for i in input_run])
open(job_dir / "job-to-execute.txt", "w").write(self.dict_to_key_value_file(metadata))

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
def create_user_repository(self, user_name):
"""
def run_cmd(cmd, ignore_failure=False):
import subprocess
exit_code = subprocess.call(cmd)

Check failure

Code scanning / CodeQL

Uncontrolled command line Critical

This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
This command line depends on a
user-provided value
.
if not ignore_failure and exit_code != 0:
raise ValueError(f"Command {cmd} did exit with return code {exit_code}.")