Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include JIT results in the same results.json as the non-JIT results #4

Merged
merged 1 commit into from
Nov 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions run_all_and_update_results.py
Original file line number Diff line number Diff line change
@@ -90,9 +90,11 @@ def main() -> None:
help="output the per-file result to this file",
)
parser.add_argument(
"--jit",
action="store_true",
help="Enable JIT compilation mode",
"--per-file-jit-output",
default=None,
type=str,
metavar="PATH",
help="output the per-file JIT result to this file",
)
args = parser.parse_args()

@@ -157,7 +159,6 @@ def main() -> None:
f"--libjs-test262-runner {libjs_test262_runner} "
f"--test262 {test262} "
"--silent --summary --json "
+ ("--jit " if args.jit else "")
+ (
""
if args.per_file_output is None
@@ -167,6 +168,23 @@ def main() -> None:
)
libjs_test262_results = libjs_test262_output["results"]["test"]["results"]

print("Running test262 with JIT compiler...")
libjs_test262_jit_output = json.loads(
# This is not the way, but I can't be bothered to import this stuff. :^)
run_command(
f"python3 {libjs_test262_main_py} "
f"--libjs-test262-runner {libjs_test262_runner} "
f"--test262 {test262} "
"--silent --summary --json --jit "
+ (
""
if args.per_file_jit_output is None
else f"--per-file {args.per_file_jit_output} "
)
)
)
libjs_test262_jit_results = libjs_test262_jit_output["results"]["test"]["results"]

result = {
"commit_timestamp": commit_timestamp,
"run_timestamp": run_timestamp,
@@ -192,6 +210,21 @@ def main() -> None:
"todo_error": libjs_test262_results["TODO_ERROR"],
},
},
"test262-jit": {
"duration": libjs_test262_jit_output["duration"],
"results": {
"total": libjs_test262_jit_output["results"]["test"]["count"],
"passed": libjs_test262_jit_results["PASSED"],
"failed": libjs_test262_jit_results["FAILED"],
"skipped": libjs_test262_jit_results["SKIPPED"],
"metadata_error": libjs_test262_jit_results["METADATA_ERROR"],
"harness_error": libjs_test262_jit_results["HARNESS_ERROR"],
"timeout_error": libjs_test262_jit_results["TIMEOUT_ERROR"],
"process_error": libjs_test262_jit_results["PROCESS_ERROR"],
"runner_exception": libjs_test262_jit_results["RUNNER_EXCEPTION"],
"todo_error": libjs_test262_jit_results["TODO_ERROR"],
},
},
"test262-parser-tests": {
"duration": test_js_output["duration"],
"results": {