Gitea Runner performance #14894

Open
opened 2025-11-02 11:25:18 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @aiyolo on GitHub (Aug 23, 2025).

Description

I found an abnormal behaviour that the runner would be paused after compiling c++ source files, then waiting a few minutes, until it can start link program.

It would waste a lot of time.

2025-08-23T07:28:16.2687878Z [94/117] Building CXX object demo\lib_ligcam\CMakeFiles\lib_ligcam.dir\Debug\__\__\tasks\task_ttask\src\opencv_tools.cpp.obj
2025-08-23T07:28:16.2812300Z [95/117] Building CXX object tasks\task_htask\CMakeFiles\task_htask.dir\Debug\__\task_ttask\src\opencv_tools.cpp.obj
2025-08-23T07:28:16.3434428Z [96/117] Building CXX object tasks\task_htask\CMakeFiles\task_htask.dir\Debug\src\wdp_light_ctrl.cpp.obj
2025-08-23T07:28:16.3966993Z [97/117] Building CXX object tasks\task_htask\CMakeFiles\task_htask.dir\Debug\src\hlig_manager.cpp.obj
2025-08-23T07:28:17.6781352Z [98/117] Building CXX object tasks\task_htask\CMakeFiles\task_htask.dir\Debug\src\htask_manager.cpp.obj
2025-08-23T07:28:17.7732484Z [99/117] Building CXX object tasks\task_ttask\CMakeFiles\task_demo.dir\Debug\src\task_demo.cpp.obj
2025-08-23T07:34:20.0911436Z [100/117] Linking CXX shared library bin\Debug\cam_adapter_d.dll
2025-08-23T07:34:20.2093876Z [101/117] Linking CXX executable bin\Debug\darsa_demo.exe
2025-08-23T07:34:20.3432850Z [102/117] Linking CXX shared library bin\Debug\cam_ikap_net_d.dll
2025-08-23T07:34:20.8964883Z [103/117] Linking CXX executable bin\Debug\ikap_net_demo.exe
2025-08-23T07:34:21.5355749Z [104/117] Linking CXX executable bin\Debug\light_cmder.exe
2025-08-23T07:34:21.7106534Z [105/117] Linking CXX executable bin\Debug\ikap_board_demo.exe
2025-08-23T07:34:22.0055083Z [106/117] Linking CXX shared library bin\Debug\cam_hik_basler_d.dll
2025-08-23T07:34:22.7097592Z [107/117] Linking CXX shared library bin\Debug\cam_ikap_board_d.dll
2025-08-23T07:34:22.7141600Z [108/117] Linking CXX shared library bin\Debug\cam_dalsa_d.dll
2025-08-23T07:34:26.6862291Z [109/117] Linking CXX shared library bin\Debug\task_htask_d.dll
2025-08-23T07:34:26.7018613Z [110/117] Linking CXX shared library bin\Debug\lib_ligcam_d.dll
2025-08-23T07:34:26.8351713Z [111/117] Linking CXX shared library bin\Debug\task_ttask_d.dll
2025-08-23T07:36:11.9565271Z [112/117] Linking CXX executable bin\Debug\test_enum_local_cams.exe

No response

Gitea Version

1.24.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Git Version

No response

Operating System

No response

How are you running Gitea?

running gitea using docker on windows
running gitea runner directly on windows host

Database

None

