Aaron Boodman
a4be5d386f
Merge pull request #493 from aboodman/counter-test
...
counter: add a unit test
2015-10-27 17:51:07 -07:00
Aaron Boodman
9cf0f8b2c5
counter: add a unit test
2015-10-27 17:42:23 -07:00
Erik Arvidsson
12512407ed
Merge pull request #491 from arv/remove-old-encoding
...
Remove old encoder/decoder
2015-10-27 19:05:09 -04:00
Erik Arvidsson
c5fe67371d
Remove old encoder/decoder
...
This removes the "j " encoding
2015-10-27 18:02:04 -04:00
Erik Arvidsson
378d60f48a
Merge pull request #486 from arv/compound-blob-typed
...
NomDL: Encode compound blobs as structs
2015-10-27 17:55:57 -04:00
Erik Arvidsson
81f80d5ce6
NomDL: Encode compound blobs as structs
...
Before encoding a compoundBlob we create a compoundBlobStruct and
encode that instead.
After decoding we check if the value is a compoundBlobStruct and if so
we convert it to a compoundBlob.
Fixes #455 , #165
2015-10-27 17:53:16 -04:00
Erik Arvidsson
c36d4a7f50
Merge pull request #487 from arv/write-package-not-the-type-defs
...
NomDL: Remove extra write of the Package type refs
2015-10-27 17:49:36 -04:00
Erik Arvidsson
e4544a4e49
NomDL: Remove extra write of the Package type refs
...
When writing a Package we were writing the type refs describing the
types in Package. These are never referenced from anywhere and the
information is embedded into the Package chunk.
2015-10-27 16:05:04 -04:00
Erik Arvidsson
3709f209a9
Merge pull request #485 from arv/read-implicit-packages
...
NomDL: Read Package from ChunkSource when decoding
2015-10-27 14:52:25 -04:00
Erik Arvidsson
8f7661e873
NomDL: Read Package from ChunkSource when decoding
...
Packages usually gets registered using RegisterPackage which is called
by generated code. However, if the data in the data store was created
using another binary it is unlikely that the current binary registered
the same Package.
When writing values that depends on Packages we write the Package to
the ChunkStore...
When we read a value that depends on a Package and the Package has
not been registered we now read the Package out of the the ChunkStore
and register it for future uses.
2015-10-27 09:49:59 -04:00
Erik Arvidsson
b851eab52d
Merge pull request #484 from arv/write-implicit-packages
...
Make sure we write packages to the store
2015-10-27 09:11:12 -04:00
Erik Arvidsson
cb233b0f68
Make sure we write packages to the store
...
When we write a value that has a TypeRef with a package we need to
write that package.
When we write a package that has dependencies we need to write the
dependent packages too.
2015-10-26 19:21:47 -04:00
Aaron Boodman
8cf5bdb145
travis: only send notifications on_success change
2015-10-26 13:48:43 -07:00
Aaron Boodman
482e00f196
fix the build
2015-10-26 13:46:44 -07:00
Aaron Boodman
9343a385e1
break the build further
2015-10-26 13:43:05 -07:00
Aaron Boodman
552f61e11d
travis: purposely break the build
2015-10-26 13:40:09 -07:00
Erik Arvidsson
11799dc957
Merge pull request #481 from arv/counter
...
Don't read the current commit from the datastore
2015-10-26 16:38:32 -04:00
Erik Arvidsson
caf24a962e
Merge pull request #483 from arv/js-async-test
...
Add async test support for js2
2015-10-26 16:25:58 -04:00
Aaron Boodman
299c21522b
Merge branch 'master' into travis
2015-10-26 13:23:48 -07:00
Erik Arvidsson
8702743875
Cleanup based on code review
2015-10-26 16:22:57 -04:00
Aaron Boodman
4d97eac418
travis: one more idea
2015-10-26 13:22:44 -07:00
Aaron Boodman
39a6aef38f
I give up for today
2015-10-26 13:20:08 -07:00
Aaron Boodman
35d3ae4390
travis: blargh
2015-10-26 13:15:52 -07:00
Aaron Boodman
953aaae971
travis: can't believe I'm still working on this
2015-10-26 13:07:44 -07:00
Erik Arvidsson
290bf7ffea
Merge pull request #482 from arv/make-compound-type-no-name
...
Update TypeRef comment and get rid of useless param
2015-10-26 16:03:01 -04:00
Erik Arvidsson
e685f4993a
Add async test support for js2
2015-10-26 16:01:17 -04:00
Aaron Boodman
e8e4bc0d77
travis: yaml is the worst thing ever. the very worst.
2015-10-26 12:40:47 -07:00
Erik Arvidsson
cdcf952270
Update TypeRef comment and get rid of useless param
...
The name param of MakeCompoundTypeRef is always the empty string.
I didn't change the underlying storage or serialization.
Fixes #436 , #477
2015-10-26 15:35:45 -04:00
Erik Arvidsson
33c88381ee
Don't read the current commit from the datastore
...
We tried to read the current commit from that datastore almost
directly after it was written. Instead of reading it we pass along the
Commit.
2015-10-26 15:03:32 -04:00
Aaron Boodman
4e7584bad0
travis: I am full of hate
2015-10-26 11:40:38 -07:00
Aaron Boodman
78c2f85bc9
travis: I think the "secure" key is overriding the other keys.
2015-10-26 11:36:42 -07:00
Ben Kalman
358c0e20e0
Merge pull request #480 from kalman/newset-commit
...
Add initial version of the new chunked Set implementation.
2015-10-26 11:17:24 -07:00
Benjamin Kalman
f08056555a
Add initial version of the new chunked Set implementation.
...
So far:
- It does not support Put. It can only be constructed with a SetBuilder,
then queried e.g. Has.
- It only supports ref.Refs as values.
- I'm not convinced about the naming. Perhaps SetChunker rather than
SetBuilder, FlatLevel rather that FlatSet, etc. I expect they will change.
- The test is fairly simplistic but there isn't much point testing this
exhaustively, since once we support mutation, the testing abstraction
will probably be with an Iterator.
2015-10-26 11:15:27 -07:00
Aaron Boodman
20b2839812
travis: stab in the dark to silence PR notifications
2015-10-26 11:02:25 -07:00
Rafael Weinstein
25d2dda92d
Merge pull request #472 from rafael-atticlabs/asyncAwait
...
use async/await in js2
2015-10-26 10:37:50 -07:00
Rafael Weinstein
b551efd088
use async/await in js2
2015-10-26 10:34:33 -07:00
Erik Arvidsson
7964ca5746
Merge pull request #471 from arv/ref-target
...
Fix types.Ref and RefKind objects
2015-10-26 11:21:35 -04:00
Erik Arvidsson
1d13a878c4
Fix types.Ref and RefKind objects
...
Ref Values now have a TargetRef() method that returns the ref.Ref of
the target the Value is referencing.
Note: This is a breaking change. In old code the Ref() of the Value was
the Ref of the underlying target.
Fixes #464
2015-10-26 11:18:02 -04:00
Erik Arvidsson
966239ddac
Merge pull request #466 from arv/list-leaf-no-future
...
Change List to not use futures
2015-10-26 10:12:27 -04:00
Erik Arvidsson
d9a93a4751
Remove compound list
2015-10-26 09:57:53 -04:00
Erik Arvidsson
6c7864edbe
Change List to not use futures
...
This disables the compound list creation and its related tests
2015-10-26 09:34:54 -04:00
Aaron Boodman
e7a9262ae7
js2: more travis experimentation
2015-10-23 22:04:55 -07:00
Aaron Boodman
ca827c3426
travis.yml: dump version of node
2015-10-23 17:33:19 -07:00
cmasone-attic
b4ff838d62
Merge pull request #474 from cmasone-attic/onepkg
...
Changes codegen.go to emit all code in a single Go package
Fixes #467
2015-10-23 17:32:29 -07:00
Aaron Boodman
3e57e2982a
sudo always fixes it
2015-10-23 17:23:27 -07:00
Aaron Boodman
778db4a4ff
js2/travis: try to update node version - no way this is going to work
2015-10-23 17:18:44 -07:00
Chris Masone
2cd6831598
Changes codegen.go to emit all code in a single Go package
...
Fixes #467
2015-10-23 16:42:54 -07:00
Chris Masone
65c5b5c424
generated code
2015-10-23 16:33:52 -07:00
Aaron Boodman
3596bbe9c9
js2: fix the build
2015-10-23 15:22:50 -07:00
Aaron Boodman
ae12c778c2
js2: add different purposeful failure
2015-10-23 15:19:50 -07:00