Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

env:
GO_VERSION: '1.23'
GO_VERSION: '1.24'

jobs:
lint:
Expand All @@ -34,22 +34,29 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Run tests
run: make unit-test-local
- run: go test ./... -covermode=atomic -coverprofile=coverage.out
- run: go tool cover -func=coverage.out
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
root_dir: .
fail_ci_if_error: true
verbose: true


security:
name: Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: "**/go.sum"

cache: true
- name: Run vulnerability check
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
Expand All @@ -58,12 +65,12 @@ jobs:
build:
name: Build Binary
runs-on: ubuntu-latest
needs: [lint, test]
needs: [lint, test, security]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Build binary
run: make build-local
run: make build-local
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SHELL = /bin/bash
PROJECT_NAME = github.com/aigw-project/metadata-center
BINARY_NAME = metadata-center
DOCKER_MIRROR = m.daocloud.io/
BUILD_IMAGE ?= $(DOCKER_MIRROR)docker.io/library/golang:1.23
BUILD_IMAGE ?= $(DOCKER_MIRROR)docker.io/library/golang:1.24
DOCKER_IMAGE ?= metadata-center

# use for version update
Expand Down Expand Up @@ -55,7 +55,7 @@ run-local: build-local

.PHONY: unit-test-local
unit-test-local:
go test -v $(GO_MODULES) -covermode=atomic -coverprofile=coverage.out -coverpkg=$(PROJECT_NAME)/...
go test -v $(GO_MODULES) -covermode=atomic -coverprofile=coverage.out -coverpkg=./...

.PHONY: unit-test
unit-test:
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

A near real-time load metric collection component, designed for intelligent inference scheduler in large-scale inference services.

## Builds
[![CI](https://github.com/aigw-project/metadata-center/actions/workflows/ci.yml/badge.svg)](https://github.com/aigw-project/metadata-center/actions/workflows/ci.yml)

## Code quality
[![codecov](https://codecov.io/gh/aigw-project/metadata-center/branch/main/graph/badge.svg)](https://codecov.io/gh/aigw-project/metadata-center)
[![Go Report Card](https://goreportcard.com/badge/github.com/aigw-project/metadata-center)](https://goreportcard.com/report/github.com/aigw-project/metadata-center)

English | [中文](README_ZH.md)

## Status
Expand Down
7 changes: 7 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

专为大规模推理集群智能路由设计的,准实时负载指标统计组件

## Builds
[![CI](https://github.com/aigw-project/metadata-center/actions/workflows/ci.yml/badge.svg)](https://github.com/aigw-project/metadata-center/actions/workflows/ci.yml)

## Code quality
[![codecov](https://codecov.io/gh/aigw-project/metadata-center/branch/main/graph/badge.svg)](https://codecov.io/gh/aigw-project/metadata-center)
[![Go Report Card](https://goreportcard.com/badge/github.com/aigw-project/metadata-center)](https://goreportcard.com/report/github.com/aigw-project/metadata-center)

[English](README.md) | 中文

## 状态
Expand Down
2 changes: 1 addition & 1 deletion docs/en/developer_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Prerequisites

- Go 1.23.6+
- Go 1.24.9+
- Docker

### Getting Started
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/developer_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### 前置要求

- Go 1.23.6+
- Go 1.24.9+
- Docker

### 开始使用
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/aigw-project/metadata-center

go 1.23.6
go 1.24.9

require (
github.com/gin-gonic/gin v1.10.0
Expand Down
8 changes: 0 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -122,23 +122,15 @@ github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBi
golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
golang.org/x/arch v0.8.0 h1:3wRIsP3pM4yUptoR96otTUOXI367OS0+c9eeRi9doIc=
golang.org/x/arch v0.8.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys=
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34=
golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM=
Expand Down
Loading