Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Issue 11451004: Bugfixing URL construction for extract build step (Closed)

Created:
8 years ago by kjellander_chromium
Modified:
7 years, 11 months ago
Reviewers:
Isaac (away)
CC:
chromium-reviews, nsylvain+cc_chromium.org, cmp+cc_chromium.org
Visibility:
Public.

Description

Bugfixing URL construction for extract build step On Windows, if the value for the --build-url argument doesn't include the filename, auto-generation of the filename ends up adding a backslash due to use of os.path.join in the construction of the URL. This bugfix simply changes it to use a forward slash, which should always be correct for URLs. BUG=none (but it breaks the ChromiumWebRTC waterfall) TEST=Successsfully executed extract_build step on a slave with local modifications to this script. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=175507

Patch Set 1 #

Patch Set 2 : using urlparse.urljoin + added unit test #

Patch Set 3 : Removing urlparse + fix build_properties use #

Total comments: 9

Patch Set 4 : Updated after review #

Patch Set 5 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -4 lines) Patch
M scripts/slave/extract_build.py View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M scripts/slave/slave_utils.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A scripts/slave/unittests/extract_build_test.py View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
kjellander_chromium
8 years ago (2012-12-05 08:17:01 UTC) #1
kjellander_chromium
Isaac, do you think you can take a look at this? I figure Chase is ...
8 years ago (2012-12-21 09:27:04 UTC) #2
Isaac (away)
Happy to review. This CL won't work as written however, because it could create a ...
8 years ago (2012-12-21 09:38:27 UTC) #3
kjellander_chromium
Thanks! Actually urlparse.urljoin seems to work fine (even if it's documentation is a bit confusing ...
8 years ago (2012-12-21 12:31:49 UTC) #4
Isaac (away)
urljoin will cut off parts of the base url to replace with the new url. ...
8 years ago (2012-12-21 21:54:23 UTC) #5
kjellander_chromium
I agree we shouldn't complicate this too much, and urlparse.urljoin also doesn't support the gs:// ...
7 years, 12 months ago (2012-12-28 16:47:26 UTC) #6
Isaac (away)
lgtm w/ nits https://codereview.chromium.org/11451004/diff/12001/scripts/slave/extract_build.py File scripts/slave/extract_build.py (right): https://codereview.chromium.org/11451004/diff/12001/scripts/slave/extract_build.py#newcode80 scripts/slave/extract_build.py:80: if not replace_dict.get('parent_builddir') and replace_dict.get('parentname'): On ...
7 years, 11 months ago (2013-01-08 08:54:02 UTC) #7
Isaac (away)
https://chromiumcodereview.appspot.com/11451004/diff/12001/scripts/slave/unittests/extract_build_test.py File scripts/slave/unittests/extract_build_test.py (right): https://chromiumcodereview.appspot.com/11451004/diff/12001/scripts/slave/unittests/extract_build_test.py#newcode22 scripts/slave/unittests/extract_build_test.py:22: options = optparse.Values Thanks for adding a test. Note ...
7 years, 11 months ago (2013-01-08 09:11:21 UTC) #8
kjellander_chromium
Thanks for helping me getting this fixed. https://codereview.chromium.org/11451004/diff/12001/scripts/slave/extract_build.py File scripts/slave/extract_build.py (right): https://codereview.chromium.org/11451004/diff/12001/scripts/slave/extract_build.py#newcode80 scripts/slave/extract_build.py:80: if not ...
7 years, 11 months ago (2013-01-08 09:32:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kjellander@chromium.org/11451004/25001
7 years, 11 months ago (2013-01-08 09:33:06 UTC) #10
commit-bot: I haz the power
Failed to apply patch for build/scripts/slave/slave_utils.py: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-08 09:33:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kjellander@chromium.org/11451004/23002
7 years, 11 months ago (2013-01-08 09:37:16 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-08 09:42:13 UTC) #13
Message was sent while issue was closed.
Change committed as 175507

Powered by Google App Engine
This is Rietveld 408576698