Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
41077a0
feat: add standalone warp-monitor package with Docker image
paulbalaji Dec 18, 2025
62ac043
chore: use detective emoji for warp monitor
paulbalaji Dec 18, 2025
29340a9
fix: add missing eslint and mocha config files for warp-monitor
paulbalaji Dec 18, 2025
d4b1568
test: add unit tests for warp-monitor package
paulbalaji Dec 18, 2025
5b0a2ae
fix(warp-monitor): improve test coverage with meaningful assertions
paulbalaji Dec 18, 2025
b85e6b5
style(warp-monitor): format ncc.post-bundle.mjs with prettier
paulbalaji Dec 18, 2025
5457fb6
CR review
paulbalaji Dec 22, 2025
359ec5a
pin foundry version in warp-monitor dockerfile
paulbalaji Dec 22, 2025
16bf62c
refine warp-monitor workflow triggers
paulbalaji Dec 22, 2025
182887d
fixes
paulbalaji Dec 29, 2025
b87b8ce
CR: fixes
paulbalaji Dec 29, 2025
e57f4c0
CR: andrey
paulbalaji Dec 29, 2025
5ef1d6e
CR: andrey, no exports
paulbalaji Dec 29, 2025
820080b
fix(warp-monitor): exclude pino-logging-gcp-config from ncc bundle
paulbalaji Dec 29, 2025
baac7ac
fix(warp-monitor): add eslint-config dep, exclude from dockerfile check
paulbalaji Dec 29, 2025
9ed2030
Merge remote-tracking branch 'origin/main' into feat/standalone-warp-…
paulbalaji Dec 29, 2025
fbc50f4
update lockfile
paulbalaji Dec 29, 2025
333e3f9
update warp monitor tag
paulbalaji Dec 29, 2025
49cacd0
fix: use exact matching in check-package-json exclusion list
paulbalaji Dec 29, 2025
ef0fed7
fix: add warp-monitor to monorepo Dockerfile build
paulbalaji Dec 29, 2025
eda7b03
Merge remote-tracking branch 'origin/main' into feat/standalone-warp-…
paulbalaji Dec 30, 2025
e1aa971
update default image
paulbalaji Dec 30, 2025
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
124 changes: 124 additions & 0 deletions .github/workflows/warp-monitor-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
name: Build and Push Warp Monitor Image to GCR
on:
push:
branches: [main]
tags:
- '**'
pull_request:
paths:
- 'typescript/warp-monitor/**'
- '.github/workflows/warp-monitor-docker.yml'
workflow_dispatch:
inputs:
include_arm64:
description: 'Include arm64 in the build'
required: false
default: 'false'

concurrency:
group: build-push-warp-monitor-${{ github.ref }}
cancel-in-progress: true

jobs:
check-env:
runs-on: ubuntu-latest
outputs:
gcloud-service-key: ${{ steps.gcloud-service-key.outputs.defined }}
steps:
- id: gcloud-service-key
env:
GCLOUD_SERVICE_KEY: ${{ secrets.GCLOUD_SERVICE_KEY }}
if: "${{ env.GCLOUD_SERVICE_KEY != '' }}"
run: echo "defined=true" >> $GITHUB_OUTPUT

build-and-push-to-gcr:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
pull-requests: write

needs: [check-env]
if: needs.check-env.outputs.gcloud-service-key == 'true'

steps:
- name: Generate GitHub App Token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.HYPER_GONK_APP_ID }}
private-key: ${{ secrets.HYPER_GONK_PRIVATE_KEY }}

- uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: recursive
fetch-depth: 0

- name: Generate tag data
id: taggen
run: |
echo "TAG_DATE=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT
echo "TAG_SHA=$(echo '${{ github.event.pull_request.head.sha || github.sha }}' | cut -b 1-7)" >> $GITHUB_OUTPUT

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
gcr.io/abacus-labs-dev/hyperlane-warp-monitor
tags: |
type=ref,event=branch
type=ref,event=pr
type=raw,value=${{ steps.taggen.outputs.TAG_SHA }}-${{ steps.taggen.outputs.TAG_DATE }}

- name: Set up Depot CLI
uses: depot/setup-action@v1

- name: Login to GCR
uses: docker/login-action@v3
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCLOUD_SERVICE_KEY }}

- name: Determine platforms
id: determine-platforms
run: |
if [ "${{ github.event.inputs.include_arm64 }}" == "true" ]; then
echo "platforms=linux/amd64,linux/arm64" >> $GITHUB_OUTPUT
else
echo "platforms=linux/amd64" >> $GITHUB_OUTPUT
fi

- name: Get Foundry version
id: foundry-version
run: |
FOUNDRY_VERSION=$(cat solidity/.foundryrc)
echo "FOUNDRY_VERSION=$FOUNDRY_VERSION" >> $GITHUB_OUTPUT

- name: Build and push
id: build
uses: depot/build-push-action@v1
with:
project: 3cpjhx94qv
context: ./
file: ./typescript/warp-monitor/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ steps.determine-platforms.outputs.platforms }}
build-args: |
FOUNDRY_VERSION=${{ steps.foundry-version.outputs.FOUNDRY_VERSION }}

- name: Comment image tags on PR
if: github.event_name == 'pull_request'
uses: ./.github/actions/docker-image-comment
with:
comment_tag: warp-monitor-docker-image
image_name: Warp Monitor Docker Image
emoji: 🕵️
image_tags: ${{ steps.meta.outputs.tags }}
pr_number: ${{ github.event.pull_request.number }}
github_token: ${{ steps.generate-token.outputs.token }}
job_status: ${{ job.status }}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ COPY typescript/infra/package.json ./typescript/infra/
COPY typescript/provider-sdk/package.json ./typescript/provider-sdk/
COPY typescript/radix-sdk/package.json ./typescript/radix-sdk/
COPY typescript/rebalancer/package.json ./typescript/rebalancer/
COPY typescript/warp-monitor/package.json ./typescript/warp-monitor/
COPY typescript/sdk/package.json ./typescript/sdk/
COPY typescript/tsconfig/package.json ./typescript/tsconfig/
COPY typescript/utils/package.json ./typescript/utils/
Expand Down
72 changes: 71 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ catalog:
typescript: 5.8.3
tsx: ^4.19.1
ts-node: ^10.9.2
'@vercel/ncc': ^0.38.3

# Linting
eslint: ^9.31.0
Expand Down
2 changes: 1 addition & 1 deletion typescript/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@types/yargs": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"@vercel/ncc": "^0.38.3",
"@vercel/ncc": "catalog:",
"ansi-escapes": "^7.0.0",
"asn1.js": "catalog:",
"bignumber.js": "catalog:",
Expand Down
28 changes: 12 additions & 16 deletions typescript/infra/helm/warp-routes/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,18 @@ The warp-routes container
env:
- name: LOG_FORMAT
value: json
- name: REGISTRY_COMMIT
value: {{ .Values.hyperlane.registryCommit }}
# Use `args` instead of `command` to preserve the Docker ENTRYPOINT.
# The entrypoint script (docker-entrypoint.sh) handles REGISTRY_COMMIT checkout.
# Using `command` would bypass the entrypoint and break registry version pinning.
args:
- pnpm
- exec
- tsx
- ./typescript/infra/scripts/warp-routes/monitor/monitor-warp-route-balances.ts
- -v
- "30000"
- --warpRouteId
- {{ .Values.warpRouteId }}
- -e
- {{ .Values.environment}}
- name: LOG_LEVEL
value: info
{{- if .Values.hyperlane.registryUri }}
- name: REGISTRY_URI
value: {{ .Values.hyperlane.registryUri }}
{{- end }}
- name: WARP_ROUTE_ID
value: {{ .Values.warpRouteId }}
- name: CHECK_FREQUENCY
value: "30000"
- name: COINGECKO_API_KEY
value: $(COINGECKO_API_KEY)
envFrom:
- secretRef:
name: {{ include "hyperlane.fullname" . }}-secret
Expand Down
4 changes: 2 additions & 2 deletions typescript/infra/helm/warp-routes/values.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
image:
repository: gcr.io/hyperlane-labs-dev/hyperlane-monorepo
repository: gcr.io/abacus-labs-dev/hyperlane-warp-monitor
tag:
hyperlane:
runEnv: mainnet3
context: hyperlane
chains: []
registryCommit:
registryUri: ''
nameOverride: ''
fullnameOverride: ''
externalSecrets:
Expand Down
Loading
Loading