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

Using the method of running bin/reporttests.jl, it appears that xml is not generated #96

Open
eason2020-yu opened this issue Mar 3, 2024 · 1 comment

Comments

@eason2020-yu
Copy link

eason2020-yu commented Mar 3, 2024

When I call reporttests.jl to run to my runtest.jl script using a python call to julia run using a for loop, there are frequent occurrences of the xml file not being generated.
There is no error message, just that the xml file is not generated after the run is completed, so please tell me what could be the cause of this problem.
In real time, even if I don't use parallel run, just for loop call reporttests.jl to run, in centos this kind of poor performance virtual machine also appeared this phenomenon, so I suspect that the problem may be in Testreports.jl package.

  • I hope this will answer my doubts, and I'm grateful to the developers for developing this package.
  • add: my running system is virtual machine ubuntu18.04, 16 cores 32G.
  • Here is the code involved:
def run_julia_tests(package_name):
    run_test_cmd = ["julia", f"scripts/parse_xml/reporttests.jl", f"tests/{package_name}/test/runtests.jl" ]
    subprocess.run(run_test_cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
def run_julia_tests_parallel(pkg_list):
    with Pool(cpu_count()) as pool:
        pool.map(run_julia_tests, [pkg_path.split("\\")[-1] for pkg_path in pkg_list])
@eason2020-yu
Copy link
Author

As a side note, I have observed that the same configuration has a significantly higher chance of error under ubuntu than centos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant