Commit Graph

108 Commits

Author SHA1 Message Date
Mike Gray
277f4c6384 Update to jenkins the third (#2920) 2016-12-08 10:33:45 -05:00
Mike Gray
f29032c6cd Revert "Update links to jenkins3.noms.io" (#2918) 2016-12-07 17:36:51 -05:00
Mike Gray
5b9a863471 Update links to jenkins3.noms.io (#2916) 2016-12-07 17:22:43 -05:00
Benjamin Kalman
163b8fe56f Revert "Disable codecov upload for now (#2863)"
This reverts commit 8e714d79f4.
2016-11-29 18:39:35 -08:00
Ben Kalman
8e714d79f4 Disable codecov upload for now (#2863) 2016-11-29 18:18:35 -08:00
Ben Kalman
5e4c1c06d8 Remove noms-ui and update splore README.md (#2861) 2016-11-29 16:53:51 -08:00
Erik Arvidsson
f6c3f91cc3 Make publish-js-sdk.py publish all packages (#2822) 2016-11-11 16:11:23 -08:00
Ben Kalman
cc13253c45 Add --subdir argument to roll.py (#2782)
If you want to roll just the go/ directory of noms, you can do:

$ roll.py https://github.com/attic-labs/noms --incl go

If you want to roll the AWS SDK without the tests, you can do:

$ roll.py https://github.com/aws/aws-sdk-go --excl awstesting

This works with nested directories too, for example --incl go/util

--excl is evaluated after --incl, so you could exclude the perf/
directory of go/ if you really wanted:

$ roll.py https://github.com/attic-labs/noms --incl go --excl go/perf
2016-11-11 15:53:16 -08:00
Ben Kalman
13a188cc89 Change publish-to-npm to work relative to GOPATH not pwd (#2821)
Jenkins is now running from a different pwd. This changes fixes that and
makes it immune to future changes.
2016-11-10 17:10:56 -08:00
Ben Kalman
5ab12777f6 Remove the demo server and receipt code (again) (#2808) 2016-11-07 15:13:28 -08:00
Dan Willhite
46586ee928 Remove msg args from d.PanicIfTrue and d.PanicIfFalse. (#2757)
Should discourage people from writing code that does unnecessary work
to generate a msg every time that an error condition is checked. Fixes #2741
2016-11-03 11:43:57 -07:00
Ben Kalman
bbfc27d7fe Revert "Remove demo-server and receipts code" (#2791) 2016-10-31 17:10:17 -07:00
Ben Kalman
ba5e309c84 Remove demo-server and receipts code (#2790)
They're in attic now: https://github.com/attic-labs/attic
2016-10-31 17:08:18 -07:00
Ben Kalman
26391d9d57 Implement private databases for the demo server (#2772)
Private databases begin with "/p/" - for example, "/kalman" is not
private, but "/p/kalman" is private. They are not the same database.

The bulk of this work is the receipt infrastructure.

A receipt is form data that gives access to a database, encrypted using
secretbox. For example, "Database=/p/kalman&Date=12345678" might encrypt
to "SFH5bcIJ3_XgEbtmi_AdCKTItW20fl90czVl5_pF5PAXhNQ366U1yOpYGAjT".

* A new tool receiptkey generates random receipt (secretbox) keys.
* A new tool receipttool generates receipts for databases.
* demo-server has been updated to check for a receipt in the
  Authorization header to access private databases.

receipttool and demo-server must be given the same receipt key.
2016-10-31 10:58:33 -07:00
Erik Arvidsson
3a4e0dbd75 Remove publish-js-sdk.py (#2786)
This file was renamed to publish-to-npm.py
2016-10-28 18:04:38 -07:00
Erik Arvidsson
9a3a119e60 Update build scripts to use the installed node (#2781) 2016-10-28 18:01:07 -07:00
Erik Arvidsson
37ede2373e Rename publish-js-sdk to publish-to-npm (#2785)
I'm doing this in two steps to allow the builders to continue to work.
2016-10-28 17:54:06 -07:00
Erik Arvidsson
9dafe3da6c Make publish-js-sdk.py publish all packages (#2777) 2016-10-28 16:36:25 -07:00
Erik Arvidsson
7983e61afc Use babel-preset-noms (#2780) 2016-10-28 15:04:20 -07:00
Aaron Boodman
bfaad752f8 Remove old noms-merge command from autobuild binaries list (#2775) 2016-10-27 17:57:55 -07:00
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