Commit Graph

127 Commits

Author SHA1 Message Date
wardn
e6c5675a54 remove js implementation (#3705) 2017-09-14 11:51:03 -07:00
Erik Arvidsson
3cbaf56f23 Don't build blob-get (#3704)
it has been removed
2017-09-14 10:29:44 -07:00
Ben Kalman
03b7221c36 Use stretchr/testify not attic-labs/testify (#3677)
stretchr has fixed a bug with the -count flag. I could merge these
changes into attic-labs, but it's easier to just use strechr.

We forked stretchr a long time ago so that we didn't link in the HTTP
testing libraries into the noms binaries (because we were using d.Chk in
production code). The HTTP issue doesn't seem to happen anymore, even
though we're still using d.Chk.
2017-09-07 15:01:03 -07:00
Eric Halpern
d4f6d566f3 Modify roll.py to handle multiple --incl directories (#3500)
This makes it possible to include/exclude multiple directories when rolling src into a vendor directory.

For example, to roll the `cmd` and `go` directories from github.com/attic-labs/noms
into your vendor directory, you could run the following:

```
cd $MY_REPO_HOME
$NOMS/tools/roll.py --incl cmd --incl go https://github.com/attic-labs/noms
```

This patch also strips '.git' if it's present on the end of the repo url.
2017-05-26 12:27:56 -07:00
Eric Halpern
f234913943 Remove code coverage (#3395)
* Remove code coverage

* Remove node --version
2017-04-17 18:17:24 -07:00
Ben Kalman
3c764c1eb5 Remove JS SDK, examples, and tools (#3293) 2017-03-27 15:54:39 -07:00
Erik Arvidsson
c89890ad0f Remove integration tests (#3288)
The integration tests requires js and go to be in sync which is not the
case for much longer. For now it fails the PR builder...
2017-03-22 14:41:14 -07:00
Erik Arvidsson
d74836984d yarn publish is broken (#3137) 2017-01-31 13:50:29 -08:00
Erik Arvidsson
b287ad9462 Update run_pr_builder.sh
Add `-v` again
2017-01-27 18:03:00 -08:00
Erik Arvidsson
04ecdaa311 Revert "Update run_pr_builder.sh" (#3119)
This reverts commit 6b5e8dad0d.

Still happening...
2017-01-27 10:18:46 -08:00
Erik Arvidsson
6b5e8dad0d Update run_pr_builder.sh
Testing again
2017-01-27 09:56:57 -08:00
Erik Arvidsson
59ecc40c6e publish-to-npm: Fix python call (#3117) 2017-01-26 11:58:32 -08:00
Erik Arvidsson
2ba3a3e129 Update publish-to-npm.py for yarn (#3116) 2017-01-26 11:18:40 -08:00
Erik Arvidsson
076b88134a Integration test: Just disable samples/js/fs
samples/js/fs fails with

```
+ go test -v github.com/attic-labs/noms/samples/js/fs
=== RUN   TestIntegration
== Calling npmInstall
yarn install v0.19.1
$ cp ../../../js/noms/.babelrc ../.eslintrc.js ../../../js/noms/.flowconfig .
[1/4] Resolving packages...
success Already up-to-date.
$ yarn run build
yarn run v0.19.1
$ BABEL_ENV=production babel -d dist src 
Build step 'Execute shell' marked build as failure
```

We also have:

```
+ ls -al /var/workspace/src/github.com/attic-labs/noms/samples/js/fs
total 124
drwxrwxrwx 3 112 116  4096 Jan 26 04:08 .
drwxrwxrwx 8 112 116  4096 Jan 26 04:08 ..
-rw-rw-rw- 1 112 116    59 Jan 26 04:08 .gitignore
-rw-rw-rw- 1 112 116   244 Jan 26 04:08 dummy.go
-rw-rw-rw- 1 112 116  1162 Jan 26 04:08 integration_test.go
-rw-rw-rw- 1 112 116   666 Jan 26 04:08 package.json
drwxrwxrwx 2 112 116  4096 Jan 26 04:08 src
-rw-rw-rw- 1 112 116    13 Jan 26 04:08 test-data.txt
-rw-rw-rw- 1 112 116 93335 Jan 26 04:08 yarn.lock
```

But it is not clear why this is different than the other samples.
2017-01-25 20:14:56 -08:00
Erik Arvidsson
361ae3a77e Integration test: Debugging... 2017-01-25 20:07:42 -08:00
Erik Arvidsson
6a800f6518 Integration test saga: Add -v to go test 2017-01-25 16:33:47 -08:00
Erik Arvidsson
e6bc8c9054 Manually list the integration tests (#3114) 2017-01-25 15:55:56 -08:00
Erik Arvidsson
9689248028 Add more logging info for test runners (#3112) 2017-01-25 13:49:14 -08:00
Erik Arvidsson
e90bfcbd2a Switch to Yarn (#3092)
brew install yarn
2017-01-20 11:42:32 -08:00
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