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

validate doesn't flag files that don't exist #370

Open
jsoref opened this issue Mar 20, 2018 · 1 comment
Open

validate doesn't flag files that don't exist #370

jsoref opened this issue Mar 20, 2018 · 1 comment

Comments

@jsoref
Copy link
Contributor

jsoref commented Mar 20, 2018

{
...
  "Sources": {
    "foo": "local/path/to/file1",
...
  },
...
}
$ daisy  -validate no-foo.wf.json
[Daisy] Validating workflow "package-no-foo"
[package-no-foo]: 2018/03/20 18:19:23 Validating workflow
[package-no-foo]: 2018/03/20 18:19:23 Validating step "setup-disk"
[package-no-foo]: 2018/03/20 18:19:23 Validating step "create-disk-from-image"
[package-no-foo]: 2018/03/20 18:19:23 Validating step "translate-disk-inst"
[package-no-foo]: 2018/03/20 18:19:24 Validation Complete
$ daisy  no-foo.wf.json
[Daisy] Running workflow "package-no-foo"
[package-no-foo]: 2018/03/20 18:19:58 Validating workflow
[package-no-foo]: 2018/03/20 18:19:58 Validating step "create-disk-from-image"
[package-no-foo]: 2018/03/20 18:19:58 Validating step "setup-disk"
[package-no-foo]: 2018/03/20 18:19:59 Validating step "translate-disk-inst"
[package-no-foo]: 2018/03/20 18:19:59 Validation Complete
[package-no-foo]: 2018/03/20 18:19:59 Using the GCS path gs://...-daisy-bkt/daisy-package-no-foo-20180320-22:19:58-47ss8
[package-no-foo]: 2018/03/20 18:19:59 Uploading sources
[package-no-foo]: 2018/03/20 18:19:59 Error uploading sources: FileIOError: stat .../local/path/to/file1: no such file or directory
[package-no-foo]: 2018/03/20 18:19:59 Workflow "package-no-foo" cleaning up (this may take up to 2 minutes).

[Daisy] Errors in one or more workflows:
  package-no-foo: FileIOError: stat .../local/path/to/file1: no such file or directory
@Zyqsempai
Copy link

So, should we just return error message similar to [Daisy] Errors in one or more workflows: package-no-foo: FileIOError: stat .../local/path/to/file1: no such file or directory ?

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

2 participants