Commit graph

891 commits

Author SHA1 Message Date
Emily Toop
2ab340155a Add iOS build task 2018-08-08 16:29:36 +01:00
Emily Toop
148fdd4aa4 Add iOS build task 2018-08-08 15:52:30 +01:00
Emily Toop
468899d36e Add iOS build task 2018-08-08 15:13:09 +01:00
Emily Toop
d724cc03fe Add iOS build task 2018-08-08 15:02:56 +01:00
Emily Toop
2ddb5fd3f4 Add iOS build task 2018-08-08 14:53:56 +01:00
Emily Toop
9d4892a1c1 Add iOS build task 2018-08-08 14:46:29 +01:00
Emily Toop
2bf95b6d1b Add iOS build task 2018-08-08 14:42:01 +01:00
Emily Toop
0ed6001857 Add iOS build task 2018-08-08 14:41:37 +01:00
Emily Toop
9154303fa1 Add iOS build task 2018-08-08 14:32:31 +01:00
Emily Toop
49c24af9cc Add iOS build task 2018-08-08 13:57:59 +01:00
Emily Toop
5bcbfd41b2 Add iOS build task 2018-08-08 12:07:25 +01:00
Emily Toop
cf79e98296 Add iOS build task 2018-08-08 12:04:20 +01:00
Emily Toop
fda02a6364 Add iOS build task 2018-08-08 11:58:41 +01:00
Emily Toop
3b90e376b9 Add iOS build task 2018-08-08 11:21:08 +01:00
Emily Toop
5180a3f899 Add iOS build task 2018-08-07 18:53:55 +01:00
Emily Toop
3f7e808f4b Add iOS build task 2018-08-07 18:48:41 +01:00
Emily Toop
a5fd51f6be Add iOS build task 2018-08-07 17:41:47 +01:00
Emily Toop
5e2e381125 Add iOS build task 2018-08-07 17:40:25 +01:00
Emily Toop
21e9e9a229 Add iOS build task 2018-08-07 17:10:44 +01:00
Emily Toop
120326ae75 Add iOS build task 2018-08-07 16:37:14 +01:00
Emily Toop
a121f2a0eb Add iOS build task 2018-08-07 15:42:53 +01:00
Emily Toop
76d1acdedf Add iOS build task 2018-08-07 15:07:24 +01:00
Emily Toop
06ea759fca Add iOS build task 2018-08-07 15:04:38 +01:00
Emily Toop
7900da614c Remove superflous script 2018-08-07 15:02:58 +01:00
Emily Toop
b4a50767c6 Add android build step 2018-08-07 14:55:33 +01:00
Emily Toop
92f7a527f0 Move test to script 2018-08-07 11:27:35 +01:00
Emily Toop
70501eb720 Make Rust a section 2018-08-07 11:24:47 +01:00
Grisha Kruglov
f8478835a2 Use crates.io version of the enum-set
rnewman upstreamed his changes in https://github.com/contain-rs/enum-set/pull/20
2018-08-03 15:41:19 -07:00
Nick Alexander
79113498e7 [automation] Split into generic and Mentat-specific Docker images. 2018-08-03 12:53:22 -07:00
Nick Alexander
b5d0e12a24 [automation] Re-add project-specific Mentat Docker image. 2018-08-03 12:53:01 -07:00
Nick Alexander
814ab19ecb [automation] Move project-agnostic Dockerfile into subdirectory.
Docker is directory oriented so we have to play along.
2018-08-03 12:53:01 -07:00
Nick Alexander
0cb8227750 [automation] Be project agnostic; use armv7-linux-androideabi; install Android standalone toolchains.
This is ready for Android Rust-y components: it no longer references Mentat.

The standalone toolchains are installed into
$ANDROID_NDK_TOOLCHAIN_DIR/arch-$ANDROID_NDK_API_VERSION.
2018-08-03 12:53:01 -07:00
Nick Alexander
f747e2e550 [sdks/android] Pre: Disable testCaching for frequent intermittent failures. 2018-08-03 12:53:01 -07:00
Nick Alexander
5b4f50ce1b Fix vcsTag, yet again. 2018-07-31 14:42:08 -07:00
Nick Alexander
3cd61a0c93 Fix vcsTag, again. 2018-07-31 14:05:55 -07:00
Nick Alexander
65e9822ad6 Bump to version 0.11.0. 2018-07-31 09:59:18 -07:00
Nick Alexander
4325d6c0c3 [sdks/android] Move main Mentat Android SDK tests from androidTest to test.
This leverages JNA to test the Android SDK on the host machine using
Robolectric, which is significantly faster and easier to debug than
the equivalent on-device instrumentation tests.

