21 Commits

Author SHA1 Message Date
ca14dfe982 Обновить .github/workflows/notify.yaml 2025-07-29 07:29:23 +00:00
d15475c5f3 Обновить .github/workflows/build.yaml 2025-07-29 07:29:04 +00:00
011e818f6c Обновить .github/workflows/all_test4.yaml 2025-07-29 07:05:54 +00:00
9463d122df Обновить .github/workflows/all_test4.yaml 2025-07-28 06:25:31 +00:00
66b4e757d2 Обновить .github/workflows/all_test4.yaml 2025-07-27 21:04:57 +00:00
e7167566c0 Обновить .github/workflows/all_test4.yaml 2025-07-27 20:43:22 +00:00
3f6984fb44 Обновить .github/workflows/all_test4.yaml 2025-07-27 20:10:11 +00:00
9fb1595e63 Обновить .github/workflows/all_test4.yaml 2025-07-27 20:07:54 +00:00
8f9e4c43db Обновить .github/workflows/all_test4.yaml 2025-07-27 19:37:59 +00:00
680b85de00 Обновить .github/workflows/all_test4.yaml 2025-07-27 19:31:56 +00:00
bc1d9adca2 Обновить .github/workflows/all_test4.yaml 2025-07-27 19:28:18 +00:00
917a737b52 Обновить .github/workflows/all_test4.yaml 2025-07-27 18:21:07 +00:00
be496ca2ba Обновить .github/workflows/all_test4.yaml 2025-07-27 18:11:55 +00:00
d79013e589 Обновить .github/workflows/all_test4.yaml 2025-07-25 15:02:31 +00:00
01bac40296 Обновить .github/workflows/all_test4.yaml 2025-07-25 14:57:21 +00:00
d71efd5f56 Обновить .github/workflows/all_test4.yaml 2025-07-25 14:52:03 +00:00
f734bfb104 Обновить .github/workflows/all_test4.yaml 2025-07-25 14:32:25 +00:00
e2ca8c4257 Обновить .github/workflows/all_test4.yaml 2025-07-25 14:22:34 +00:00
3759d788c3 Обновить .github/workflows/all_test4.yaml 2025-07-25 14:18:00 +00:00
3bbcb51347 Обновить .github/workflows/all_test4.yaml 2025-07-25 14:15:01 +00:00
57379c0a84 Обновить .github/workflows/all_test4.yaml 2025-07-25 13:56:59 +00:00
4 changed files with 19 additions and 43 deletions

View File

@@ -12,7 +12,7 @@ on:
jobs: jobs:
tests: tests:
runs-on: ubuntu-22.04-v25.04.01 runs-on: gpu
env: env:
effective_tag: ${{ inputs.tag || github.head_ref || github.ref_name }} effective_tag: ${{ inputs.tag || github.head_ref || github.ref_name }}
steps: steps:
@@ -42,10 +42,7 @@ jobs:
api_token: ${{ secrets.GITHUBTOKEN }} api_token: ${{ secrets.GITHUBTOKEN }}
- name: Prepare prbot_data directory - name: Prepare prbot_data directory
run: | run: mkdir -p /home/runner/prbot_data && chmod -R 777 /home/runner/prbot_data
mkdir -p "${{ runner.temp }}/prbot_data"
echo "PRBOT_DATA=${{ runner.temp }}/prbot_data" >> $GITHUB_ENV
echo "Using PRBOT_DATA=${{ runner.temp }}/prbot_data"
- name: Sanitize tag - name: Sanitize tag
run: | run: |
@@ -72,30 +69,6 @@ jobs:
run: | run: |
docker compose -f docker-compose-dev.yaml down || true docker compose -f docker-compose-dev.yaml down || true
- name: Force remove old containers and network
run: |
docker ps --filter "network=hub-network" -aq | xargs -r docker rm -f || true
docker network rm hub-network || true
docker network ls
- name: Patch docker-compose-dev.yaml to set network MTU
run: |
echo "patching docker-compose-dev.yaml to set MTU=1400"
tmpfile=$(mktemp)
awk '
/driver: bridge/ {
print $0
print " driver_opts:"
print " com.docker.network.driver.mtu: 1400"
next
}
{ print $0 }
' docker-compose-dev.yaml > "$tmpfile"
mv "$tmpfile" docker-compose-dev.yaml
tail -n 10 docker-compose-dev.yaml
- name: Start docker-compose services - name: Start docker-compose services
env: env:
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
@@ -105,8 +78,10 @@ jobs:
- name: Ruff format check (strict) - name: Ruff format check (strict)
run: | run: |
echo "Starting Ruff format check with tag: ${{ env.SANITIZED_TAG }}"
docker run --rm \ docker run --rm \
-v "${PRBOT_DATA}:/tmp" \ -v /home/runner/prbot_data:/tmp \
cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.SANITIZED_TAG }} \ cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.SANITIZED_TAG }} \
bash -c ' bash -c '
pip install ruff pip install ruff
@@ -114,24 +89,25 @@ jobs:
echo "=== Ruff format check ===" echo "=== Ruff format check ==="
ruff format . --check ruff format . --check
' \ ' \
| tee "${PRBOT_DATA}/full_output.txt" | prbot | tee /home/runner/prbot_data/full_output.txt | prbot
echo "=== Format Output ===" echo "=== Format Output ==="
cat "${PRBOT_DATA}/full_output.txt" cat /home/runner/prbot_data/full_output.txt
- name: Run Docker with output redirection - name: Run Docker with output redirection
run: | run: |
docker run --rm \ docker run --rm \
-v "${PRBOT_DATA}:/tmp" \ -v /home/runner/prbot_data:/tmp \
cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.SANITIZED_TAG }} \ cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.SANITIZED_TAG }} \
bash -c ' bash -c '
pip install ruff pytest pytest-github-actions-annotate-failures pip install ruff pytest pytest-github-actions-annotate-failures
echo "=== Ruff ===" echo "=== Ruff ==="
cd /server && ruff check . | sed "s|/server/||g" || true cd /server && ruff check . | sed "s|/server/||g" || true
' \ ' \
| tee "${PRBOT_DATA}/full_output.txt" | prbot | tee /home/runner/prbot_data/full_output.txt | prbot
echo "=== Full Output ===" echo "=== Full Output ==="
cat "${PRBOT_DATA}/full_output.txt" cat /home/runner/prbot_data/full_output.txt
- name: Create database - name: Create database
run: | run: |

View File

@@ -12,7 +12,7 @@ on:
jobs: jobs:
tests: tests:
runs-on: gpu runs-on: ubuntu-22.04-v25.04.01
env: env:
effective_tag: ${{ inputs.tag || github.head_ref || github.ref_name }} effective_tag: ${{ inputs.tag || github.head_ref || github.ref_name }}
steps: steps:
@@ -74,7 +74,7 @@ jobs:
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
SSH_AUTH_SOCK: ${{ env.SSH_AUTH_SOCK }} SSH_AUTH_SOCK: ${{ env.SSH_AUTH_SOCK }}
run: | run: |
docker compose -f docker-compose-dev.yaml up --build -d docker compose -f docker-compose-dev.yaml up -d
- name: Ruff format check (strict) - name: Ruff format check (strict)
run: | run: |

View File

@@ -15,7 +15,7 @@ on:
jobs: jobs:
build: build:
runs-on: gpu runs-on: ubuntu-22.04-v25.04.01
env: env:
CR_REGISTRY: crp8vh46gd976oq8ipla CR_REGISTRY: crp8vh46gd976oq8ipla
CR_REPO: ${{ github.event.repository.name }} CR_REPO: ${{ github.event.repository.name }}

View File

@@ -13,7 +13,7 @@ on:
default: build default: build
jobs: jobs:
notify: notify:
runs-on: gpu runs-on: ubuntu-22.04-v25.04.01
steps: steps:
- uses: mattermost/action-mattermost-notify@master - uses: mattermost/action-mattermost-notify@master
with: with: