Skip to content

Commit aa79366

Browse files
committed
Add metrics tracking and logging to the server
1 parent 4f1909b commit aa79366

14 files changed

Lines changed: 513 additions & 95 deletions

.github/workflows/build-runner.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
name: Build CI/CD base image
22

3-
on:
4-
# schedule:
5-
# - cron: '15 11 * * *'
6-
push:
7-
branches: [ "main" ]
8-
paths:
9-
- ".github/workflows/build-runner.yml"
10-
- ".github/workflows/runner.Dockerfile"
11-
pull_request:
12-
branches: [ "main" ]
13-
paths:
14-
- ".github/workflows/build-runner.yml"
15-
- ".github/workflows/runner.Dockerfile"
3+
# on:
4+
# # schedule:
5+
# # - cron: '15 11 * * *'
6+
# push:
7+
# branches: [ "main" ]
8+
# paths:
9+
# - ".github/workflows/build-runner.yml"
10+
# - ".github/workflows/runner.Dockerfile"
11+
# pull_request:
12+
# branches: [ "main" ]
13+
# paths:
14+
# - ".github/workflows/build-runner.yml"
15+
# - ".github/workflows/runner.Dockerfile"
16+
on: workflow_dispatch
1617

1718
env:
1819
REGISTRY: ghcr.io

.github/workflows/check-ts.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Check TypeScript code
22

3-
on:
4-
pull_request:
5-
branches: [ "main" ]
6-
paths:
7-
- ".github/workflows/check-ts.yml"
8-
- "examples/**"
9-
- "debugger/**"
10-
- "tests/**"
11-
- "js-pkg/**"
3+
# on:
4+
# pull_request:
5+
# branches: [ "main" ]
6+
# paths:
7+
# - ".github/workflows/check-ts.yml"
8+
# - "examples/**"
9+
# - "debugger/**"
10+
# - "tests/**"
11+
# - "js-pkg/**"
12+
on: workflow_dispatch
1213

1314
jobs:
1415
check-ts-format:

.github/workflows/clippy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
on:
2-
pull_request:
3-
branches: [ "*" ]
4-
paths:
5-
- "crates/**"
1+
# on:
2+
# pull_request:
3+
# branches: [ "*" ]
4+
# paths:
5+
# - "crates/**"
6+
on: workflow_dispatch
67

78
name: Clippy check
89
jobs:

.github/workflows/docker-publish.yml

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Docker
22

33
on:
44
push:
5-
branches: [ "main" ]
6-
tags: [ 'v*.*.*' ]
5+
branches: ["main"]
6+
tags: ["v*.*.*"]
77
pull_request:
8-
branches: [ "main" ]
8+
branches: ["main"]
99

1010
env:
1111
REGISTRY: ghcr.io
@@ -17,56 +17,44 @@ jobs:
1717
permissions:
1818
contents: read
1919
packages: write
20-
id-token: write
2120

2221
steps:
2322
- name: Checkout repository
2423
uses: actions/checkout@v4
2524

26-
- name: Install cosign
27-
if: github.event_name != 'pull_request'
28-
uses: sigstore/cosign-installer@v3.3.0
29-
with:
30-
cosign-release: 'v2.2.3'
25+
- name: Set up QEMU
26+
uses: docker/setup-qemu-action@v3
3127

3228
- name: Set up Docker Buildx
33-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
29+
uses: docker/setup-buildx-action@v3
3430

3531
- name: Log into registry ${{ env.REGISTRY }}
3632
if: github.event_name != 'pull_request'
37-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
33+
uses: docker/login-action@v3
3834
with:
3935
registry: ${{ env.REGISTRY }}
4036
username: ${{ github.actor }}
4137
password: ${{ secrets.GITHUB_TOKEN }}
4238