We'll still want instrumentation smoke tests, but they won't need to
cover the entire range of the Android SDK.
2018-07-31 09:54:29 -07:00
Nick Alexander
e06bfd1b7d [sdks/android] Workaround Android Studio JUnit test runner runtime classpath issue. 2018-07-27 10:43:53 -07:00
Nick Alexander
a7d2057bc6 [sdks/android] Post: Address most Android Studio complaints.
The only ones I cared about were unchecked access, but while I'm here,
might as well do most of them.
2018-07-27 10:43:53 -07:00
Nick Alexander
2978ad91c0 [sdks/android] Part 3: Finish conversion to Robolectric. 2018-07-27 10:43:53 -07:00
Nick Alexander
190e05e360 [sdks/android] Part 2: Replace Expectation/wait/notify with CountDownLatch.
Locally, I witnessed very slow tests.  Profiling with Visual VM
revealed a lot of time spent in `wait`.

Digging in, we were trying to be clever, with a `wait(1000)/notify`
mechanism.  However, there were never multiple threads in play, so the
waiter wasn't waiting when `notify` was invoked.  That means we always
timed out.  I think this never worked and using bare `wait()` would
have revealed that.

Anyway, `CountDownLatch` maintains the one bit of state (was I
notified) and generalizes smoothly to when we have threads.
2018-07-27 10:43:53 -07:00
Nick Alexander
d23f2b373a [sdks/android] Include vcsTag when uploading to bintray. 2018-07-27 10:43:52 -07:00
Nick Alexander
6856462f1b [sdks/android] Part 1: Move androidTest to test. 2018-07-27 10:43:52 -07:00
Grisha Kruglov
536d40ad84 Part 4: Add support for moving transactions off of main timeline 2018-07-26 17:14:05 -07:00
Grisha Kruglov
4ec780c87a Part 3: Use a view to derive parts table
Being able to derive partition map from partition definitions and current
state of the world (transactions), segmented by timelines, is useful
because it lets us not worry about keeping materialized partition maps
up-to-date - since there's no need for materialized partition maps at that point.

This comes in very handy when we start moving chunks of transactions off of our mainline.
Alternative to this work would look like materializing partition maps per timeline,
growing support for incremental "backwards update" of the materialized maps, etc.

Our core partitions are defined in 'known_parts' table during bootstrap,
and what used to be 'parts' table is a generated view that operates over
transactions to figure out partition index.

'parts' is defined for the main timeline. Querying parts for other timelines
or for particular timeline+tx combinations will look similar.
2018-07-26 17:14:05 -07:00
Grisha Kruglov
3ca5255cde Part 2: Add basic support for timelines to the transactor
This records transactions onto a default timeline (0).
2018-07-26 17:14:05 -07:00
Grisha Kruglov
0974108a52 Part 1: Allow specifying transactor's commit behaviour
Normally we want to both materialize our changes (into 'datoms')
as well as commit source transactions into 'transactions' table.

However, when moving transactions from timeline to timeline
we don't want to persist artifacts (rewind assertions), just their
materializations.

This patch expands the 'db' interface to allow for this split,
and changes transactor's functions to take a crate-private 'action'
which defines desired behaviour.
2018-07-26 17:14:05 -07:00
Grisha Kruglov
5a29efa336 Part 0: Allow retractions of installed attributes
This is necessary for the timelines work ahead. When schema is being
moved off of a main timeline, we need to be able to retract it cleanly.

Retractions are only processed if the whole defining attribute set
is being retracted at once (:db/ident, :db/valueType, :db/cardinality).
2018-07-26 17:14:05 -07:00
Grisha Kruglov
9a47d8905f Pre: 'Into' implementation chaining TermWithoutTempIds -> TermWithTempIds -> TermWithTempIdsAndLookupRefs 2018-07-26 17:14:05 -07:00
Nick Alexander
e6066769ca Pre: Differentiate bad attribute retractions from unrecognized retractions. 2018-07-26 17:14:05 -07:00