Skip to content

Commit d302b5e

Browse files
suboticmpro7
andauthored
build: bump sipi version (DEV-188) (#1931)
Co-authored-by: Marcin Procyk <marcin.procyk@dasch.swiss>
1 parent 1368769 commit d302b5e

6 files changed

Lines changed: 26 additions & 96 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 10 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,9 @@ jobs:
4040
${{ runner.OS }}-build-
4141
${{ runner.OS }}-
4242
- name: Disk Free
43-
run: |
44-
df -h
45-
docker system df
46-
docker system prune --all --force --volumes
47-
df -h
43+
run: df -h
4844
- name: Run build everything
4945
run: make build
50-
- name: Disk Free After
51-
run: |
52-
df -h
53-
docker system df
5446

5547
# ------------------------------------------
5648
# ------------------------------------------
@@ -71,10 +63,7 @@ jobs:
7163
run: sudo apt-get install ca-certificates-java expect redis-tools unzip
7264
- name: Generate api-client-test-data
7365
run: make client-test-data
74-
- name: Disk Free After
75-
run: |
76-
df -h
77-
docker system df
66+
7867
# ------------------------------------------
7968
# ------------------------------------------
8069

@@ -117,18 +106,8 @@ jobs:
117106
run: |
118107
make env-file
119108
make print-env-file
120-
- name: Disk Free
121-
run: |
122-
df -h
123-
docker system df
124-
docker system prune --all --force --volumes
125-
df -h
126109
- name: Run API unit tests
127110
run: make test-unit
128-
- name: Disk Free After
129-
run: |
130-
df -h
131-
docker system df
132111

133112
api-e2e-tests:
134113
name: API E2E Tests
@@ -172,18 +151,8 @@ jobs:
172151
run: |
173152
make env-file
174153
make print-env-file
175-
- name: Disk Free
176-
run: |
177-
df -h
178-
docker system df
179-
docker system prune --all --force --volumes
180-
df -h
181154
- name: run API E2E tests
182155
run: make test-e2e
183-
- name: Disk Free After
184-
run: |
185-
df -h
186-
docker system df
187156

188157
api-integration-tests:
189158
name: API Integration Tests
@@ -224,20 +193,10 @@ jobs:
224193
run: |
225194
make env-file
226195
make print-env-file
227-
- name: Disk Free
228-
run: |
229-
df -h
230-
docker system df
231-
docker system prune --all --force --volumes
232-
df -h
233196
- name: run API integration tests
234197
run: |
235198
make test-docker
236199
make test-it
237-
- name: Disk Free After
238-
run: |
239-
df -h
240-
docker system df
241200
242201
upgrade-integration-tests:
243202
name: Upgrade Integration Tests
@@ -276,18 +235,8 @@ jobs:
276235
${{ runner.OS }}-
277236
- name: install requirements
278237
run: sudo apt-get install expect
279-
- name: Disk Free
280-
run: |
281-
df -h
282-
docker system df
283-
docker system prune --all --force --volumes
284-
df -h
285238
- name: test repository upgrade
286239
run: make test-repository-upgrade
287-
- name: Disk Free After
288-
run: |
289-
df -h
290-
docker system df
291240

292241
docs-build-test:
293242
name: Docs Build Test
@@ -312,18 +261,8 @@ jobs:
312261
npm install --global typedoc
313262
npm install --global @bazel/bazelisk
314263
sudo apt-get install graphviz
315-
- name: Disk Free
316-
run: |
317-
df -h
318-
docker system df
319-
docker system prune --all --force --volumes
320-
df -h
321264
- name: run docs build
322265
run: make docs-build
323-
- name: Disk Free After
324-
run: |
325-
df -h
326-
docker system df
327266

328267
release-please:
329268
name: Prepare next release
@@ -336,7 +275,14 @@ jobs:
336275
token: ${{ secrets.GH_TOKEN }}
337276
release-type: simple
338277
package-name: dsp-api
339-
changelog-types: '[{"type": "feat", "section": "Enhancements", "hidden": false }, {"type": "fix", "section": "Bug Fixes", "hidden": false }, {"type": "chore", "section": "Maintenance", "hidden": false }, {"type": "refactor", "section": "Maintenance", "hidden": false }, {"type": "docs", "section": "Documentation", "hidden": false }]'
278+
changelog-types: '[
279+
{"type": "feat", "section": "Enhancements", "hidden": false },
280+
{"type": "fix", "section": "Bug Fixes", "hidden": false },
281+
{"type": "build", "section": "Maintenance", "hidden": false },
282+
{"type": "chore", "section": "Maintenance", "hidden": false },
283+
{"type": "refactor", "section": "Maintenance", "hidden": false },
284+
{"type": "docs", "section": "Documentation", "hidden": false }
285+
]'
340286

341287
# publish only on release
342288
publish:
@@ -394,20 +340,10 @@ jobs:
394340
${{ runner.OS }}-build-${{ env.cache-name }}-
395341
${{ runner.OS }}-build-
396342
${{ runner.OS }}-
397-
- name: Disk Free
398-
run: |
399-
df -h
400-
docker system df
401-
docker system prune --all --force --volumes
402-
df -h
403343
- name: Build and publish all images to Dockerhub
404344
run: |
405345
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
406346
make docker-publish
407-
- name: Disk Free After
408-
run: |
409-
df -h
410-
docker system df
411347
412348
# google chat notification about release
413349
notification:
@@ -455,7 +391,3 @@ jobs:
455391
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
456392
CUSTOM_DOMAIN: docs-api.dasch.swiss
457393
REQUIREMENTS: docs/requirements.txt
458-
- name: Disk Free After
459-
run: |
460-
df -h
461-
docker system df

‎CODEOWNERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @subotic

‎WORKSPACE‎

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
workspace(name = "io_dasch_dsp_api")
22

33
# load http_archive method
4-
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
4+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
55

66
#####################################
77
# Skylib #
@@ -20,9 +20,9 @@ http_archive(
2020
# Docker #
2121
#####################################
2222

23-
rules_docker_version = "0.19.0"
23+
rules_docker_version = "0.20.0" # 12.10.2021
2424

25-
rules_docker_version_sha256 = "1f4e59843b61981a96835dc4ac377ad4da9f8c334ebe5e0bb3f58f80c09735f4"
25+
rules_docker_version_sha256 = "92779d3445e7bdc79b961030b996cb0c91820ade7ffa7edca69273f404b085d5"
2626

2727
http_archive(
2828
name = "io_bazel_rules_docker",
@@ -60,32 +60,29 @@ container_pull(
6060
# get openjdk
6161
container_pull(
6262
name = "openjdk11",
63-
digest = "sha256:0e51b455654bd162c485a6a6b5b120cc82db453d9265cc90f0c4fb5d14e2f62e",
63+
digest = "sha256:8f0a99f12dfc7ff2524f1550ffd6ab432597cd20417413b46cb96c7b9ec2b7f0", # 16.10.2021
6464
registry = "docker.io",
65-
repository = "adoptopenjdk",
66-
tag = "11-jre-hotspot-bionic",
65+
repository = "eclipse-temurin",
66+
# tag = "11-jre-focal", # Ubuntu 20.04
6767
)
6868

6969
# get sipi
70-
load("//third_party:versions.bzl", "SIPI_IMAGE_DIGEST", "SIPI_REPOSITORY", "SIPI_VERSION")
70+
load("//third_party:versions.bzl", "FUSEKI_IMAGE_DIGEST", "FUSEKI_REPOSITORY", "SIPI_IMAGE_DIGEST", "SIPI_REPOSITORY")
7171

7272
container_pull(
7373
name = "sipi",
7474
digest = SIPI_IMAGE_DIGEST,
7575
registry = "docker.io",
7676
repository = SIPI_REPOSITORY,
77-
tag = SIPI_VERSION,
77+
# tag = SIPI_VERSION,
7878
)
7979

80-
# get fuseki
81-
load("//third_party:versions.bzl", "FUSEKI_IMAGE_DIGEST", "FUSEKI_REPOSITORY", "FUSEKI_VERSION")
82-
8380
container_pull(
8481
name = "jenafuseki",
8582
digest = FUSEKI_IMAGE_DIGEST,
8683
registry = "docker.io",
8784
repository = FUSEKI_REPOSITORY,
88-
tag = FUSEKI_VERSION,
85+
# tag = FUSEKI_VERSION,
8986
)
9087

9188
#####################################
@@ -230,8 +227,6 @@ http_archive(
230227
],
231228
)
232229

233-
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
234-
235230
# bazel buildtools providing buildifier
236231
http_archive(
237232
name = "com_github_bazelbuild_buildtools",

‎sipi/scripts/file_info.lua‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ local AUDIO_MP4 = "audio/mp4"
2828
local AUDIO_WAV = "audio/wav"
2929
local AUDIO_X_WAV = "audio/x-wav"
3030
local AUDIO_VND_WAVE = "audio/vnd.wave"
31+
local APPLICATION_CSV = "application/csv"
3132
local APPLICATION_PDF = "application/pdf"
3233
local APPLICATION_DOC = "application/msword"
3334
local APPLICATION_DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
@@ -60,7 +61,8 @@ local audio_mime_types = {
6061
local text_mime_types = {
6162
TEXT_PLAIN,
6263
APPLICATION_XML,
63-
TEXT_XML
64+
TEXT_XML,
65+
APPLICATION_CSV
6466
}
6567

6668
local document_mime_types = {

‎third_party/versions.bzl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ METRICS_VERSION = "4.0.1"
88

99
# SIPI - digest takes precedence!
1010
SIPI_REPOSITORY = "daschswiss/sipi"
11-
SIPI_VERSION = "3.1.0"
11+
SIPI_VERSION = "3.3.0"
1212
SIPI_IMAGE = SIPI_REPOSITORY + ":" + SIPI_VERSION
13-
SIPI_IMAGE_DIGEST = "sha256:51774e98160af255e4b542d9f1944afe43265001b20b365003848820384ea299"
13+
SIPI_IMAGE_DIGEST = "sha256:24ff26999d3727aa4a0c4751fc5706761cea01e9df02e08e676160f234d8506d"
1414

1515
# Jena Fuseki - digest takes precedence!
1616
FUSEKI_REPOSITORY = "daschswiss/apache-jena-fuseki"

‎webapi/src/main/scala/org/knora/webapi/responders/admin/ListsResponderADM.scala‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ class ListsResponderADM(responderData: ResponderData) extends Responder(responde
10951095

10961096
if (changeNodeRequest.labels.nonEmpty) {
10971097
if (updatedNode.getLabels.stringLiterals.diff(changeNodeRequest.labels.get.value).nonEmpty)
1098-
throw UpdateNotPerformedException("Lists's 'labels' where not updated. Please report this as a possible bug.")
1098+
throw UpdateNotPerformedException("Lists's 'labels' were not updated. Please report this as a possible bug.")
10991099
}
11001100

11011101
if (changeNodeRequest.comments.nonEmpty) {

0 commit comments

Comments
 (0)