Skip to content

Commit 3e5771c

Browse files
committed
DONT MERGE, perf log only
1 parent e69c730 commit 3e5771c

File tree

3 files changed

+66
-92
lines changed

3 files changed

+66
-92
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,17 @@ jobs:
4848
strategy:
4949
matrix:
5050
include:
51-
- name: mingw-check
52-
os: ubuntu-20.04-16core-64gb
53-
env: {}
54-
- name: mingw-check-tidy
55-
os: ubuntu-20.04-16core-64gb
56-
env: {}
57-
- name: x86_64-gnu-llvm-14
58-
os: ubuntu-20.04-16core-64gb
59-
env: {}
60-
- name: x86_64-gnu-tools
61-
os: ubuntu-20.04-16core-64gb
62-
env: {}
51+
- name: x86_64-msvc
52+
env:
53+
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-profiler"
54+
SCRIPT: make ci-msvc
55+
os: windows-2019-8core-32gb
6356
timeout-minutes: 600
6457
runs-on: "${{ matrix.os }}"
6558
steps:
59+
- name: start etw session
60+
shell: pwsh
61+
run: "xperf -providers\nfltmc instances\nxperf -on DiagEasy+PROFILE -stackwalk Profile+CSwitch -buffersize 1024 -minbuffers 900 -maxbuffers 900\n"
6662
- name: disable git crlf conversion
6763
run: git config --global core.autocrlf false
6864
- name: checkout the source code
@@ -140,23 +136,15 @@ jobs:
140136
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
141137
TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
142138
if: success() && !env.SKIP_JOB
143-
- name: create github artifacts
144-
run: src/ci/scripts/create-doc-artifacts.sh
145-
if: success() && !env.SKIP_JOB
146-
- name: upload artifacts to github
139+
- name: collect etw session
140+
shell: pwsh
141+
run: "xperf -d C:\\etw_perf_log.etl\n"
142+
- name: upload etw log
147143
uses: actions/upload-artifact@v3
148144
with:
149-
name: "${{ env.DOC_ARTIFACT_NAME }}"
150-
path: obj/artifacts/doc
151-
if-no-files-found: ignore
152-
retention-days: 5
153-
if: success() && !env.SKIP_JOB
154-
- name: upload artifacts to S3
155-
run: src/ci/scripts/upload-artifacts.sh
156-
env:
157-
AWS_ACCESS_KEY_ID: "${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
158-
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
159-
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
145+
name: etw
146+
path: "C:/etw_perf_log.etl\n"
147+
retention-days: 1
160148
auto:
161149
name: "auto - ${{ matrix.name }}"
162150
env:
@@ -468,6 +456,9 @@ jobs:
468456
timeout-minutes: 600
469457
runs-on: "${{ matrix.os }}"
470458
steps:
459+
- name: start etw session
460+
shell: pwsh
461+
run: "xperf -providers\nfltmc instances\nxperf -on DiagEasy+PROFILE -stackwalk Profile+CSwitch -buffersize 1024 -minbuffers 900 -maxbuffers 900\n"
471462
- name: disable git crlf conversion
472463
run: git config --global core.autocrlf false
473464
- name: checkout the source code
@@ -545,23 +536,15 @@ jobs:
545536
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
546537
TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
547538
if: success() && !env.SKIP_JOB
548-
- name: create github artifacts
549-
run: src/ci/scripts/create-doc-artifacts.sh
550-
if: success() && !env.SKIP_JOB
551-
- name: upload artifacts to github
539+
- name: collect etw session
540+
shell: pwsh
541+
run: "xperf -d C:\\etw_perf_log.etl\n"
542+
- name: upload etw log
552543
uses: actions/upload-artifact@v3
553544
with:
554-
name: "${{ env.DOC_ARTIFACT_NAME }}"
555-
path: obj/artifacts/doc
556-
if-no-files-found: ignore
557-
retention-days: 5
558-
if: success() && !env.SKIP_JOB
559-
- name: upload artifacts to S3
560-
run: src/ci/scripts/upload-artifacts.sh
561-
env:
562-
AWS_ACCESS_KEY_ID: "${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
563-
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
564-
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
545+
name: etw
546+
path: "C:/etw_perf_log.etl\n"
547+
retention-days: 1
565548
try:
566549
name: "try - ${{ matrix.name }}"
567550
env:
@@ -588,6 +571,9 @@ jobs:
588571
timeout-minutes: 600
589572
runs-on: "${{ matrix.os }}"
590573
steps:
574+
- name: start etw session
575+
shell: pwsh
576+
run: "xperf -providers\nfltmc instances\nxperf -on DiagEasy+PROFILE -stackwalk Profile+CSwitch -buffersize 1024 -minbuffers 900 -maxbuffers 900\n"
591577
- name: disable git crlf conversion
592578
run: git config --global core.autocrlf false
593579
- name: checkout the source code
@@ -665,23 +651,15 @@ jobs:
665651
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
666652
TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
667653
if: success() && !env.SKIP_JOB
668-
- name: create github artifacts
669-
run: src/ci/scripts/create-doc-artifacts.sh
670-
if: success() && !env.SKIP_JOB
671-
- name: upload artifacts to github
654+
- name: collect etw session
655+
shell: pwsh
656+
run: "xperf -d C:\\etw_perf_log.etl\n"
657+
- name: upload etw log
672658
uses: actions/upload-artifact@v3
673659
with:
674-
name: "${{ env.DOC_ARTIFACT_NAME }}"
675-
path: obj/artifacts/doc
676-
if-no-files-found: ignore
677-
retention-days: 5
678-
if: success() && !env.SKIP_JOB
679-
- name: upload artifacts to S3
680-
run: src/ci/scripts/upload-artifacts.sh
681-
env:
682-
AWS_ACCESS_KEY_ID: "${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
683-
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
684-
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
660+
name: etw
661+
path: "C:/etw_perf_log.etl\n"
662+
retention-days: 1
685663
master:
686664
name: master
687665
runs-on: ubuntu-latest

src/bootstrap/mk/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ prepare:
6161

6262
# this intentionally doesn't use `$(BOOTSTRAP)` so we can test the shebang on Windows
6363
ci-msvc-py:
64-
$(Q)$(CFG_SRC_DIR)/x.py test --stage 2 tidy
64+
$(Q)$(CFG_SRC_DIR)/x.py --stage 0 b library
6565
ci-msvc-ps1:
6666
$(Q)$(CFG_SRC_DIR)/x.ps1 test --stage 2 --exclude tidy
67-
ci-msvc: ci-msvc-py ci-msvc-ps1
67+
ci-msvc: ci-msvc-py# ci-msvc-ps1
6868

6969
## MingW native builders
7070

src/ci/github-actions/ci.yml

Lines changed: 29 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,21 @@ x--expand-yaml-anchors--remove:
112112
runs-on: "${{ matrix.os }}"
113113
env: *shared-ci-variables
114114
steps:
115+
# - name: dl& install wpt
116+
# shell: pwsh
117+
# working-directory: C:/
118+
# run: |
119+
# Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/?linkid=2026036" -OutFile "C:\adksetup.exe"
120+
# C:\adksetup.exe /q /norestart /features OptionId.WindowsPerformanceToolkit
121+
122+
- name: start etw session
123+
shell: pwsh
124+
run: |
125+
xperf -providers
126+
fltmc instances
127+
xperf -on DiagEasy+PROFILE -stackwalk Profile+CSwitch -buffersize 1024 -minbuffers 900 -maxbuffers 900
128+
129+
115130
- name: disable git crlf conversion
116131
run: git config --global core.autocrlf false
117132

@@ -224,32 +239,19 @@ x--expand-yaml-anchors--remove:
224239
TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
225240
<<: *step
226241

227-
- name: create github artifacts
228-
run: src/ci/scripts/create-doc-artifacts.sh
229-
<<: *step
242+
- name: collect etw session
243+
shell: pwsh
244+
run: |
245+
xperf -d C:\etw_perf_log.etl
230246
231-
- name: upload artifacts to github
247+
- name: upload etw log
232248
uses: actions/upload-artifact@v3
233249
with:
234250
# name is set in previous step
235-
name: ${{ env.DOC_ARTIFACT_NAME }}
236-
path: obj/artifacts/doc
237-
if-no-files-found: ignore
238-
retention-days: 5
239-
<<: *step
240-
241-
- name: upload artifacts to S3
242-
run: src/ci/scripts/upload-artifacts.sh
243-
env:
244-
AWS_ACCESS_KEY_ID: ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}
245-
AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}
246-
# Adding a condition on DEPLOY=1 or DEPLOY_ALT=1 is not needed as all deploy
247-
# builders *should* have the AWS credentials available. Still, explicitly
248-
# adding the condition is helpful as this way CI will not silently skip
249-
# deploying artifacts from a dist builder if the variables are misconfigured,
250-
# erroring about invalid credentials instead.
251-
if: success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')
252-
<<: *step
251+
name: etw
252+
path: |
253+
C:/etw_perf_log.etl
254+
retention-days: 1
253255

254256
# These snippets are used by the try-success, try-failure, auto-success and auto-failure jobs.
255257
# Check out their documentation for more information on why they're needed.
@@ -315,17 +317,11 @@ jobs:
315317
strategy:
316318
matrix:
317319
include:
318-
- name: mingw-check
319-
<<: *job-linux-16c
320-
321-
- name: mingw-check-tidy
322-
<<: *job-linux-16c
323-
324-
- name: x86_64-gnu-llvm-14
325-
<<: *job-linux-16c
326-
327-
- name: x86_64-gnu-tools
328-
<<: *job-linux-16c
320+
- name: x86_64-msvc
321+
env:
322+
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler
323+
SCRIPT: make ci-msvc
324+
<<: *job-windows-8c
329325

330326
auto:
331327
<<: *base-ci-job

0 commit comments

Comments
 (0)