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

Report build failures during test import #496

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jugglinmike
Copy link
Contributor

Prior to this commit, the test-importing script would ignore errors in the ARIA-AT project's build process. The script's subsequent behavior was dependent on the particular failure, and if the problem was reported at all, it would be in terms that were only indirectly related to the root cause. For instance:

Error found: Error: ENOENT: no such file or directory, scandir '/home/mike/aria-at-app/server/scripts/import-tests/tmp/build/tests'    [104/1957]
    at Object.readdirSync (fs.js:1021:3)
    at importTestPlanVersions (/home/mike/aria-at-app/server/scripts/import-tests/index.js:73:33)
error Command failed with exit code 1.

Immediately exit the test-importing script if the ARIA-AT project's build process fails for any reason.


I ran into this because the ARIA-AT build process is failing on my system, but as noted in the commit message, any kind of failure will produce undefined results.

Prior to this commit, the test-importing script would ignore errors in
the ARIA-AT project's build process. The script's subsequent behavior
was dependent on the particular failure, and if the problem was reported
at all, it would be in terms that were only indirectly related to the
root cause. For instance:

    Error found: Error: ENOENT: no such file or directory, scandir '/home/mike/aria-at-app/server/scripts/import-tests/tmp/build/tests'    [104/1957]
        at Object.readdirSync (fs.js:1021:3)
        at importTestPlanVersions (/home/mike/aria-at-app/server/scripts/import-tests/index.js:73:33)
    error Command failed with exit code 1.

Immediately exit the test-importing script if the ARIA-AT project's
build process fails for any reason.
Copy link
Contributor

@alflennik alflennik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a great improvement! @howard-e do you want to take a look as well?

Copy link
Contributor

@howard-e howard-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

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

Successfully merging this pull request may close these issues.

3 participants