Skip to content

Commit 7031498

Browse files
authored
Update microsoft/setup-msbuild version, fix empty retagger branch, fix rebase
2 parents d591ea3 + 6104bd6 commit 7031498

File tree

8 files changed

+46
-44
lines changed

8 files changed

+46
-44
lines changed

.github/workflows/ci-matrix-gen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
180180
- name: Install MSBuild
181181
if: ${{ runner.os == 'Windows' }}
182-
uses: microsoft/setup-msbuild@v2
182+
uses: microsoft/setup-msbuild@v1.0.2
183183

184184
- name: Process matrix downloads
185185
if: ${{ matrix.downloads_steps }}

.github/workflows/ci-unittest-retagger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ jobs:
7373
- name: Push updates to a new PR
7474
working-directory: main
7575
run: |
76-
git push --set-upstream origin weekly_retagger_${{ github.run_id }}
76+
[ "$(git diff origin/master...HEAD | wc -l)" -eq 0 ] && echo 'Nothing to push' || git push --set-upstream origin weekly_retagger_${{ github.run_id }}
7777
gh label create "weekly-retagger" --color "BDDFDF" -d "[DO NOT ADD] Automatically set to weekly retagger PR" || echo "Label 'weekly-retagger' already exists"
7878
gh pr create -B master --title "[WORKFLOW] Weekly Retagger: Update tags" --body "Applied weekly retags on $os_list" -l "weekly-retagger" || echo "Nothing to push"

ci/graal/ci/ci_common/bench-common.libsonnet

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# max number of threads to use for benchmarking in general
3535
# the goal being to limit parallelism on very large servers which may not be respresentative of real-world scenarios
3636
bench_max_threads:: {
37-
restrict_threads:: if self.arch == 'amd64' then 36 else 32,
37+
restrict_threads:: 36
3838
},
3939

4040
bench_no_thread_cap:: {
@@ -99,27 +99,7 @@
9999
default_numa_node:: 0,
100100
num_threads:: 160,
101101
hyperthreading:: false
102-
},
103-
hr350a:: common.linux_aarch64 + self._bench_machine + {
104-
machine_name:: "hr350a",
105-
capabilities+: ["tmpfs25g"],
106-
numa_nodes:: [0],
107-
default_numa_node:: 0,
108-
num_threads:: 32,
109-
hyperthreading:: false
110-
},
111-
osprey:: common.linux_aarch64 + self._bench_machine + {
112-
machine_name:: "osprey",
113-
capabilities+: ["tmpfs25g"],
114-
numa_nodes:: [0],
115-
default_numa_node:: 0,
116-
num_threads:: 32,
117-
hyperthreading:: false
118-
},
119-
local contains(a_str, substr) = std.length(std.findSubstr(substr, a_str)) > 0,
120-
# Useful to distribute the benchmark load between two machine types, but always stay consistent for the same benchmark suite
121-
# This guarantees comparability of results, whatever the platform/context, for each suite
122-
hr350a_or_osprey(suite=null):: if suite != null && std.count([contains(s, suite) for s in ["barista", "renaissance"]], true) > 0 then self.osprey else self.hr350a,
102+
}
123103
},
124104

125105
hwloc_cmd(cmd, num_threads, node, hyperthreading, max_threads_per_node)::

ci/graal/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Jsonnet files should not include this file directly but use ci/common.jsonnet instead."
55
],
66

7-
"mx_version": "7.68.4",
7+
"mx_version": "7.68.5",
88

