Commit Graph

3149 Commits

Author SHA1 Message Date
Dan Willhite 7916e05631 Make blob-get print to stdout if there is no file arg (#2867)
* Make blob-get print to stdout if there is no file arg

* Review changes
2016-12-05 11:33:08 -08:00
cmasone-attic b3eef38fa4 Break NomsBlockStore dependency on disk storage (#2905)
This patch introduces/expands the 'manifest' and 'tableSet'
abstractions, so that NomsBlockStore is no longer explicitly using any
file system operations

Towards issue #2877
2016-12-05 09:05:40 -08:00
Ben Kalman 0a10704149 Implement Set.At and Map.At in Go (#2903)
These get the set/map element at a specific index.
I haven't implemented it in JS yet because the JS code has no method to
create a cursor at an index. This exists in Go because a refactor was
done a few months ago to add it, but it hasn't been ported to JS.
2016-12-04 11:27:35 -08:00
Aaron Boodman 87958507b0 marshal.Unmarshal(): introduce omitempty and original support (#2900)
* marshal.Unmarshal(): introduce omitempty and original suppport.

Fixes #2795
Fixes #2796

* review comments
2016-12-02 15:13:00 -08:00
Rafael Weinstein a67bb9bf7b Minor rework of hash.Hash API (#2888)
Define the hash.Hash type to be a 20-byte array, rather than embed one. Hash API Changes: `hash.FromSlice` -> `hash.New`, `hash.FromData` -> `hash.Of`
2016-12-02 12:11:00 -08:00
Eric Halpern ca232f0ad7 Support marshaling from and unmarshaling to *types.Type (#2892)
* Support marshaling from and unmarshaling to *types.Type

* Incorporate code review suggestions.
- Use fallthrough in switch
- Update decode godoc to spec *types.Type handling. Godoc for encode is fine as is.

toward: #2889
-
2016-12-02 11:32:35 -08:00
Erik Arvidsson 710e5c8d12 Give Flow a helping hand (#2895)
Flow didn't know which type to pick for addEventListener.
2016-12-02 10:59:54 -08:00
Rafael Weinstein 9cbe8e8bc8 uint32ChunkCount (#2894)
Encode chunk counts consistently as uint32 until #2873 is addressed. This also fixes an error in passing chunkCounts resulting from compaction that don't account for dropped (duplicate) chunks.
2016-12-02 10:12:40 -08:00
Aaron Boodman 8241483c19 noms show no longer shows type information (#2893)
If you want that, do `noms show <thing>@type`.

Fixes #2694
2016-12-02 08:58:51 -08:00
Erik Arvidsson 3a963602d2 Update Noms JS SDK to use Flow 0.35 (#2890) 2016-12-01 17:52:30 -08:00
Aaron Boodman e664d77a97 Change the dropbox client we're using. (#2887)
Toward https://github.com/attic-labs/attic/issues/152
2016-12-01 15:03:16 -08:00
Mike Gray ebe9831710 Clarify Facebook instructions (#2885) 2016-12-01 15:02:32 -08:00
Dan Willhite 46dfabd60e Fix in/out root mixup in downloader. (#2884)
Fixes https://github.com/attic-labs/attic/issues/130
2016-12-01 13:49:46 -08:00
Rafael Weinstein a00a5f5611 Implement experimental block store (#2870)
* Move NBS into Noms

* vendor in deps
2016-12-01 10:04:09 -08: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
Aaron Boodman b221caabea Add @type support to paths in Go (#2860)
Add @type support to paths in Go
2016-11-29 18:13:29 -08:00
Ben Kalman 5e4c1c06d8 Remove noms-ui and update splore README.md (#2861) 2016-11-29 16:53:51 -08:00
Michael Angerman fcb98d7780 fix .nomsconfig error: Near line 11 (#2857) 2016-11-29 14:10:54 -08:00
Ben Kalman 0cf768e912 Make splore param parser not strip trailing '=' characters (#2856)
Params must include trailing '=' characters for base64 receipts.
2016-11-29 11:10:21 -08:00
Aaron Boodman 8d2b1d6568 Welcome, Jenna! (#2854) 2016-11-23 15:58:47 -08:00
Eric Halpern 3f60749013 Fix race conditions in encoder to address photo-dedup segfault (#2852)
toward: #2849
2016-11-23 15:39:14 -08:00
Ben Kalman b86b18f395 Add MustParsePath (#2851) 2016-11-23 15:24:08 -08:00
Aaron Boodman b353e20f68 Type erasure for noms :) (#2850) 2016-11-22 22:06:13 -08:00
Erik Arvidsson 4a44200d3e Lock down Flow version (#2844)
This is to prevent errors in the future when the code and flow version
do not match.
2016-11-22 18:48:17 -08:00
Aaron Boodman 598feae89f Australify (#2847) 2016-11-22 14:43:54 -08:00
Aaron Boodman 4943979fad Teach photos UI about LocalResource (#2841)
Teach photos UI about LocalResource
2016-11-22 14:37:25 -08:00
Ben Kalman 96d10ac29f Improve Set marshaling to add encoding support, and decoding to map (#2845)
The only support that marshal has for Set at the moment is decoding to
slice.
2016-11-22 11:24:18 -08:00
Erik Arvidsson 5e901b0924 Cache OIDs as we descend (#2840)
Remove validation/normalization of union order and struct field order as we decode a chunk into a type.

Instead the validation happens in ValidatingBatchSink.

We still normalize the union order when a struct type is created directly (not from a chunk) using  makeStructType.

The motivation for this change is that computing the OID (order ID) is expensive and it used to be a O(n^2) since we kept recomputing it as we traversed the type hierarchy.

Towards #2836
2016-11-21 15:18:02 -08:00
cmasone-attic 0cf72d5b85 Add debug logging to HandleWriteValue (#2846)
This patch introduces optional debug logging in util/verbose, and adds
some usage of it to HandleWriteValue and the httpBatchStore
SchedulePut code path. It also modifies chunks.DeserializeToChan() so
that callers can better recover from panics in there.

https://github.com/attic-labs/attic/issues/103
2016-11-21 15:11:34 -08:00
Ben Kalman ff4ee3c3a9 Small refactor to marshal code to support upcoming "set" tag (#2843) 2016-11-18 17:44:10 -08:00
Eric Halpern 86878936b1 Store photo urls under RemoteResource.url (#2838)
fixes: #2837
2016-11-16 17:16:12 -08:00
Aaron Boodman 26c9fe44d1 Remove tagging_user from fb query (#2839)
This was causing an auth error for @rafael. Unclear why, but it's
not necessary in first place.
2016-11-16 16:26:01 -08:00
Eric Halpern b29e50379f Reduce time required by sequence_iterator_test by using smaller chunk sizes (#2831)
* Reduce time required by sequence_iterator_test by using smaller chunk
sizes

* Simplify data generation
2016-11-16 11:26:43 -08:00
Aaron Boodman 7f760a9ba3 photo-index: index photos by source too (#2833)
Fixes https://github.com/attic-labs/attic/issues/19
2016-11-15 14:20:17 -08:00
Aaron Boodman e730306bd2 Teach photo-index about PhotoGroup (#2832)
Teach photo-index about PhotoGroup
2016-11-15 14:09:48 -08:00
Aaron Boodman 8e64e636aa Introduce photo-dedup-by-date (#2826)
Introduce photo-dedup-by-date

This program deduplicates photos by the date they were taken. It considers two photos a group if they were separated by less than 5 seconds.
2016-11-15 14:07:57 -08:00
Aaron Boodman 03434861ea coffeebot: don't do anything until 10a each day (#2834)
this way easier for message to be seen
2016-11-15 02:24:48 -08:00
Eric Halpern 94a61c6aad Better test fix. Need to obtain raw bytes before reading from buffer (#2830) 2016-11-14 11:55:26 -08:00
Eric Halpern 3da7461480 Fix test break (#2829) 2016-11-14 11:13:55 -08:00
Eric Halpern 242b782748 Improve sequence read performance using read-ahead (#2711)
* Implement read-ahead in sequence_cursor
For each meta-sequence that contains leaf sequences, start reading ahead in
parallel and deliver in order to a buffered channel. Each advance of the cursor gets
the next sequence in the read-ahead channel.

toward: #2079
-

* Address code review comments:
- Use // for all comments
- Fix label format
- Increase channel read timeout

* Rework read-ahead to use map[int]channel sequence instead of a channel of sequences

* Rework sequence cursor read-ahead for better throughput

- Guts of read-ahead now encapsulted in sequenceReadAhead
- New implemention uses a cursor to iterate across the leaves ahead
  of the current cursor
  - It reads ahead using short-lived go routines that place each read-ahead
    sequence in a channel that is then stored by hash in a map
  - When the sequence is needed, the cursor first looks in the map. If found,
    it reads the sequence from the channel stored in the map. If not, it reads
    it normally.
  - This approach allows for reading ahead in parallel without requiring a long
    running pool of goroutines
- Introduce sequenceIterator to encapulate read-ahead behind an abstraction that
  always reads forward. This is currently used narrowly but could be used more
  widely as the the core implementation for all sequence iterators

* Address review comments
2016-11-12 11:51:26 -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 401a878478 Add auth parameter to Splore (#2820) 2016-11-10 16:14:03 -08:00
Ben Kalman 0ee6d105bb Export HttpError and SpecOptions to Noms JS API (#2819)
I renamed HTTPError to HttpError for consistency with HttpBatchStore
(and XMLHttpRequest).
2016-11-10 15:46:21 -08:00
Erik Arvidsson 257520c287 Sync photo-set-iterator.js between repos (#2818) 2016-11-10 15:45:04 -08:00
zcstarr 3afbd11578 Remove dependency on bash shell from package (#2817) 2016-11-10 14:38:42 -08:00
Erik Arvidsson db4aedaeaf Use the latest version of documentation.js (#2805)
To pick up links into github for methods
2016-11-10 13:00:49 -08:00
Ben Kalman cdfbee1b3d Remove spec GetDataset/GetDatabase/GetPath, update all clients (#2815)
These are now ForDataset/ForDatabase/ForPath.
2016-11-09 17:34:39 -08:00