4339
- name: Extract Docker metadata
4440
id: meta
45-
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
41+
uses: docker/metadata-action@v5
4642
with:
4743
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4844
tags: |
4945
type=sha,enable=true,priority=100,prefix=sha-,suffix=,format=short
50-
type=raw,value=latest
51-
52-
- uses: depot/setup-action@v1
46+
type=raw,value=latest,enable={{is_default_branch}}
47+
type=semver,pattern={{version}}
48+
type=semver,pattern={{major}}.{{minor}}
5349
5450
- name: Build and push Docker image
55-
id: build-and-push
56-
uses: depot/build-push-action@v1
51+
uses: docker/build-push-action@v6
5752
with:
5853
context: "crates"
5954
file: "crates/Dockerfile"
6055
push: ${{ github.event_name != 'pull_request' }}
6156
tags: ${{ steps.meta.outputs.tags }}
6257
labels: ${{ steps.meta.outputs.labels }}
63-
platforms: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'drifting-in-space/plane' && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
64-
buildx-fallback: true
65-
project: 58j0517pw2
66-
67-
- name: Sign the published Docker image
68-
if: ${{ github.event_name != 'pull_request' }}
69-
env:
70-
TAGS: ${{ steps.meta.outputs.tags }}
71-
DIGEST: ${{ steps.build-and-push.outputs.digest }}
72-
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
58+
platforms: linux/amd64,linux/arm64
59+
cache-from: type=gha
60+
cache-to: type=gha,mode=max

.github/workflows/integration-tests.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: Integration Tests
22

3-
on:
4-
pull_request:
5-
branches: [ "main" ]
6-
paths:
7-
- ".github/workflows/integration-tests.yml"
8-
- "tests/**"
9-
- "crates/**"
10-
- "js-pkg/**"
3+
# on:
4+
# pull_request:
5+
# branches: [ "main" ]
6+
# paths:
7+
# - ".github/workflows/integration-tests.yml"
8+
# - "tests/**"
9+
# - "crates/**"
10+
# - "js-pkg/**"
11+
on: workflow_dispatch
1112

1213
env:
1314
CARGO_TERM_COLOR: always

.github/workflows/python-tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: Run Python tests
22

3-
on:
4-
pull_request:
5-
branches: [ "main" ]
6-
paths:
7-
- "python/**"
8-
- ".github/workflows/python-tests.yml"
3+
# on:
4+
# pull_request:
5+
# branches: [ "main" ]
6+
# paths:
7+
# - "python/**"
8+
# - ".github/workflows/python-tests.yml"
9+
on: workflow_dispatch
910

1011
jobs:
1112
uv-example:

.github/workflows/release.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ name: Build Rust binary and create release
22

33
# Note: If you add or remove binaries, you should also update the list in releaser/src/check_binaries.rs
44

5-
on:
6-
workflow_dispatch:
7-
inputs:
8-
version:
9-
description: 'Release Version'
10-
required: true
11-
pull_request:
12-
branches: [ "main" ]
13-
paths:
14-
- ".github/workflows/release.yml"
5+
# on:
6+
# workflow_dispatch:
7+
# inputs:
8+
# version:
9+
# description: 'Release Version'
10+
# required: true
11+
# pull_request:
12+
# branches: [ "main" ]
13+
# paths:
14+
# - ".github/workflows/release.yml"
15+
on: workflow_dispatch
1516

1617
jobs:
1718
build-macos-arm64:

.github/workflows/rustfmt.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Rustfmt
22

3-
on:
4-
pull_request:
5-
branches: [ "*" ]
6-
paths:
7-
- "crates/**"
3+
# on:
4+
# pull_request:
5+
# branches: [ "*" ]
6+
# paths:
7+
# - "crates/**"
8+
on: workflow_dispatch
89

910
jobs:
1011
check-rust-format:

.github/workflows/staging-deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Staging Deploy
22

3-
on:
4-
push:
5-
branches: [ "main" ]
6-
paths:
7-
- "crates/**"
3+
# on:
4+
# push:
5+
# branches: [ "main" ]
6+
# paths:
7+
# - "crates/**"
8+
on: workflow_dispatch
89

910
env:
1011
CARGO_TERM_COLOR: always

.github/workflows/unit-tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: Unit Tests
22

3-
on:
4-
pull_request:
5-
branches: ["main"]
6-
paths:
7-
- "crates/**"
8-
- ".github/workflows/unit-tests.yml"
3+
# on:
4+
# pull_request:
5+
# branches: ["main"]
6+
# paths:
7+
# - "crates/**"
8+
# - ".github/workflows/unit-tests.yml"
9+
on: workflow_dispatch
910

1011
env:
1112
CARGO_TERM_COLOR: always

0 commit comments

Comments
 (0)