99
"COMMENT.jdks": "When adding or removing JDKs keep in sync with JDKs in ci/common.jsonnet",
1010
"jdks": {

graalpython/com.oracle.graal.python.benchmarks/python/micro/phase_shift_warmup_baseline.py

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0
@@ -37,15 +37,31 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
__graalpython__.import_current_as_named_module_with_delegate(
41-
module_name="unicodedata",
42-
delegate_name="_cpython_unicodedata",
43-
delegate_attributes=['ucd_3_2_0'],
44-
wrap_methods=False,
45-
owner_globals=globals())
46-
__graalpython__.import_current_as_named_module_with_delegate(
47-
module_name="unicodedata",
48-
delegate_name="_cpython_unicodedata",
49-
delegate_attributes=['ucd_3_2_0'],
50-
wrap_methods=False,
51-
owner_globals=globals())
40+
41+
import subprocess, sys, re
42+
43+
44+
# This benchmark computes the best possible result of the phase_shift_warmup
45+
# benchmark. It executes the script phase_shift_script_baseline in a subprocess.
46+
# The phase_shift_script_baseline script runs only the second phase of the
47+
# full script phase_shift_script, and so the second phase starts with a clean
48+
# compilation queue. The second phase runs (phase2it + 200) iterations of a
49+
# certain workflow consisting of a large number of generated functions and measures
50+
# the sum of the time of the last 200 iterations. The better the time the better
51+
# is the code of the tested workflow warmed up.
52+
def __benchmark__(phase2it=0):
53+
orig_vm_argv = sys.orig_argv
54+
for i, arg in enumerate(orig_vm_argv):
55+
if arg.endswith('harness.py'):
56+
orig_vm_argv = orig_vm_argv[:i]
57+
break
58+
tt: int = 0
59+
result = subprocess.run([*orig_vm_argv,
60+
"--experimental-options",
61+
"--engine.CompilerThreads=1",
62+
re.sub(r'harness\.py', "micro/phase_shift_script_baseline.py", sys.argv[0]), str(phase2it)], capture_output=True, text=True, check=False)
63+
m = re.search(r"LAST_200_IT_TIME = (\d+) ms", result.stdout)
64+
if m:
65+
tt = int(m.group(1))
66+
print(result.stdout)
67+
return tt * 1000000

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code/CodeBuiltins.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ Object positions(PCode self) {
500500
// 1-based inclusive to 0-based exclusive (-1 + 1 = 0)
501501
section.getEndColumn()
502502
}));
503+
} else {
504+
lines.add(PFactory.createTuple(language, new Object[]{PNone.NONE, PNone.NONE, PNone.NONE, PNone.NONE}));
503505
}
504506
}
505507
} else {
@@ -679,4 +681,4 @@ private static PTuple createStringsTuple(Node inliningTarget, TruffleString[] va
679681
}
680682
return PFactory.createTuple(language, PythonUtils.arrayCopyOf(values, values.length));
681683
}
682-
}
684+
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/compiler/bytecode_dsl/RootNodeCompiler.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ void beginTraceLineChecked(Builder b) {
648648
/**
649649
* Emits a "line" tracing if either no tracing was emitted before, or if line number was
650650
* updated.
651-
*
651+
*
652652
* @param b Builder for line tracing.
653653
*/
654654
void endTraceLineChecked(SSTNode node, Builder b) {
@@ -1881,6 +1881,7 @@ public void acceptBoolOpArgs(ExprTy.BoolOp node) {
18811881
@Override
18821882
public Void visit(ExprTy.BoolOp node) {
18831883
boolean newStatement = beginSourceSection(node, b);
1884+
b.beginBlock();
18841885
emitTraceLineChecked(node, b);
18851886

18861887
if (node.op == BoolOpTy.And) {
@@ -2054,6 +2055,7 @@ private void emitGetMethod(ExprTy func, BytecodeLocal receiver) {
20542055
@Override
20552056
public Void visit(ExprTy.Call node) {
20562057
boolean newStatement = beginSourceSection(node, b);
2058+
b.beginBlock();
20572059
emitTraceLineChecked(node, b);
20582060
checkCaller(ctx.errorCallback, node.func);
20592061
emitCall(node.func, node.args, node.keywords);
@@ -2846,7 +2848,7 @@ public void emitYieldFrom(Runnable generatorOrCoroutineProducer, BytecodeLocal r
28462848
* returnValue = e.value
28472849
* goto end
28482850
*
2849-
* end: # Step 4: resultValue local is assigned
2851+
* end: # Step 4: returnValue local is assigned
28502852
* @formatter:on
28512853
*/
28522854
BytecodeLocal generator = b.createLocal();
@@ -4386,6 +4388,7 @@ private void visitMatchCaseRecursively(MatchCaseTy[] cases, int index, PatternCo
43864388
*/
43874389
MatchCaseTy c = cases[index];
43884390
boolean newStatement = beginSourceSection(c, b);
4391+
b.beginBlock();
43894392
emitTraceLineChecked(cases[index], b);
43904393

43914394
if (index != cases.length - 1) {
@@ -4490,6 +4493,7 @@ private void emitPatternCondition(MatchCaseTy currentCase, PatternContext pc) {
44904493
*/
44914494
private void visitPattern(PatternTy pattern, PatternContext pc) {
44924495
boolean newStatement = beginSourceSection(pattern, b);
4496+
b.beginBlock();
44934497
emitTraceLineChecked(pattern, b);
44944498
if (pattern instanceof PatternTy.MatchAs matchAs) {
44954499
doVisitPattern(matchAs, pc);
@@ -6504,4 +6508,4 @@ public Void visit(StmtTy.Pass node) {
65046508
return null;
65056509
}
65066510
}
6507-
}
6511+
}

mx.graalpython/suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
},
5454
{
5555
"name": "tools",
56-
"version": "e61a4623b7fc839ee10df84050c120d59056b871",
56+
"version": "5975f9f8d7b4621badfdb1152070da848729a211",
5757
"subdir": True,
5858
"urls": [
5959
{"url": "https://github.com/oracle/graal", "kind": "git"},
6060
],
6161
},
6262
{
6363
"name": "regex",
64-
"version": "e61a4623b7fc839ee10df84050c120d59056b871",
64+
"version": "5975f9f8d7b4621badfdb1152070da848729a211",
6565
"subdir": True,
6666
"urls": [
6767
{"url": "https://github.com/oracle/graal", "kind": "git"},

0 commit comments

Comments
 (0)