File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 75
75
${{ fromJSON(inputs.free-threading) && '--disable-gil' || '' }}
76
76
- name : Build CPython out-of-tree
77
77
working-directory : ${{ env.CPYTHON_BUILDDIR }}
78
- run : make -j4 &> compiler_output.txt
78
+ run : set -o pipefail; make -j4 2>&1 | tee compiler_output.txt
79
79
- name : Display build info
80
80
working-directory : ${{ env.CPYTHON_BUILDDIR }}
81
81
run : make pythoninfo
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python3
2
1
"""
3
2
Parses compiler output with -fdiagnostics-format=json and checks that warnings
4
3
exist only in files that are expected to have warnings.
@@ -114,24 +113,28 @@ def get_unexpected_improvements(
114
113
def main (argv : list [str ] | None = None ) -> int :
115
114
parser = argparse .ArgumentParser ()
116
115
parser .add_argument (
116
+ "-c" ,
117
117
"--compiler-output-file-path" ,
118
118
type = str ,
119
119
required = True ,
120
120
help = "Path to the compiler output file" ,
121
121
)
122
122
parser .add_argument (
123
+ "-i" ,
123
124
"--warning-ignore-file-path" ,
124
125
type = str ,
125
126
required = True ,
126
127
help = "Path to the warning ignore file" ,
127
128
)
128
129
parser .add_argument (
130
+ "-x" ,
129
131
"--fail-on-regression" ,
130
132
action = "store_true" ,
131
133
default = False ,
132
134
help = "Flag to fail if new warnings are found" ,
133
135
)
134
136
parser .add_argument (
137
+ "-X" ,
135
138
"--fail-on-improvement" ,
136
139
action = "store_true" ,
137
140
default = False ,
You can’t perform that action at this time.
0 commit comments