Skip to content

Commit

Permalink
Update stale links to code.google.com.
Browse files Browse the repository at this point in the history
- Update all the wiki pages to point to the corresponding page at
  github.com/luci/luci-py/...
- Update some project links to their new location on github.
- Fix stale generate_version() swarming_load_test_bot.py.

Update stale wiki link.

[email protected]
BUG=

Review-Url: https://codereview.chromium.org/2457713002
  • Loading branch information
maruel authored and Commit bot committed Oct 27, 2016
1 parent 36140dc commit 608a736
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 26 deletions.
5 changes: 1 addition & 4 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
# the individual or the individual's organization has agreed to
# the appropriate Contributor License Agreement, found here:
#
# http://code.google.com/legal/individual-cla-v1.0.html
# http://code.google.com/legal/corporate-cla-v1.0.html
#
# The agreement for individuals can be filled out on the web.
# https://cla.developers.google.com/
#
# When adding J Random Contributor's name to this file,
# either J's name or J's organization's name should be
Expand Down
5 changes: 3 additions & 2 deletions appengine/swarming/server/acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@


# Names of groups.
# See https://code.google.com/p/swarming/wiki/SwarmingAccessGroups for each
# level.
# See
# https://github.com/luci/luci-py/blob/master/appengine/swarming/doc/Access-Groups.md
# for each level.
#
# TODO(vadimsh): Move them to the config.
ADMINS_GROUP = 'swarming-admins'
Expand Down
2 changes: 1 addition & 1 deletion appengine/third_party/gviz/README.swarming
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: Google visualization Python API
Short Name: google-visualization-python
URL: https://code.google.com/p/google-visualization-python/
URL: https://github.com/google/google-visualization-python
Revision: 27
License: Apache License, Version 2.0

Expand Down
2 changes: 1 addition & 1 deletion appengine/third_party_local/colorama/README.swarming
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: colorama
URL: http://code.google.com/p/colorama
URL: https://github.com/tartley/colorama
Version: 5a3100113a3a (0.2.7)
Revision: 5a3100113a3a

Expand Down
6 changes: 3 additions & 3 deletions client/isolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
This includes creating, merging or compiling them to generate a .isolated file.
See more information at
https://code.google.com/p/swarming/wiki/IsolateDesign
https://code.google.com/p/swarming/wiki/IsolateUserGuide
https://github.com/luci/luci-py/tree/master/appengine/isolate/doc/client
https://github.com/luci/luci-py/blob/master/appengine/isolate/doc/Design.md#isolated-file-format
"""
# Run ./isolate.py --help for more detailed information.

Expand Down Expand Up @@ -369,7 +369,7 @@ def update_isolated(self, command, infiles, read_only, relative_cwd):
def to_isolated(self):
"""Creates a .isolated dictionary out of the saved state.
https://code.google.com/p/swarming/wiki/IsolatedDesign
https://github.com/luci/luci-py/blob/master/appengine/isolate/doc/Design.md#isolated-file-format
"""
def strip(data):
"""Returns a 'files' entry with only the whitelisted keys."""
Expand Down
4 changes: 2 additions & 2 deletions client/isolate_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
I/O on behalf of this module.
See more information at
https://code.google.com/p/swarming/wiki/IsolateDesign
https://code.google.com/p/swarming/wiki/IsolateUserGuide
https://github.com/luci/luci-py/tree/master/appengine/isolate/doc/client
https://github.com/luci/luci-py/blob/master/appengine/isolate/doc/Design.md#isolated-file-format
"""

import ast
Expand Down
2 changes: 1 addition & 1 deletion client/third_party/colorama/README.swarming
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: colorama
URL: http://code.google.com/p/colorama
URL: https://github.com/tartley/colorama
Version: 5a3100113a3a (0.2.7)
Revision: 5a3100113a3a

Expand Down
2 changes: 1 addition & 1 deletion client/tools/gce_load_test_on_startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set -e
SERVER=https://CHANGE-ME-TO-PROPER-VALUE.appspot.com

# Source code to use.
REPO=https://code.google.com/p/swarming.client.git
REPO=https://github.com/luci/client-py

# Once the tasks are completed, one can harvest the logs back:
# scp "slave:/var/log/swarming/*.*" .
Expand Down
2 changes: 1 addition & 1 deletion client/tools/run_swarming_tests_on_swarming.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def archive_isolated_triggers(isolate_server, tree_isolated, tests):
for test in tests:
test_name = os.path.basename(test)
# Creates a manual .isolated file. See
# https://code.google.com/p/swarming/wiki/IsolatedDesign for more details.
# https://github.com/luci/luci-py/blob/master/appengine/isolate/doc/Design.md#isolated-file-format
isolated = {
'algo': 'sha-1',
'command': ['python', test],
Expand Down
20 changes: 10 additions & 10 deletions client/tools/swarming_load_test_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@ def print_results(results, columns, buckets):
def generate_version(source):
"""Generates the sha-1 based on the content of this zip.
Copied from:
https://code.google.com/p/swarming/source/browse/services/swarming/swarm_bot/zipped_archive.py
Copied from ../utils/zip_package.py.
"""
result = hashlib.sha1()
h = hashlib.sha1()
with zipfile.ZipFile(source, 'r') as z:
for item in sorted(z.namelist()):
with z.open(item) as f:
result.update(item)
result.update('\x00')
result.update(f.read())
result.update('\x00')
return result.hexdigest()
for name in sorted(z.namelist()):
with z.open(name) as f:
h.update(str(len(name)))
h.update(name)
content = f.read()
h.update(str(len(content)))
h.update(content)
return h.hexdigest()


def calculate_version(url):
Expand Down

0 comments on commit 608a736

Please sign in to comment.