Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3dfd581
ci: yml->yaml
ludovicm67 Jan 13, 2026
63e3230
ci: bump actions/checkout to v6
ludovicm67 Jan 13, 2026
6dcef68
ci: disable gitlab mirroring
ludovicm67 Jan 13, 2026
b978bea
ci: bump actions/setup-node to v6
ludovicm67 Jan 13, 2026
a43de66
ci: use lts version of node
ludovicm67 Jan 13, 2026
9627963
ci: bump actions/upload-artifact to v6
ludovicm67 Jan 13, 2026
a8a9938
docker: use node 24-alpine instead of 22
ludovicm67 Jan 13, 2026
112d3c4
ci: disable jobs using docker directly, as it is unsecure
ludovicm67 Jan 13, 2026
16c970a
ci: use node 24 for the lint job on GitLab
ludovicm67 Jan 13, 2026
d11642e
feat: configure graphdb endpoints
ludovicm67 Jan 13, 2026
9046daa
chore: remove deprecated version field
ludovicm67 Jan 13, 2026
1536157
chore: upgrade to postgresql 18 in the stacks
ludovicm67 Jan 13, 2026
54da753
chore: 22 -> 24-alpine
ludovicm67 Jan 13, 2026
b2c5a7e
chore: docker compose yml->yaml
ludovicm67 Jan 13, 2026
3fdf3f5
chore: npm run build
ludovicm67 Jan 13, 2026
efeaba7
ci: configure build and push of Docker image
ludovicm67 Jan 13, 2026
33e4730
ci: try conditional for branch+pipeline id tag for docker image
ludovicm67 Jan 14, 2026
e02e121
docker: add openssl
ludovicm67 Jan 14, 2026
38f7ace
chore: update default endpoint
ludovicm67 Jan 14, 2026
0c66366
chore: npx update-browserslist-db@latest
ludovicm67 Jan 14, 2026
2c9f6d3
feat(otel): minimal otel config
ludovicm67 Jan 18, 2026
ebf9018
feat(otel): trace search
ludovicm67 Jan 19, 2026
628b96f
feat(otel): rename sparql events
ludovicm67 Jan 19, 2026
7350d8c
feat(otel): trace batchLoad
ludovicm67 Jan 19, 2026
e96f69c
Merge pull request #1 from zazuko/otel
ludovicm67 Jan 19, 2026
7ea1565
chore(deps): update lock file
ludovicm67 Jan 19, 2026
8daa21f
ci: enable build and release jobs for GitLab CI again
ludovicm67 Jan 19, 2026
e6c4ea6
Merge branch 'develop'
ludovicm67 Jan 19, 2026
161ae1f
ci: remove docker build and push from GitHub side
ludovicm67 Jan 19, 2026
fb13a0e
chore: yarn policies set-version
ludovicm67 Jan 19, 2026
dfecfdd
ci: enable GitLab mirroring back
ludovicm67 Jan 20, 2026
1ffc588
chore: replace all endpoints
ludovicm67 Jan 20, 2026
3e57e0a
docs: add changelog entry
ludovicm67 Jan 20, 2026
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
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
.git
.github
.vscode
app/.github
app/node_modules
.next
*Dockerfile*
# Ignore node_modules to prevent issues with wrong binaries
node_modules
.DS_Store
*.log
*.log
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Validate

on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
branches:
- main

jobs:
base-checks:
Expand All @@ -14,11 +16,11 @@ jobs:
matrix:
job: [lint, typecheck, test, knip]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version: "lts/*"
cache: "yarn"
cache-dependency-path: "**/yarn.lock"
- run: yarn install --immutable --prefer-offline
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/e2e.yml → .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: E2E

on: [deployment_status]
on:
- deployment_status

jobs:
e2e:
Expand All @@ -12,13 +13,13 @@ jobs:
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
# fetch all commits so we can find the branch
fetch-depth: 0
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 22.x
node-version: "lts/*"
cache: "yarn"
cache-dependency-path: "**/yarn.lock"
- name: Install dependencies
Expand All @@ -35,7 +36,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload blob report to GitHub Actions Artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: blob-report-${{ matrix.shardIndex }}
path: blob-report
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: GitLab Mirror

on: [push, delete]
on:
- push
- delete

