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

Make Output Color Across The CLI Messages Consistent According To Convention #226

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Make Output Color Across The CLI Messages Consistent According To Convention #226

wants to merge 7 commits into from

Conversation

jayaike
Copy link
Contributor

@jayaike jayaike commented Dec 26, 2019

Changes

I used the following colors for the CLI output:

red for errors
yellow for questions
white for information responses
green for success messages

I changed it for all output messages in the EvalAI CLI

@jayaike
Copy link
Contributor Author

jayaike commented Dec 26, 2019

The build seems to be failing due to your tests

@jayaike
Copy link
Contributor Author

jayaike commented Dec 26, 2019

There are some assertion errors so I guess that needs to be resolved

@jayaike
Copy link
Contributor Author

jayaike commented Dec 26, 2019

It seems to be coming from test_request.py

@@ -658,4 +658,4 @@ def display_leaderboard(challenge_id, phase_split_id):
attributes = results[0]["leaderboard__schema"]["labels"]
pretty_print_leaderboard_data(attributes, results)
else:
echo("Sorry, no Leaderboard results found.")
echo(style("Sorry, no Challenge Phase Splits found.", bold=True, fg="red"))
Copy link
Member

Choose a reason for hiding this comment

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

Some of the build tests are failing due to this :)
cc: @nsjcorps

@jayaike
Copy link
Contributor Author

jayaike commented Dec 26, 2019

@RishabhJain2018 , sorry about that. Fixed.

Thanks a lot for pointing it out. I appreciate it

@jayaike
Copy link
Contributor Author

jayaike commented Dec 26, 2019

@rishabhjain

@jayaike
Copy link
Contributor Author

jayaike commented Dec 26, 2019

I fixed all the issues from my end. Sorry about that

@pushkalkatara
Copy link

pushkalkatara commented Dec 26, 2019

@nsjcorps The build is still failing. You need to update the tests too with the new CLI outputs, also there are flake8 errors. Have a look here for more details.

@jayaike
Copy link
Contributor Author

jayaike commented Dec 27, 2019

@RishabhJain2018 @pushkalkatara
After a sleepless night. I have been able to fix it.

Please see the new, updated pull request #228

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.

None yet

3 participants