Originally created by @aiyolo on GitHub (Aug 23, 2025). ### Description I found an abnormal behaviour that the runner would be paused after compiling c++ source files, then waiting a few minutes, until it can start link program. It would waste a lot of time. ``` 2025-08-23T07:28:16.2687878Z [94/117] Building CXX object demo\lib_ligcam\CMakeFiles\lib_ligcam.dir\Debug\__\__\tasks\task_ttask\src\opencv_tools.cpp.obj 2025-08-23T07:28:16.2812300Z [95/117] Building CXX object tasks\task_htask\CMakeFiles\task_htask.dir\Debug\__\task_ttask\src\opencv_tools.cpp.obj 2025-08-23T07:28:16.3434428Z [96/117] Building CXX object tasks\task_htask\CMakeFiles\task_htask.dir\Debug\src\wdp_light_ctrl.cpp.obj 2025-08-23T07:28:16.3966993Z [97/117] Building CXX object tasks\task_htask\CMakeFiles\task_htask.dir\Debug\src\hlig_manager.cpp.obj 2025-08-23T07:28:17.6781352Z [98/117] Building CXX object tasks\task_htask\CMakeFiles\task_htask.dir\Debug\src\htask_manager.cpp.obj 2025-08-23T07:28:17.7732484Z [99/117] Building CXX object tasks\task_ttask\CMakeFiles\task_demo.dir\Debug\src\task_demo.cpp.obj 2025-08-23T07:34:20.0911436Z [100/117] Linking CXX shared library bin\Debug\cam_adapter_d.dll 2025-08-23T07:34:20.2093876Z [101/117] Linking CXX executable bin\Debug\darsa_demo.exe 2025-08-23T07:34:20.3432850Z [102/117] Linking CXX shared library bin\Debug\cam_ikap_net_d.dll 2025-08-23T07:34:20.8964883Z [103/117] Linking CXX executable bin\Debug\ikap_net_demo.exe 2025-08-23T07:34:21.5355749Z [104/117] Linking CXX executable bin\Debug\light_cmder.exe 2025-08-23T07:34:21.7106534Z [105/117] Linking CXX executable bin\Debug\ikap_board_demo.exe 2025-08-23T07:34:22.0055083Z [106/117] Linking CXX shared library bin\Debug\cam_hik_basler_d.dll 2025-08-23T07:34:22.7097592Z [107/117] Linking CXX shared library bin\Debug\cam_ikap_board_d.dll 2025-08-23T07:34:22.7141600Z [108/117] Linking CXX shared library bin\Debug\cam_dalsa_d.dll 2025-08-23T07:34:26.6862291Z [109/117] Linking CXX shared library bin\Debug\task_htask_d.dll 2025-08-23T07:34:26.7018613Z [110/117] Linking CXX shared library bin\Debug\lib_ligcam_d.dll 2025-08-23T07:34:26.8351713Z [111/117] Linking CXX shared library bin\Debug\task_ttask_d.dll 2025-08-23T07:36:11.9565271Z [112/117] Linking CXX executable bin\Debug\test_enum_local_cams.exe ``` _No response_ ### Gitea Version 1.24.5 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? running gitea using docker on windows running gitea runner directly on windows host ### Database None
GiteaMirror added the type/bug label 2025-11-02 11:25:18 -06:00
Author
Owner

@lunny commented on GitHub (Aug 23, 2025):

Could you also post your workflow file?

@lunny commented on GitHub (Aug 23, 2025): Could you also post your workflow file?
Author
Owner

@aiyolo commented on GitHub (Aug 24, 2025):

Could you also post your workflow file?

Thanks for your reply.

The following is my workflow(I'm sorry that the source code can't be shared in this issue).

I recently made some tests, and from the tests I can conclude that the uage of Ninja Multi-Config generator is the fundamental cause of this behaviour, while Visual Studio 17 2022 is fine. I'm afraid that this behavior relates to some scheduler mechnism of the gitea runner.

name: manual trigger
on:
  workflow_dispatch:
    inputs:
      generator:
        description: "generator"
        required: true
        default: "Visual Studio 17 2022"
        type: choice
        options:
          - Visual Studio 17 2022
          - Ninja Multi-Config

# env:
#   inputs_generator:              ${{ inputs.generator }}

jobs:
  build-and-release:
    runs-on: windows_amd64
    steps:

      - name: Checkout code
        uses: http://192.168.50.240:3000/admin/checkout@v4


      - name: Install Python requests
        run: pip install requests tqdm
        shell: powershell


      - name: Download dependencies
        run: python scripts\download_deps.py
        shell: powershell

      - name: Build
        run: |
          .\scripts\activate.ps1
          .\scripts\build_and_pack.ps1  -Generator '${{inputs.generator}}'
        shell: powershell

      - name: upload artifact
        uses: http://192.168.50.240:3000/admin/gitea-upload-artifact@v4
        with:
          path: ./build/artifacts
          overwrite: true

@aiyolo commented on GitHub (Aug 24, 2025): > Could you also post your workflow file? Thanks for your reply. The following is my workflow(I'm sorry that the source code can't be shared in this issue). I recently made some tests, and from the tests I can conclude that the uage of `Ninja Multi-Config generator` is the fundamental cause of this behaviour, while `Visual Studio 17 2022` is fine. I'm afraid that this behavior relates to some scheduler mechnism of the gitea runner. ``` name: manual trigger on: workflow_dispatch: inputs: generator: description: "generator" required: true default: "Visual Studio 17 2022" type: choice options: - Visual Studio 17 2022 - Ninja Multi-Config # env: # inputs_generator: ${{ inputs.generator }} jobs: build-and-release: runs-on: windows_amd64 steps: - name: Checkout code uses: http://192.168.50.240:3000/admin/checkout@v4 - name: Install Python requests run: pip install requests tqdm shell: powershell - name: Download dependencies run: python scripts\download_deps.py shell: powershell - name: Build run: | .\scripts\activate.ps1 .\scripts\build_and_pack.ps1 -Generator '${{inputs.generator}}' shell: powershell - name: upload artifact uses: http://192.168.50.240:3000/admin/gitea-upload-artifact@v4 with: path: ./build/artifacts overwrite: true ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14894