jobs:
to_gitlab:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Testing GraphQL - Components
if: always()
uses: grafana/k6-action@v0.3.1
with:
filename: k6/load-tests/graphql/components.js
flags:
--env ENV=${{ env.ENV }} --env ENABLE_GQL_SERVER_SIDE_CACHE=${{
flags: --env ENV=${{ env.ENV }} --env ENABLE_GQL_SERVER_SIDE_CACHE=${{
env.ENABLE_GQL_SERVER_SIDE_CACHE }}

- name: Testing GraphQL - Observations
if: always()
uses: grafana/k6-action@v0.3.1
with:
filename: k6/load-tests/graphql/observations.js
flags:
--env ENV=${{ env.ENV }} --env ENABLE_GQL_SERVER_SIDE_CACHE=${{
flags: --env ENV=${{ env.ENV }} --env ENABLE_GQL_SERVER_SIDE_CACHE=${{
env.ENABLE_GQL_SERVER_SIDE_CACHE }}

- name: Testing HAR - Edition
if: always()
uses: grafana/k6-action@v0.3.1
with:
filename: k6/load-tests/har/${{ env.ENV }}/edition.js
flags:
--env ENABLE_GQL_SERVER_SIDE_CACHE=${{
flags: --env ENABLE_GQL_SERVER_SIDE_CACHE=${{
env.ENABLE_GQL_SERVER_SIDE_CACHE }}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

name: GraphQL performance tests (PR)

on: [deployment_status]
on:
- deployment_status

env:
SUMMARY: ''
SUMMARY: ""

jobs:
run_tests:
Expand All @@ -14,16 +15,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Send an HTTP request to start up the server
run: |
curl -s '${{ github.event.deployment_status.target_url }}/api/graphql' -X 'POST' -H 'Content-Type: application/json' -d '{"operationName":"DataCubeObservations","variables":{"locale":"en","sourceType":"sparql","sourceUrl":"https://lindas.admin.ch/query","cubeFilter":{"iri":"https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/9","filters":{"https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/Kanton":{"type":"single","value":"https://ld.admin.ch/canton/1"}}}},"query":"query DataCubeObservations($sourceType: String!, $sourceUrl: DataSourceUrl!, $locale: String!, $cubeFilter: DataCubeObservationFilter!) { dataCubeObservations(sourceType: $sourceType, sourceUrl: $sourceUrl, locale: $locale, cubeFilter: $cubeFilter) }"}' > /dev/null
curl -s '${{ github.event.deployment_status.target_url }}/api/graphql' -X 'POST' -H 'Content-Type: application/json' -d '{"operationName":"DataCubeObservations","variables":{"locale":"en","sourceType":"sparql","sourceUrl":"https://lindas.cz-aws.net/query","cubeFilter":{"iri":"https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/9","filters":{"https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/Kanton":{"type":"single","value":"https://ld.admin.ch/canton/1"}}}},"query":"query DataCubeObservations($sourceType: String!, $sourceUrl: DataSourceUrl!, $locale: String!, $cubeFilter: DataCubeObservationFilter!) { dataCubeObservations(sourceType: $sourceType, sourceUrl: $sourceUrl, locale: $locale, cubeFilter: $cubeFilter) }"}' > /dev/null
- name: Download, unzip and install k6 binary
run: |
wget https://github.com/grafana/k6/releases/download/v0.49.0/k6-v0.49.0-linux-amd64.tar.gz
tar -xzf k6-v0.49.0-linux-amd64.tar.gz
sudo cp k6-v0.49.0-linux-amd64/k6 /usr/local/bin/k6
export PATH=$PATH:/usr/local/bin
wget https://github.com/grafana/k6/releases/download/v0.49.0/k6-v0.49.0-linux-amd64.tar.gz
tar -xzf k6-v0.49.0-linux-amd64.tar.gz
sudo cp k6-v0.49.0-linux-amd64/k6 /usr/local/bin/k6
export PATH=$PATH:/usr/local/bin
- name: Run k6 test (iteration 1)
run: echo "SUMMARY=${{ env.SUMMARY }}$(k6 run --tag testid=DataCubeComponents --env ENV=PR --env ENDPOINT=${{ github.event.deployment_status.target_url }}/api/graphql --env CUBE_IRI=https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/9 --env CUBE_LABEL=Photovoltaikanlagen/9 --env CHECK_TIMING=true --env WORKSPACE=${{ github.workspace }} --quiet - <k6/performance-tests/graphql/DataCubeComponents.js)" >> $GITHUB_ENV
- name: Run k6 test (iteration 2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Download, unzip and install k6 binary
run: |
wget https://github.com/grafana/k6/releases/download/v0.49.0/k6-v0.49.0-linux-amd64.tar.gz
tar -xzf k6-v0.49.0-linux-amd64.tar.gz
sudo cp k6-v0.49.0-linux-amd64/k6 /usr/local/bin/k6
export PATH=$PATH:/usr/local/bin
wget https://github.com/grafana/k6/releases/download/v0.49.0/k6-v0.49.0-linux-amd64.tar.gz
tar -xzf k6-v0.49.0-linux-amd64.tar.gz
sudo cp k6-v0.49.0-linux-amd64/k6 /usr/local/bin/k6
export PATH=$PATH:/usr/local/bin
- name: Run k6 test (iteration 1)
run: K6_PROMETHEUS_RW_USERNAME=${{ secrets.K6_PROMETHEUS_RW_USERNAME }} K6_PROMETHEUS_RW_PASSWORD=${{ secrets.K6_PROMETHEUS_RW_PASSWORD }} K6_PROMETHEUS_RW_SERVER_URL=${{ secrets.K6_PROMETHEUS_RW_SERVER_URL }} K6_PROMETHEUS_RW_TREND_STATS=avg k6 run -o experimental-prometheus-rw --tag testid=DataCubeComponents --env ENV=test --env ENDPOINT=https://test.visualize.admin.ch/api/graphql --env CUBE_IRI=https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/9 --env CUBE_LABEL=Photovoltaikanlagen/9 --env CHECK_TIMING=false --env WORKSPACE=${{ github.workspace }} --quiet - <k6/performance-tests/graphql/DataCubeComponents.js
- name: Run k6 test (iteration 2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
preload-varnish-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22.x
node-version: "lts/*"
cache: "yarn"
cache-dependency-path: "**/yarn.lock"
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ variables:
DOCKER_HOST: tcp://docker:2375

lint:
image: node:22
image: node:24-alpine
stage: lint
script:
- yarn --frozen-lockfile
Expand Down
Loading
Loading