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

Add warnings key to build status #16

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions qmk_api_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def run(self):
output = f'No layouts for {keyboard}! Skipping!'
bad_boards += 1
qmk_redis.set('qmk_bad_boards', bad_boards)
configurator_build_status[keyboard] = {'works': False, 'last_tested': int(time()), 'message': output}
configurator_build_status[keyboard] = {'works': False, 'warnings': False, 'last_tested': int(time()), 'message': output}
keyboards_tested[keyboard] = False # FIXME: Remove this when it's no longer used
failed_keyboards[keyboard] = {'severity': 'error', 'message': output} # FIXME: Remove this when it's no longer used
print(output)
Expand Down Expand Up @@ -303,7 +303,7 @@ def run(self):
print('Compile job completed successfully!')
good_boards += 1
qmk_redis.set('qmk_good_boards', good_boards)
configurator_build_status[keyboard] = {'works': True, 'last_tested': int(time()), 'message': result['output']}
configurator_build_status[keyboard] = {'works': True, 'warnings': '[WARNING]' in result['output'], 'last_tested': int(time()), 'message': result['output']}
keyboards_tested[keyboard] = True # FIXME: Remove this when it's no longer used
if keyboard in failed_keyboards:
del failed_keyboards[keyboard] # FIXME: Remove this when it's no longer used
Expand All @@ -327,7 +327,7 @@ def run(self):

bad_boards += 1
qmk_redis.set('qmk_bad_boards', bad_boards)
configurator_build_status[keyboard] = {'works': False, 'last_tested': int(time()), 'message': output}
configurator_build_status[keyboard] = {'works': False, 'warnings': False, 'last_tested': int(time()), 'message': output}
keyboards_tested[keyboard] = False # FIXME: Remove this when it's no longer used
failed_keyboards[keyboard] = {'severity': 'error', 'message': output} # FIXME: Remove this when it's no longer used

Expand Down