Skip to content

Commit 9e90311

Browse files
committed
fixes
1 parent 1ae3c54 commit 9e90311

File tree

3 files changed

+41
-17
lines changed

3 files changed

+41
-17
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If you don't need auth, you can disable it by `--no-auth` command-line option.
5959

6060
# Run in development mode
6161

62-
[Check separate document](https://github.com/icpc/live-v3/blob/main/docs/development.md)
62+
g[Check separate document](./docs/development.md)
6363

6464
# Previous versions:
6565

icpc-live-v3.code-workspace

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"folders": [
3+
{
4+
"name": "✨ root",
5+
"path": "."
6+
},
7+
{
8+
"name": "🚀 icpc-live-v3",
9+
"path": "src/frontend"
10+
},
11+
{
12+
"name": "🚀 icpc-live-v3-admin",
13+
"path": "src/frontend/admin"
14+
},
15+
{
16+
"name": "🚀 shared-code",
17+
"path": "src/frontend/common"
18+
},
19+
{
20+
"name": "🚀 content-gen",
21+
"path": "src/frontend/content-gen"
22+
},
23+
{
24+
"name": "🚀 icpc-live-v3-locator",
25+
"path": "src/frontend/locator"
26+
},
27+
{
28+
"name": "🚀 icpc-live-v3-overlay",
29+
"path": "src/frontend/overlay"
30+
}
31+
],
32+
"settings": {}
33+
}

src/frontend/content-gen/gen_video.bash

+7-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
#!/bin/bash
22
set -e
33
set -o pipefail
4-
# set -x
4+
set -x
55

66
OFFSET=4
77
SPEEDUP=15
8-
CONTEST_NAME="finals"
8+
CONTEST_NAME="vkoshp"
99
REPO_ROOT=$(git rev-parse --show-toplevel)
1010

1111
# echo "Step 1: Download latest event-feed.json"
1212
# rm -f event-feed-$CONTEST_NAME.ndjson
1313
# timeout 10s wget --header 'cookie: JSESSIONID=0000ij9lihNPu7Xe7kc_R9VimX0:cde8627c-75ce-43c7-a09a-af5b62653e86:9eb3971a-d235-44b6-af0e-68c25f91e474:6e590761-52bd-44b0-8ab8-bb8884df8caf' \ -k https://172.24.0.7:7443/api/contests/wf48_$CONTEST_NAME/event-feed -q -O event-feed-$CONTEST_NAME.ndjson || true
14+
timeout 10s wget -k https://nerc.itmo.ru/school/archive/2024-2025/ru-olymp-team-russia-2024-standings-sdcjaccjhzvzkvskvkasbvkazsxkcvbaskdvbjkasdbvjkzsbkv.xml -q -O config/$CONTEST_NAME/runs.xml || true
1415

1516
# echo "Step 2: Edit the config for backend"
1617
# cp $REPO_ROOT/artifacts/live-v3-dev.jar ./
@@ -35,20 +36,9 @@ echo "Start time: $startTime"
3536

3637
cat <<EOF > config/$CONTEST_NAME/settings.json
3738
{
38-
"type": "clics",
39+
"type": "pcms",
3940
"network": { "allowUnsecureConnections": true },
40-
"feeds": [
41-
{
42-
"source": ".",
43-
"contestId": "",
44-
"eventFeedPath": "",
45-
"eventFeedName": "event-feed.ndjson",
46-
"urlPrefixMapping": {
47-
"https://172.24.0.7:7443/": "http://172.24.0.20:4323/",
48-
"contests": "http://172.24.0.20:4323/api/contests"
49-
}
50-
}
51-
],
41+
"source": "runs.xml",
5242
"emulation": {
5343
"speed": $SPEEDUP,
5444
"startTime": "$startTime",
@@ -57,6 +47,7 @@ cat <<EOF > config/$CONTEST_NAME/settings.json
5747
EOF
5848

5949
echo "Step 3: add ticker messages"
50+
mkdir config/$CONTEST_NAME/presets || true
6051
cat <<EOF > config/$CONTEST_NAME/presets/ticker.json
6152
[
6253
{
@@ -75,7 +66,7 @@ cat <<EOF > config/$CONTEST_NAME/presets/ticker.json
7566
EOF
7667

7768
echo "Step 4: Start backend"
78-
java -jar live-v3-dev.jar -c config/$CONTEST_NAME --custom-fields-csv=config/custom-fields.csv --no-auth > ./backend.log &
69+
java -jar live-v3-dev.jar -c config/$CONTEST_NAME --no-auth > ./backend.log &
7970
BACKEND_PID=$!
8071
function cleanup {
8172
echo "Step INF: Cleanup"

0 commit comments

Comments
 (0)