Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
name: "Windows Web CI Workflow"
description: "Windows Web CI pipeline for building and testing ONNX Runtime Web"
 
on:
  workflow_call:
    inputs:
      job_name: # workflow-scope unique key
        required: true
        type: string
      commit_override:
        type: string
        default: ""
      build_config:
        type: string
        default: "Debug"
      npm_packaging_mode:
        type: string
        default: "dev"
      package_name:
        type: string
        default: "NPM_packages"
 
jobs:
  build_onnxruntime_web:
    runs-on: [
      "self-hosted",
      "1ES.Pool=onnxruntime-github-Win2022-WEBGPU-A10",
      "JobId=build_onnxruntime_web-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
      ]
 
    env:
      webgpu_commandline_extra_flags: "--chromium-flags=--ignore-gpu-blocklist --chromium-flags=--gpu-vendor-id=0x10de"
      CHROME_BIN: 'C:\Program Files\Google\Chrome\Application\chrome.exe'
 
    timeout-minutes: 60
 
    steps:
      - name: Checkout repository
        uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
        with:
          submodules: false
 
      - name: Read commit SHA and checkout
        if: ${{ inputs.commit_override != '' }}
        shell: cmd
        run: |
          git fetch origin +${{ inputs.commit_override }}:refs/remotes/origin/${{ inputs.commit_override }}
          git checkout --force ${{ inputs.commit_override }}
 
      - name: Write commit SHA to __commit.txt
        if: ${{ inputs.commit_override == '' }}
        shell: cmd
        run: |
          echo.${{ github.sha }}>${{ github.workspace }}/__commit.txt
 
      - name: Checkout submodule onnx
        shell: cmd
        run: |
          git submodule sync -- cmake\external\onnx
          git submodule update --init -- cmake\external\onnx
 
      - name: Force EOL to LF on windows for /js/**
        shell: cmd
        run: |
          echo.>>.gitattributes
          echo /js/** text=auto eol=lf>>.gitattributes
          rd /s /q js
          git checkout -- js/**
          git checkout -- .gitattributes
 
      - name: Setup Node.js
        uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
        with:
          node-version: "24.x"
 
      - name: Download WebAssembly artifacts
        uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
        with:
          name: ${{ inputs.build_config }}_wasm
          path: ${{ github.workspace }}/artifacts_wasm
 
      - name: Binplace dist files (.wasm)
        shell: cmd
        run: |
          mkdir ${{ github.workspace }}\js\web\dist
          copy ${{ github.workspace }}\artifacts_wasm\ort-*.wasm ${{ github.workspace }}\js\web\dist\
 
      - name: Binplace dist files (.mjs)
        shell: cmd
        run: |
          copy ${{ github.workspace }}\artifacts_wasm\ort-*.mjs ${{ github.workspace }}\js\web\dist\
 
      - name: npm ci for /js/
        run: npm ci
        working-directory: ${{ github.workspace }}/js
 
      - name: npm ci for /js/common/
        run: npm ci
        working-directory: ${{ github.workspace }}/js/common
 
      - name: npm ci for /js/web/
        run: npm ci
        working-directory: ${{ github.workspace }}/js/web
 
      - uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
        id: onnx-node-tests-cache
        with:
          path: ${{ github.workspace }}/js/test/
          key: onnxnodetests-${{ hashFiles('js/scripts/prepare-onnx-node-tests.ts') }}
 
      - name: Pack NPM packages
        shell: pwsh
        run: |
          . ${{ github.workspace }}\tools\ci_build\github\js\pack-npm-packages.ps1 ${{ inputs.npm_packaging_mode }} ${{ github.workspace }} web
 
      - name: Check active Chrome processes (before test)
        if: ${{ runner.debug == '1' }}
        shell: pwsh
        run: |
          Get-WmiObject Win32_Process -Filter "name = 'chrome.exe'" | Format-List CommandLine
 
      - name: Run ort-web tests (ALL backends)
        shell: cmd
        run: |
          mkdir ${{ runner.temp }}\web\test\02
          dir ${{ runner.temp }}\web\test\02
          npm test -- -e=chrome -b=webgl,wasm,webgpu ${{ env.webgpu_commandline_extra_flags }} --user-data-dir=${{ runner.temp }}\web\test\02 --chromium-flags=--enable-logging --chromium-flags=--v=1
        working-directory: ${{ github.workspace }}\js\web
 
      - name: Run ort-web tests (Suite1, webgpu, IO-binding=gpu-tensor)
        shell: cmd
        run: |
          mkdir ${{ runner.temp }}\web\test\03
          dir ${{ runner.temp }}\web\test\03
          npm test -- suite1 -e=chrome -b=webgpu --io-binding=gpu-tensor ${{ env.webgpu_commandline_extra_flags }} --user-data-dir=${{ runner.temp }}\web\test\03 --chromium-flags=--enable-logging --chromium-flags=--v=1
        working-directory: ${{ github.workspace }}\js\web
 
      - name: Run ort-web tests (Suite1, webgpu, IO-binding=gpu-location)
        shell: cmd
        run: |
          mkdir ${{ runner.temp }}\web\test\04
          dir ${{ runner.temp }}\web\test\04
          npm test -- suite1 -e=chrome -b=webgpu --io-binding=gpu-location ${{ env.webgpu_commandline_extra_flags }} --user-data-dir=${{ runner.temp }}\web\test\04 --chromium-flags=--enable-logging --chromium-flags=--v=1
        working-directory: ${{ github.workspace }}\js\web
 
      - name: Run ort-web tests - WebGL packed mode
        shell: cmd
        run: |
          mkdir ${{ runner.temp }}\web\test\05
          dir ${{ runner.temp }}\web\test\05
          npm test -- --webgl.pack -b=webgl -e=chrome --user-data-dir=${{ runner.temp }}\web\test\05 --chromium-flags=--enable-logging --chromium-flags=--v=1
        working-directory: ${{ github.workspace }}\js\web
 
      - name: Run ort-web tests - WebAssembly proxy
        if: ${{ inputs.build_config == 'Release' }}
        shell: cmd
        run: |
          mkdir ${{ runner.temp }}\web\test\06
          dir ${{ runner.temp }}\web\test\06
          npm test -- --wasm.proxy -b=wasm -e=chrome --user-data-dir=${{ runner.temp }}\web\test\06 --chromium-flags=--enable-logging --chromium-flags=--v=1
        working-directory: ${{ github.workspace }}\js\web
 
      # WebGPU EP tests
      - name: Run ort-web tests - WebGPU EP
        continue-on-error: true
        shell: cmd
        run: |
          mkdir ${{ runner.temp }}\web\test\07
          dir ${{ runner.temp }}\web\test\07
          npm test --webgpu-ep -- suite1 ${{ inputs.build_config == 'Debug' && '--log-verbose' || '' }} -b=webgpu -e=chrome ${{ env.webgpu_commandline_extra_flags }} --user-data-dir=${{ runner.temp }}\web\test\07 --chromium-flags=--enable-logging --chromium-flags=--v=1
        working-directory: ${{ github.workspace }}\js\web
 
      - name: Validate shader keys - WebGPU EP
        if: ${{ inputs.build_config == 'Debug' }}
        uses: ./.github/actions/webgpu-validate-shader-key
        with:
          log_file_path: ${{ runner.temp }}\web\test\07\chrome_debug.log
          is_chromium_log: true
 
      # this step is added to help investigate the shader validation failure which is hard to reproduce
      - name: Upload WebGPU shader validation log on failure
        if: ${{ failure() && inputs.build_config == 'Debug' }}
        uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
        with:
          name: webgpu-shader-validation-logs
          path: ${{ runner.temp }}\web\test\07\chrome_debug.log
 
      - name: E2E package consuming test
        if: ${{ inputs.build_config == 'Release' }}
        run: npm run test:e2e -- --browser=Chrome_default
        working-directory: ${{ github.workspace }}\js\web
 
      - name: Create artifacts directory
        if: ${{ inputs.build_config == 'Release' }}
        shell: cmd
        run: mkdir ${{ github.workspace }}\artifacts_npm
 
      - name: Copy onnxruntime-common artifacts
        if: ${{ inputs.build_config == 'Release' }}
        shell: cmd
        run: |
          if exist ${{ github.workspace }}\js\common\onnxruntime-common-*.tgz (
            copy ${{ github.workspace }}\js\common\onnxruntime-common-*.tgz ${{ github.workspace }}\artifacts_npm\
          )
 
      - name: Copy onnxruntime-web artifacts
        if: ${{ inputs.build_config == 'Release' }}
        shell: cmd
        run: copy ${{ github.workspace }}\js\web\onnxruntime-web-*.tgz ${{ github.workspace }}\artifacts_npm\
 
      - name: Upload NPM packages
        if: ${{ inputs.build_config == 'Release' }}
        uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
        with:
          name: ${{ inputs.package_name }}
          path: ${{ github.workspace }}\artifacts_npm
 
      - name: Log Chrome processes (after test)
        if: ${{ always() && runner.debug == '1' }}
        shell: cmd
        run: |
          for %%i in (01 02 03 04 05 06 07) do (
            if exist ${{ runner.temp }}\web\test\%%i (
              echo ------------------- BEGIN %%i -------------------
              type ${{ runner.temp }}\web\test\%%i\chrome_debug.log
              echo ------------------- END %%i -------------------
            )
          )