Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd492547

Browse files
committed
debug
1 parentc25eea2 commitd492547

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

‎ci-script/xd.py‎

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
importjson
22
importsys
33
importos
4+
frompathlibimportPath
45

56
print("Checking required checks")
6-
print(os.environ['NEEDS'])
7+
print(os.environ["NEEDS"])
78

8-
# Get job names and results from GitHub context
9-
jobs=json.loads(os.environ['NEEDS'])
9+
jobs=json.loads(os.environ["NEEDS"])
1010
job_names=sorted(jobs.keys())
1111
forjob_nameinjob_names:
12-
result=jobs[job_name]['result']
12+
result=jobs[job_name]["result"]
1313
print(f"-{job_name}:{result}")
1414
print()
1515

1616
failed=False
17+
print(list(Path(".").glob("*")))
1718
forjob_nameinjob_names:
18-
result=jobs[job_name]['result']
19-
19+
result=jobs[job_name]["result"]
20+
2021
# Skip test-go-pg failures on windows
21-
ifjob_name=="test-go-pg":
22-
runner_os=jobs[job_name]['outputs'].get('runner_os')
23-
if"windows"inrunner_osandresult=="failure":
22+
ifjob_name=="test-go-pg"andresult=="failure":
23+
result_artifacts=list(Path("pg_result").glob("pg_result_*"))
24+
results= {f.name:int(f.read_text())forfinresult_artifacts}
25+
delresults["pg_result_windows-2022"]
26+
ifsum(results.values())==0:
2427
continue
25-
2628
ifresultin ["failure","cancelled"]:
2729
failed=True
2830
break

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp