-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Stop parameters page in Wiki from just disappearing #6576
Stop parameters page in Wiki from just disappearing #6576
Conversation
so we exit after an error has happened rather than do more damage
prevents returning an empty set of commits which can make the Wiki's parameters page break
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some spelling and minor cleanup.
@@ -305,6 +305,8 @@ def fetch_commit_hash(version_link, board, file): | |||
for i in commits_and_codes: | |||
if commits_and_codes[i][0] != 'error': | |||
commite_and_codes_cleanned[i] = commits_and_codes[i] | |||
if len(commite_and_codes_cleanned) == 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleaned (spelling) - ok I see it's a pre-existing wierdness, but an opportunity to fix it? (and commite)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really a good time to fix this sort of thing. The variable needs a completely new name, not just a spelling fix :-)
... and I don't even know if "commite" comes from a language-other-than-English or is just a typo...
@@ -1,9 +1,12 @@ | |||
#!/bin/bash | |||
# check for changes in docs and run sphinx | |||
|
|||
set -e | |||
set -x | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I'm leaving it like this deliberately. One of these is even called out in the commit messages...
update.sh
Outdated
cp new_logmessages/$site.rst old_logmessages/$site.rst | ||
changed=1 | ||
fi | ||
done | ||
|
||
[ $changed = 1 ] || exit 0 | ||
[ $changed = 1 ] || { | ||
progress "Nothing changed; no rebuild required, exitting" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exiting (spelling)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks.
also create a separate log file for the current build
we're always going to want to do this, and probably fold build_parameters.py into update.py
a23ac36
to
0a072b3
Compare
From what I've gleaned from the logs on the Wiki server, it is possible for build_parameters.py to parse out 0 versions to build from its scanning of the firmware server's directory listing pages.
This leads us to removing the parameters.rst file but not copying in a special "versioning" replacement for it based on the master branch.
So. Run update.sh with
-e
so that it doesn't just rumble on if there's an error.Change build_parameters.py to exit with a non-zero exit code if there's ever an error in it.
Require at least one version/commit from each directory listing parsed from the firmware server.
Future enhancements here: