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

Unclear error reported in the UI when the results pkl is not found on the Covalent side #94

Open
Andrew-S-Rosen opened this issue Mar 7, 2024 · 0 comments

Comments

@Andrew-S-Rosen
Copy link
Contributor

Andrew-S-Rosen commented Mar 7, 2024

Environment

  • Covalent version: 0.234.0rc0
  • Covalent-Slurm plugin version: 98e835f
  • Python version: 3.10.13
  • Operating system: Linux

What is happening?

image

When a Covalent-based error happens where the results pkl can't be found, the UI is very unclear about what the problem is. Ideally, I would like to see more details so I can know where to debug things.

How can we reproduce the issue?

import covalent as ct

executor = ct.executor.SlurmExecutor(
    username="rosen",
    address="perlmutter-p1.nersc.gov",
    ssh_key_file="/home/rosen/.ssh/nersc",
    cert_file="/home/rosen/.ssh/nersc-cert.pub",
    conda_env="covalent",
    options={
        "nodes": 1,
        "qos": "debug",
        "constraint": "cpu",
        "account": "matgen",
        "job-name": "test",
        "time": "00:10:00",
    },
    remote_workdir="/pscratch/sd/r/rosen/test",
    create_unique_workdir=True,
    cleanup=False,
)


@ct.lattice(executor=executor)
@ct.electron
def workflow():
    import os

    os.chdir("../")
    return os.getcwd()


ct.dispatch(workflow)()

What should happen?

The UI should give me more information about the issue. The log was not very helpful either: covalent_ui.log.txt

Any suggestions?

Yes, two things should be done.

  1. The type of the exception should be reported. In this case, it seems a FileNotFoundError was raised, but this is never shown in the UI. It just says error. If I had known it was a FileNotFoundError, I would have known what the issue was more quickly.
  2. The traceback should be provided somewhere. Currently, it's nowhere to be found.
@Andrew-S-Rosen Andrew-S-Rosen changed the title Unclear errors reported in the UI when the process fails on the Covalent side Unclear error reported in the UI when the results pkl is not found on the Covalent side Mar 7, 2024
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