-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Refine PR Builder Code #5933
Merged
ericholscher
merged 11 commits into
readthedocs:gsoc-19-pr-builder
from
saadmk11:refine-pr-builder
Jul 16, 2019
Merged
Refine PR Builder Code #5933
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
763b857
commit url return updated
saadmk11 2537fc3
small updates according to suggestions
saadmk11 9e643dc
Send failure status when build state in unknown
saadmk11 999070b
Test Fix
saadmk11 4f1709e
build details page UI fix
saadmk11 ce1353e
Added get_or_create for external version creation
saadmk11 f84ee69
create external version updated
saadmk11 b1fe82f
comments updated
saadmk11 8ed0345
log message updated
saadmk11 290bab8
log mistake fix
saadmk11 bf8247f
test fix
saadmk11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -578,18 +578,21 @@ def run_build(self, docker, record): | |
|
||
if self.build_env.failed: | ||
self.send_notifications(self.version.pk, self.build['id']) | ||
# send build failure status to git Status API | ||
# if the build failed, send build failure status to git Status API | ||
# to show status report on the providers pull/merge request UI. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is still just explaining what the code does. We can just remove these comments, we don't need to explain anything here. |
||
send_external_build_status( | ||
version=self.version, build_pk=self.build['id'], status=BUILD_STATUS_FAILURE | ||
) | ||
elif self.build_env.successful: | ||
# send build successful status to git Status API | ||
# if the build succeed, send build successful status to git Status API | ||
# to show status report on the providers pull/merge request UI. | ||
send_external_build_status( | ||
version=self.version, build_pk=self.build['id'], status=BUILD_STATUS_SUCCESS | ||
) | ||
else: | ||
msg = 'Unhandled Build Status' | ||
# send build failure status to git Status API when Unhandled Build Status Found. | ||
# if unhandled build status found, send build failure status to git Status API | ||
# to show status report on the providers pull/merge request UI. | ||
send_external_build_status( | ||
version=self.version, build_pk=self.build['id'], status=BUILD_STATUS_FAILURE | ||
) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why are we calling
join
on a slug?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.
Opps! I was doing something else forgot to remove it sorry.