Skip to content

Commit 29e5565

Browse files
Improve normalization for upcoming changes []
1 parent 4803978 commit 29e5565

12 files changed

Lines changed: 26 additions & 14 deletions

‎.github/workflows/build-and-test-ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ jobs:
308308
runs-on: ubuntu-latest
309309
timeout-minutes: 120
310310
container:
311-
image: ghcr.io/edgcpp/ci-runner@sha256:da140ca90c420977f187279d7939fe0c7cb3c4b656e5ab2dc0f6b9ac2a43a255
311+
image: ghcr.io/edgcpp/ci-runner@sha256:565d7b6581912008ca91c5dbc940280c6e28a02c8cb6487d88ee5f0d7e8c51d7
312312
defaults:
313313
run:
314314
shell: edg-container-exec "bash -eo pipefail {0}"

‎.github/workflows/ci-toolchain.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
runs-on: ubuntu-latest
6767
timeout-minutes: 120
6868
container:
69-
image: &ci-runner-image ghcr.io/edgcpp/ci-runner@sha256:da140ca90c420977f187279d7939fe0c7cb3c4b656e5ab2dc0f6b9ac2a43a255
69+
image: &ci-runner-image ghcr.io/edgcpp/ci-runner@sha256:565d7b6581912008ca91c5dbc940280c6e28a02c8cb6487d88ee5f0d7e8c51d7
7070
defaults: &container-defaults
7171
run:
7272
shell: edg-container-exec "bash -eo pipefail {0}"

‎.github/workflows/promote-test-cache.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
# The test legs' image, so that actions/cache picks the same compression
7373
# (part of an entry's version) and the test legs can restore the entry.
7474
container:
75-
image: ghcr.io/edgcpp/ci-runner@sha256:da140ca90c420977f187279d7939fe0c7cb3c4b656e5ab2dc0f6b9ac2a43a255
75+
image: ghcr.io/edgcpp/ci-runner@sha256:565d7b6581912008ca91c5dbc940280c6e28a02c8cb6487d88ee5f0d7e8c51d7
7676
strategy:
7777
fail-fast: false
7878
matrix:

‎.github/workflows/strict-build-check.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
runs-on: ubuntu-latest
159159
timeout-minutes: 120
160160
container:
161-
image: ghcr.io/edgcpp/ci-runner@sha256:da140ca90c420977f187279d7939fe0c7cb3c4b656e5ab2dc0f6b9ac2a43a255
161+
image: ghcr.io/edgcpp/ci-runner@sha256:565d7b6581912008ca91c5dbc940280c6e28a02c8cb6487d88ee5f0d7e8c51d7
162162
defaults:
163163
run:
164164
shell: edg-container-exec "bash -eo pipefail {0}"
@@ -185,7 +185,7 @@ jobs:
185185
runs-on: ubuntu-latest
186186
timeout-minutes: 120
187187
container:
188-
image: ghcr.io/edgcpp/ci-runner@sha256:da140ca90c420977f187279d7939fe0c7cb3c4b656e5ab2dc0f6b9ac2a43a255
188+
image: ghcr.io/edgcpp/ci-runner@sha256:565d7b6581912008ca91c5dbc940280c6e28a02c8cb6487d88ee5f0d7e8c51d7
189189
defaults:
190190
run:
191191
shell: edg-container-exec "bash -eo pipefail {0}"
@@ -212,7 +212,7 @@ jobs:
212212
runs-on: ubuntu-latest
213213
timeout-minutes: 120
214214
container:
215-
image: ghcr.io/edgcpp/ci-runner@sha256:da140ca90c420977f187279d7939fe0c7cb3c4b656e5ab2dc0f6b9ac2a43a255
215+
image: ghcr.io/edgcpp/ci-runner@sha256:565d7b6581912008ca91c5dbc940280c6e28a02c8cb6487d88ee5f0d7e8c51d7
216216
defaults:
217217
run:
218218
shell: edg-container-exec "bash -eo pipefail {0}"
@@ -239,7 +239,7 @@ jobs:
239239
runs-on: ubuntu-latest
240240
timeout-minutes: 120
241241
container:
242-
image: ghcr.io/edgcpp/ci-runner@sha256:da140ca90c420977f187279d7939fe0c7cb3c4b656e5ab2dc0f6b9ac2a43a255
242+
image: ghcr.io/edgcpp/ci-runner@sha256:565d7b6581912008ca91c5dbc940280c6e28a02c8cb6487d88ee5f0d7e8c51d7
243243
defaults:
244244
run:
245245
shell: edg-container-exec "bash -eo pipefail {0}"

‎dev_tools/pylibs/edgtest/filter/__init__.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,18 @@ def __init__(self, *, normalize_il: bool, stack_addr_cleanup: bool = False,
190190
'time_of_compilation: IL BUILD TIME'
191191
),
192192
)
193+
# The predefined __DATE__ and __TIME__ macros appear as macro text in
194+
# IL displays of configurations that keep predefined macros.
195+
self.replacements.extend([
196+
(
197+
r'#define __DATE__ \\"[A-Z][a-z]{2} [ \d]\d \d{4}\\"',
198+
r'#define __DATE__ \"Mmm DD YYYY\"'
199+
),
200+
(
201+
r'#define __TIME__ \\"\d\d:\d\d:\d\d\\"',
202+
r'#define __TIME__ \"HH:MM:SS\"'
203+
)
204+
])
193205

194206
replacement_groups = [f"({r})" for r, _ in self.replacements]
195207
self.normalization_regex = re.compile(f"{'|'.join(replacement_groups)}")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
//type:fp
22
//options_all:-d-dump_builtins --set_flag preload_builtin_functions
33
//options:--c++ --clang_version 180100:--c++ --clang_version 180100 --target linux_aarch64:--c++ --clang_version 180100 --target linux_armv7:--c++ --clang_version 80000:--c++ --clang_version 80000 --target linux_aarch64:--c++ --clang_version 80000 --target linux_armv7:--c++ --gn 40900:--c++ --gn 40900 --target linux_aarch64:--c++ --gn 40900 --target linux_armv7:--c++ --gn 130200:--c++ --gn 130200 --target linux_aarch64:--c++ --gn 130200 --target linux_armv7
4-
//filter:sort
4+
//filter:edg-normalize-test-output | sort
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
//type:fp
22
//options_all:-d-dump_builtins --set_flag preload_builtin_functions --c++
33
//options:--clang_version 190100 --target linux_x86_64:--clang_version 190100 --target linux_i686:--clang_version 190100 --target linux_aarch64:--clang_version 190100 --target linux_armv7
4-
//filter:sort
4+
//filter:edg-normalize-test-output | sort
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
//type:fp
22
//options:--target linux_i686:--target linux_x86_64:--target linux_armv7:--target linux_aarch64
33
//options_all:--c++20 --clang_version 200100 -d-dump_builtins --set_flag preload_builtin_functions
4-
//filter:sort
4+
//filter:edg-normalize-test-output | sort
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
//type:fp
22
//options:--target linux_i686:--target linux_x86_64:--target linux_armv7:--target linux_aarch64
33
//options_all:--c11 --clang_version 200100 -d-dump_builtins --set_flag preload_builtin_functions
4-
//filter:sort
4+
//filter:edg-normalize-test-output | sort
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
//type:fp
22
//options:--target linux_i686:--target linux_x86_64:--target linux_armv7:--target linux_aarch64
33
//options_all:--c++20 --clang_version 210100 -d-dump_builtins --set_flag preload_builtin_functions
4-
//filter:sort
4+
//filter:edg-normalize-test-output | sort

0 commit comments

Comments
 (0)