Commit Graph

88 Commits

Author SHA1 Message Date
Ben Kalman
107c3fe9c0 Update eslint to 3.8.1, noms was broken at 3.8.1 (#2751)
Also remove roll.py (not used anymore, we use file path) and make it
pinned to a specific version (so that this doesn't happen again.
2016-10-24 17:31:59 -07:00
Erik Arvidsson
8e240b8a80 Followup to licensify.py (#2735)
Use startwith and endswith
2016-10-19 13:05:29 -07:00
Erik Arvidsson
e164f8aeec Flow header after copyright (#2734)
This puts the flow header after the copyright header.

It also:
 * fixes the existing files to have valid headers
 * Makes sure the script can handle doctype
2016-10-19 11:36:48 -07:00
Aaron Boodman
8fe85df1a4 Introduce samples/js/dropbox/slurp (#2702)
* Introduce samples/js/dropbox/slurp

Doing the filter step will be a bit different because Dropbox does
not provide secret URLs for every photo by default. Requests have
to be oauth-authenticated so we'll have to figure out how to do
that.

* vendor golang.org/x/oauth2 and golang.org/x/net

* Introduce oauthify and modify dropbox/slurp to use
2016-10-13 17:34:37 -07:00
Erik Arvidsson
7783fc5f44 Update style issues found by newer eslint (#2685) 2016-10-10 10:56:02 -07:00
Erik Arvidsson
1cc5c86fa6 Add --force to run-all-js-tests.py (#2652)
When the flag is present we force update @attic/noms. This is useful
since a lot of the samples use file: dependencies which lack a version
so they do not get updated as normal dependencies do.
2016-09-29 14:23:23 -07:00
Ben Kalman
81673c2591 Add perf test for url-fetch 2016-09-27 16:52:54 -07:00
Ben Kalman
e77dc74f32 Update run_perf_builder.py to run 'go test' commands sequentially (#2582)
This changes effectively:

> go test ./go/types/perf ./samples/csv/csv-import <etc>

to:

> go test ./go/types/perf <etc>
> go test ./samples/csv/csv-import <etc>

The perf results started going crazy when I started running a second
test package (./go/types/perf), this is one reason why it may have
happened. It's hard to say for sure what go test is doing.
2016-09-15 16:47:53 -07:00
Erik Arvidsson
d6991a0f7a Add code coverage to js/noms too (#2580) 2016-09-15 15:47:05 -07:00
Mike Gray
d3666b0b6f Run python unittests; configure codecov via YAML (#2578) 2016-09-15 15:08:52 -07:00
Mike Gray
7d9c373da9 Add codecov.io badge and submit coverage data from builds (#2577) 2016-09-15 12:14:00 -07:00
Ben Kalman
c063b51ae7 Add go/types/perf to perf build tests (oops) (#2572) 2016-09-14 17:12:56 -07:00
Ben Kalman
e156791329 Add go/types to perf builder tests (#2568) 2016-09-14 15:27:48 -07:00
Mike Gray
5c13e0ccec Build go binaries for multiple platforms (#2564) 2016-09-14 14:28:38 -07:00
Erik Arvidsson
5edf89cf3d Replace d.Chk.True with d.PanicIfFalse (#2563)
And same for d.Chk.False
2016-09-14 13:11:28 -07:00
Erik Arvidsson
4082fb14c4 Add a bare bones landing page to docs.noms.io (#2547)
Towards #2532
2016-09-12 14:08:45 -07:00
Erik Arvidsson
3d83e4e72f Allow stage.py to create the staging dir (#2528)
Previously, it was required to already exist
2016-09-07 14:24:16 -07:00
Erik Arvidsson
dbe0556c63 Rename files to their hashes when staging (#2515)
This add two keyword arguments to the GlobCopier:
- rename - if True, will rename the files to include their hash
- index_file - if present, then the paths in this file here will be
  updated to the renamed paths.
2016-09-07 13:34:14 -07:00
Erik Arvidsson
893d0fa360 stage.py needs to import sys before using it (#2513)
Also changes the tabs to spaces. Thanks pylint.
2016-09-02 13:38:43 -07:00
Erik Arvidsson
f465b0bd3c Fix import of noms.staging in stage.py (#2510)
Also fix unit test that was not updated when the functions were
renamed.
2016-09-02 13:09:07 -07:00
Ben Kalman
8eba76a2ec Check before calling mkdirs on staging directory (#2502)
Also run pylint on staging.py.
2016-09-01 15:19:13 -07:00
Erik Arvidsson
456f403b8a Build js docs correctly (#2495)
There was a typo (missing comma) in the command.
2016-09-01 10:38:29 -07:00
Erik Arvidsson
eb42d99950 JS Doc builder (#2493)
Trying to work around issue where `npm run build-docs` fails
2016-08-31 18:27:58 -07:00
Erik Arvidsson
9452898ff7 Revert "Work around python popen bug for js docs" (#2492) 2016-08-31 18:18:16 -07:00
Erik Arvidsson
0a53ee7e3d Work around python popen bug for js docs (#2491) 2016-08-31 18:10:10 -07:00
Erik Arvidsson
ad66582f44 npm run did not work (#2489) 2016-08-31 17:56:12 -07:00
Erik Arvidsson
b857b95bb4 Drive js docs from npm script (#2486)
Turns out that documentationjs reads the babelrc file from js/noms
which leads to us having to do npm install in js/noms. Therefore
putting the dev deps in there and running the script from there
makes things cleaner.

It also allows doing:

  npm run build-docs

Towards #1471
2016-08-31 16:57:31 -07:00
Ben Kalman
815ca1586f Add perf build.py and util (#2487) 2016-08-31 16:50:34 -07:00
Erik Arvidsson
7c47547110 Add node to the PATH for documentation build (#2482) 2016-08-31 15:43:43 -07:00
Erik Arvidsson
adff0da9c3 Build script for building JS SDK Docs (#2479)
This script npm installs documentationjs and runs it on noms.js and
puts the output in $WORKSPACE/build

It is intended to be used with Jenkins.
2016-08-31 14:51:23 -07:00
Ben Kalman
aaad3601db Tweak number of reps and timeout of perf bot script (#2462) 2016-08-31 11:27:44 -07:00
Mike Gray
2f66e67763 fixing misspellings, fixing IneffAssign reported issues (#2436)
also removing encode-perf-rig since codec-perf-rig is more current and real
2016-08-25 13:32:34 -04:00
Ben Kalman
8fef8fe7b0 Add perf bot script (#2393) 2016-08-24 09:47:09 -07:00
Erik Arvidsson
5f9c3af12d Move jsmodules/* to js/ (#2424) 2016-08-23 17:01:54 -07:00
Erik Arvidsson
d06c3ec8fe Move /js/ into /js/noms/ (#2423) 2016-08-23 16:04:00 -07:00
Mike Gray
4e54c44d56 no functional changes, improving code quality (#2410)
fix misspellings; fix code that was not gofmt'd - plus take advantage of gofmt -s too; couple of unreachable golint reported fixes; reference go report card results and tests
2016-08-23 13:51:38 -04:00
Sungguk Lim
6697c2e6fc Replace github.com/tsuru/gnuflag with github.com/juju/gnuflag (#2340)
Replace vendor folder and where it is used.
2016-08-11 10:29:57 -07:00
Ben Kalman
9255b62241 Check in the NomsPRBuilder build script as tools/run_pr_builder.sh (#2333) 2016-08-10 14:54:01 -07:00
cmasone-attic
0b102403b3 loadtest.go: add IP into seed (#2230)
When running loadtest on a number of machines all at once, machines that
start at the same time tend to wind up with the same random seed, leading
to the same sequence of operations.

Mixing in the IP address perturbs the seed enough to change things up.
2016-08-01 15:19:31 -07:00
Erik Arvidsson
ed0364cc19 Switch to gnuflag (#2206)
This is to support:
- shorthands
- Putting commands anywhere (after positional arguments too)
2016-07-29 18:08:23 -07:00
Ben Kalman
dfc73cb332 Add loadtest.go script (#2090) 2016-07-18 14:32:30 -07:00
Erik Arvidsson
b830762f49 Fix some copyright headers (#2026) 2016-07-12 16:02:32 -07:00
Ben Kalman
09cba32746 Make DumbCopy preserve file mode (#1999) 2016-07-08 16:22:41 -07:00
Erik Arvidsson
fb4c8624a0 JS integration tests for samples/js/{counter,fs} (#1951)
This adds some a basic integration tests for sample/js/{counter,fs}.

It work pretty much like this:

- Run `npm install`
- Do setup (good place to initialize the database) (optional).
- Start a http store from go.
- Run `node . <args...>`. The IntegrationTestSuite has convenience
  methods to get the spec.
- Do teardown, which is a good time to check the output and the current state of the db (optional).

Towards #1888
2016-07-07 14:00:32 -07:00
Erik Arvidsson
c0bd2c90d4 More tweaks to tools/run-all-js-tests.py (#1974)
* Update Splore build.py

* path

* Setup the bin symlinks in preinstall

* Link entire node_modules instead
2016-07-06 13:44:11 -07:00
Aaron Boodman
1d752e3101 Update license: Noms will be copyright Attic Labs. (#1976) 2016-07-05 22:07:42 -07:00
Erik Arvidsson
983fa59090 Samples js shared 2 (#1973)
* Revert "Revert "Share node_modules for samples/js" (#1967)"

This reverts commit 7bb1623e99.

* Add parent directory to the PATH

* Change run-all-js-tests to run samples/js before samples/js/**

* Fix a temporary comment
2016-07-05 16:25:21 -07:00
Dan Willhite
095d49fa84 New error handling. 2016-06-22 12:11:31 -07:00
Aaron Boodman
155a388c64 Fix build break in tools/ 2016-06-05 02:46:02 -07:00
Erik Arvidsson
f20c6465b6 Flow comment first (#1724) 2016-06-03 14:35:21 -07:00