+
Skip to content
Open
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
42 changes: 42 additions & 0 deletions .github/workflows/upgrade-lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ permissions:

on:
workflow_dispatch:
inputs:
pr_number:
description: 'PR number to upgrade lock files for (leave empty to use current branch)'
required: false
type: string
default: ''
schedule:
- cron: "0 4 * * 0" # At 4 AM UTC on every Sunday

Expand All @@ -29,22 +35,58 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'mlrun'
steps:

# checkout from running branch
- uses: actions/checkout@v5
if: github.event.inputs.pr_number == ''

# checkout from PR
- uses: actions/checkout@v5
if: github.event.inputs.pr_number != ''
with:
fetch-depth: 0
ref: refs/pull/${{ github.event.inputs.pr_number }}/merge

# verify pull request is open
- name: Verify PR is open
if: github.event.inputs.pr_number != ''
run: |
PR_STATUS=$(gh pr view "${PR_NUMBER}" --json state --jq '.state')
if [ "$PR_STATUS" != "OPEN" ]; then
echo "Pull request #${PR_NUMBER} is not open ('${PR_STATUS}'). Exiting."
exit 1
fi
env:
PR_NUMBER: ${{ github.event.inputs.pr_number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1 # 6.5.0

- name: Upgrade dependencies in the lock file with uv
run: make upgrade-mlrun-deps-lock

- name: Commit and push changes
if: github.event.inputs.pr_number != ''
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add **/locked-requirements.txt
git commit -m "Upgrade uv lock files for PR #${PR_NUMBER}"
git push origin "refs/pull/${PR_NUMBER}/merge"
env:
PR_NUMBER: ${{ github.event.inputs.pr_number }}

- name: Format PR title
id: format-title
if: github.event.inputs.pr_number == ''
run: |
if [ "${{ github.ref_name }}" != "development" ]; then
echo "title=[Requirements-automated] Upgrade lock files [${{ github.ref_name }}]" >> "$GITHUB_OUTPUT"
else
echo "title=[Requirements-automated] Upgrade lock files" >> "$GITHUB_OUTPUT"
fi
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # 7.0.8
if: github.event.inputs.pr_number == ''
with:
title: ${{ steps.format-title.outputs.title }}
body: |
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ print-docker-images: ## Print all docker images
@for image in $(DEFAULT_IMAGES); do \
echo $$image ; \
done
@make -C server/go print-docker-images


MLRUN_IMAGE_NAME := $(MLRUN_DOCKER_IMAGE_PREFIX)/mlrun
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/mlrun/mlrun?sort=semver)](https://github.com/mlrun/mlrun/releases)
[![Join MLOps Live](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://mlopslive.slack.com)





<div>
<span>
<picture>
Expand Down
14 changes: 11 additions & 3 deletions server/go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ KUBECONFIG := $(if $(KUBECONFIG),$(KUBECONFIG),$(HOME)/.kube/config)

CI_BIN_DIR=$(shell pwd)/.bin
DOCKER_IMAGES = log-collector
LOG_COLLECTOR_IMAGE_NAME := $(MLRUN_DOCKER_IMAGE_PREFIX)/log-collector:$(MLRUN_DOCKER_TAG)
DEFAULT_IMAGES += $(LOG_COLLECTOR_IMAGE_NAME)

GOLANGCI_LINT_VERSION := 2.2.1
GOLANGCI_LINT_BIN := $(CI_BIN_DIR)/golangci-lint
Expand All @@ -40,23 +42,29 @@ build: docker-images
docker-images: compile-schemas $(DOCKER_IMAGES)
@echo Built $(DOCKER_IMAGES)

.PHONY: print-docker-images
print-docker-images:
@for image in $(DEFAULT_IMAGES); do \
echo $$image ; \
done

.PHONY: log-collector
log-collector: compile-schemas
@echo Building log-collector image
docker build \
--file services/logcollector/cmd/docker/Dockerfile \
--build-arg GO_VERSION=$(GO_VERSION) \
--tag $(MLRUN_DOCKER_IMAGE_PREFIX)/log-collector:$(MLRUN_DOCKER_TAG) \
--tag $(LOG_COLLECTOR_IMAGE_NAME) \
.

.PHONY: push-log-collector
push-log-collector:
@echo Pushing log-collector image
docker push $(MLRUN_DOCKER_IMAGE_PREFIX)/log-collector:$(MLRUN_DOCKER_TAG)
docker push $(LOG_COLLECTOR_IMAGE_NAME)

.PHONY: pull-log-collector
pull-log-collector:
docker pull $(MLRUN_DOCKER_IMAGE_PREFIX)/log-collector:$(MLRUN_DOCKER_TAG)
docker pull $(LOG_COLLECTOR_IMAGE_NAME)

.PHONY: schemas-compiler
schemas-compiler:
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载