Skip to content

Commit c9a8d10

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/slack-add-custom-time-interval-2Tv4K
# Conflicts: # pnpm-lock.yaml
2 parents 0cbed51 + 839d5e8 commit c9a8d10

File tree

109 files changed

+43819
-528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+43819
-528
lines changed

.cursor/rules/otel-metrics.mdc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ this.counter.add(1, {
4242
});
4343
```
4444

45+
## Prometheus Metric Naming
46+
47+
When metrics are exported via OTLP to Prometheus, the exporter automatically adds unit suffixes to metric names:
48+
49+
| OTel Metric Name | Unit | Prometheus Name |
50+
|------------------|------|-----------------|
51+
| `my_duration_ms` | `ms` | `my_duration_ms_milliseconds` |
52+
| `my_counter` | counter | `my_counter_total` |
53+
| `items_inserted` | counter | `items_inserted_inserts_total` |
54+
| `batch_size` | histogram | `batch_size_items_bucket` |
55+
56+
Keep this in mind when writing Grafana dashboards or Prometheus queries—the metric names in Prometheus will differ from the names defined in code.
57+
4558
## Reference
4659

4760
See the schedule engine (`internal-packages/schedule-engine/src/engine/index.ts`) for a good example of low-cardinality metric attributes.

.github/workflows/claude.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ jobs:
3030
with:
3131
fetch-depth: 1
3232

33+
- name: ⎔ Setup pnpm
34+
uses: pnpm/action-setup@v4
35+
with:
36+
version: 10.23.0
37+
38+
- name: ⎔ Setup node
39+
uses: buildjet/setup-node@v4
40+
with:
41+
node-version: 20.19.0
42+
cache: "pnpm"
43+
44+
- name: 📥 Download deps
45+
run: pnpm install --frozen-lockfile
46+
47+
- name: 📀 Generate Prisma Client
48+
run: pnpm run generate
49+
3350
- name: Run Claude Code
3451
id: claude
3552
uses: anthropics/claude-code-action@v1
@@ -42,6 +59,7 @@ jobs:
4259
4360
claude_args: |
4461
--model claude-opus-4-5-20251101
62+
--allowedTools "Bash(pnpm:*),Bash(turbo:*),Bash(git:*),Bash(gh:*),Bash(npx:*),Bash(docker:*),Edit,MultiEdit,Read,Write,Glob,Grep,LS,Task"
4563
4664
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
4765
# prompt: 'Update the pull request description to include a summary of changes.'
@@ -50,4 +68,3 @@ jobs:
5068
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
5169
# or https://code.claude.com/docs/en/cli-reference for available options
5270
# claude_args: '--allowed-tools Bash(gh pr:*)'
53-

.github/workflows/unit-tests-internal.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ jobs:
7272
if: ${{ !env.DOCKERHUB_USERNAME }}
7373
run: echo "DockerHub login skipped because secrets are not available."
7474

75+
- name: 🐳 Pre-pull testcontainer images
76+
if: ${{ env.DOCKERHUB_USERNAME }}
77+
run: |
78+
echo "Pre-pulling Docker images with authenticated session..."
79+
docker pull postgres:14
80+
docker pull clickhouse/clickhouse-server:25.4-alpine
81+
docker pull redis:7-alpine
82+
docker pull testcontainers/ryuk:0.11.0
83+
docker pull electricsql/electric:1.2.4
84+
echo "Image pre-pull complete"
85+
7586
- name: 📥 Download deps
7687
run: pnpm install --frozen-lockfile
7788

.github/workflows/unit-tests-packages.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ jobs:
7272
if: ${{ !env.DOCKERHUB_USERNAME }}
7373
run: echo "DockerHub login skipped because secrets are not available."
7474

75+
- name: 🐳 Pre-pull testcontainer images
76+
if: ${{ env.DOCKERHUB_USERNAME }}
77+
run: |
78+
echo "Pre-pulling Docker images with authenticated session..."
79+
docker pull postgres:14
80+
docker pull clickhouse/clickhouse-server:25.4-alpine
81+
docker pull redis:7-alpine
82+
docker pull testcontainers/ryuk:0.11.0
83+
docker pull electricsql/electric:1.2.4
84+
echo "Image pre-pull complete"
85+
7586
- name: 📥 Download deps
7687
run: pnpm install --frozen-lockfile
7788

.github/workflows/unit-tests-webapp.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ jobs:
7272
if: ${{ !env.DOCKERHUB_USERNAME }}
7373
run: echo "DockerHub login skipped because secrets are not available."
7474

75+
- name: 🐳 Pre-pull testcontainer images
76+
if: ${{ env.DOCKERHUB_USERNAME }}
77+
run: |
78+
echo "Pre-pulling Docker images with authenticated session..."
79+
docker pull postgres:14
80+
docker pull clickhouse/clickhouse-server:25.4-alpine
81+
docker pull redis:7-alpine
82+
docker pull testcontainers/ryuk:0.11.0
83+
docker pull electricsql/electric:1.2.4
84+
echo "Image pre-pull complete"
85+
7586
- name: 📥 Download deps
7687
run: pnpm install --frozen-lockfile
7788

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { cn } from "~/utils/cn";
2+
import { Badge } from "./primitives/Badge";
3+
import { SimpleTooltip } from "./primitives/Tooltip";
4+
5+
export function AlphaBadge({
6+
inline = false,
7+
className,
8+
}: {
9+
inline?: boolean;
10+
className?: string;
11+
}) {
12+
return (
13+
<SimpleTooltip
14+
button={
15+
<Badge variant="extra-small" className={cn(inline ? "inline-grid" : "", className)}>
16+
Alpha
17+
</Badge>
18+
}
19+
content="This feature is in Alpha."
20+
disableHoverableContent
21+
/>
22+
);
23+
}
24+
25+
export function AlphaTitle({ children }: { children: React.ReactNode }) {
26+
return (
27+
<>
28+
<span>{children}</span>
29+
<AlphaBadge />
30+
</>
31+
);
32+
}

0 commit comments

Comments
 (0)