@@ -110,6 +110,14 @@ jobs:
110110
111111 docker exec -u ci-user -t "${container_name}" sh -c ".jenkins/build.sh"
112112
113+ - name : Upload build log
114+ if : always()
115+ uses : actions/upload-artifact@v4
116+ with :
117+ name : build-log-${{ matrix.shard }}
118+ path : _build/build.log
119+ if-no-files-found : ignore
120+
113121 - name : Teardown Linux
114122 uses : pytorch/test-infra/.github/actions/teardown-linux@main
115123 if : always()
@@ -148,6 +156,18 @@ jobs:
148156 with :
149157 docker-image : ${{ steps.calculate-docker-image.outputs.docker-image }}
150158
159+ - name : Download worker build logs
160+ uses : actions/download-artifact@v4
161+ with :
162+ pattern : build-log-*
163+ path : _build/worker-logs
164+
165+ - name : Merge build logs
166+ shell : bash
167+ run : |
168+ mkdir -p _build
169+ cat _build/worker-logs/build-log-*/build.log > _build/build.log 2>/dev/null || true
170+
151171 - name : Build
152172 shell : bash
153173 env :
@@ -186,12 +206,23 @@ jobs:
186206
187207 docker exec -u ci-user -t "${container_name}" sh -c ".jenkins/build.sh"
188208
209+ - name : Generate API deprecation report
210+ if : always()
211+ shell : bash
212+ run : |
213+ python -m tools.deprecation_checker.api_report \
214+ --build-log _build/build.log \
215+ -o _build/api_report.md \
216+ --create-issue || true
217+ env :
218+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
219+
189220 - name : Upload API deprecation report
190221 if : always()
191222 uses : actions/upload-artifact@v4
192223 with :
193224 name : api-deprecation-report
194- path : tutorials/ _build/api_report.md
225+ path : _build/api_report.md
195226 if-no-files-found : ignore
196227
197228 - name : Upload docs preview
0 commit comments