Skip to content

Validate fix #443

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

Merged
merged 7 commits into from
Sep 16, 2019
Merged

Validate fix #443

merged 7 commits into from
Sep 16, 2019

Conversation

jshum2479
Copy link
Member

No description provided.

sys.exit(CommandLineArgUtil.PROG_WARNING_EXIT_CODE)
else:
sys.exit(CommandLineArgUtil.PROG_OK_EXIT_CODE)

Copy link
Member

Choose a reason for hiding this comment

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

I think the "lax" method should not have a warning when a FILE reference is missing, and this check would not be necessary. Other opinions?

Copy link
Member

Choose a reason for hiding this comment

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

agreed. lax means do not check, so I wouldn't warn. you could print an info that it was seen and skipped, but otherwise no warning is necessary.

Choose a reason for hiding this comment

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

Agreed. Info is better when missing files are expected - and the adminstrator has already indicated this via the command line option. The only warnings should be those that may need investigation.

Copy link
Member Author

Choose a reason for hiding this comment

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

probably ok, I will print as info level but the exit code is always 0 even if there is warning - I don't know where else or if there is other place for warning code

Copy link
Member

Choose a reason for hiding this comment

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

I think the exit code should be non-zero when there is a valid warning, but I'm not sure if there are other warnings that will cross up image tool?

Copy link
Member

Choose a reason for hiding this comment

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

if a warning is found, it should have the CommandLineArgUtil.PROG_WARNING_EXIT_CODE

Jenkinsfile Outdated
@@ -1,7 +1,6 @@
pipeline {
agent {
docker {
alwaysPull true
Copy link
Member

Choose a reason for hiding this comment

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

Please revert this change. It was a temporary attempt to get around the OCIR outage.

sys.exit(CommandLineArgUtil.PROG_WARNING_EXIT_CODE)
else:
sys.exit(CommandLineArgUtil.PROG_OK_EXIT_CODE)

Copy link
Member

Choose a reason for hiding this comment

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

if a warning is found, it should have the CommandLineArgUtil.PROG_WARNING_EXIT_CODE

@jshum2479
Copy link
Member Author

changes reverted

rakillen
rakillen previously approved these changes Sep 13, 2019
ddsharpe
ddsharpe previously approved these changes Sep 16, 2019
@jshum2479 jshum2479 dismissed stale reviews from ddsharpe and rakillen via d9f4e6f September 16, 2019 16:36
@ddsharpe ddsharpe merged commit 7aa9399 into master Sep 16, 2019
@ddsharpe ddsharpe deleted the validate_fix branch September 17, 2019 15:51
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.

4 participants