Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1108 from holochain/release-0.0.6-alpha
Browse files Browse the repository at this point in the history
release 0.0.6
  • Loading branch information
Connoropolous committed Mar 12, 2019
2 parents 515e572 + 5ccc34e commit 974dc0d
Show file tree
Hide file tree
Showing 260 changed files with 7,075 additions and 10,503 deletions.
2 changes: 1 addition & 1 deletion .circleci/Dockerfile.01.warm.nix
@@ -1,4 +1,4 @@
FROM holochain/holochain-rust:circle.00.start
FROM holochain/holochain-rust:circle..start

# run a no-op to warm the nix store
RUN nix-shell --run "echo 1" --show-trace --max-jobs 4 --cores 0
63 changes: 58 additions & 5 deletions .circleci/config.yml
Expand Up @@ -21,7 +21,7 @@ jobs:
app-spec-tests:
docker:
- image: holochain/holochain-rust:circle.zz.end
resource_class: large
resource_class: xlarge
steps:
- checkout

Expand Down Expand Up @@ -68,34 +68,66 @@ jobs:
steps:
- checkout
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run: docker pull holochain/holochain-rust:circle..start
- run: docker build -f .circleci/Dockerfile.01.warm.nix -t holochain/holochain-rust:circle.01.warm.nix .
- run: docker push holochain/holochain-rust:circle.01.warm.nix
docker.02:
machine: true
steps:
- checkout
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run: docker pull holochain/holochain-rust:circle.01.warm.nix
- run: docker build -f .circleci/Dockerfile.02.warm.tests -t holochain/holochain-rust:circle.02.warm.tests .
- run: docker push holochain/holochain-rust:circle.02.warm.tests
docker.03:
machine: true
steps:
- checkout
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run: docker pull holochain/holochain-rust:circle.02.warm.tests
- run: docker build -f .circleci/Dockerfile.03.warm.tools -t holochain/holochain-rust:circle.03.warm.tools .
- run: docker push holochain/holochain-rust:circle.03.warm.tools
docker.end:
machine: true
steps:
- checkout
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run: docker pull holochain/holochain-rust:circle.03.warm.tools
- run: docker build -f .circleci/Dockerfile.zz.end -t holochain/holochain-rust:circle.zz.end -t holochain/holochain-rust:develop .
- run: docker push holochain/holochain-rust:circle.zz.end
- run: docker push holochain/holochain-rust:develop
- run: docker push holochain/holochain-rust:latest

cold.ubuntu:
cold.ubuntu.bionic:
docker:
- image: ubuntu:bionic
resource_class: large
steps:
- checkout
- run: . ./scripts/install/auto.sh
- run: make test

cold.ubuntu.xenial:
docker:
- image: ubuntu:xenial
resource_class: large
steps:
- checkout
- run: . ./scripts/install/auto.sh
- run: make test

cold.debian.stable:
docker:
- image: ubuntu
- image: debian:stable
resource_class: large
steps:
- checkout
- run: . ./scripts/install/auto.sh
- run: make test

cold.mac:
macos:
xcode: "10.2.0"
steps:
- checkout
- run: . ./scripts/install/auto.sh
Expand All @@ -110,9 +142,30 @@ workflows:
- app-spec-tests
- cli-tests

cold:
cold.ubuntu:
jobs:
- cold.ubuntu.bionic:
filters:
branches:
only:
- develop
- cold.ubuntu.xenial:
filters:
branches:
only:
- develop

cold.debian:
jobs:
- cold.debian.stable:
filters:
branches:
only:
- develop

cold.mac:
jobs:
- cold.ubuntu:
- cold.mac:
filters:
branches:
only:
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Expand Up @@ -25,9 +25,9 @@ cobertura.xml
\#*\#

# Things being generated on the FS that should not be
conductor/example-config/tmp-storage/*
conductor/example-config/tmp-storage*/*
conductor/tmp-storage/*
conductor_api/tmp-storage/*
conductor_api/tmp-test/*
tmp-test-conductor-config.toml
tmp-*-conductor-config.toml
tmp-*-conductor-config.toml
57 changes: 22 additions & 35 deletions .travis.yml
Expand Up @@ -46,13 +46,11 @@ _windows_template: &_windows_template
- PATH="$PATH:/c/Program Files (x86)/Nodist/bin"

_unix_nodejs_conductor_template: &_unix_nodejs_conductor_template
before_install:
# install our own nodejs to get a reasonable version
install:
# install our own nodejs to get the correct version to create a build for
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.10.1
- export PATH=$HOME/.yarn/bin:$PATH
# script:
# - RUST_SODIUM_DISABLE_PIE=2 make build_nodejs_conductor
# manually cache as we manually install rustup
# https://docs.travis-ci.com/user/caching/#rust-cargo-cache
cache:
Expand All @@ -69,15 +67,15 @@ _linux_nodejs_template: &_linux_nodejs_template
dist: bionic
language: rust
rust: nightly-2019-01-24
before_script:
- . ./scripts/install/release-deps-ubuntu.sh
before_install:
- . ./scripts/install/auto.sh

_macosx_nodejs_template: &_macosx_nodejs_template
os: osx
language: rust
rust: nightly-2019-01-24
before_script:
- . ./scripts/install/release-deps-osx.sh
before_install:
- . ./scripts/install/auto.sh

_to_deploy_template: &_to_deploy_template
if: tag =~ /^holochain-nodejs-(test-\d+-)*v\d+\.\d+\.\d+-alpha/
Expand All @@ -86,22 +84,16 @@ _env_node_8_deploy_template: &_env_node_8_deploy_template
env:
- TRAVIS_NODE_VERSION="8"
- PERFORM_NODE_DEPLOY=1
- RUST_SODIUM_SHARED=1
- RUST_SODIUM_LIB_DIR=${TRAVIS_BUILD_DIR}/libsodium-1.0.16

_env_node_10_deploy_template: &_env_node_10_deploy_template
env:
- TRAVIS_NODE_VERSION="10"
- PERFORM_NODE_DEPLOY=1
- RUST_SODIUM_SHARED=1
- RUST_SODIUM_LIB_DIR=${TRAVIS_BUILD_DIR}/libsodium-1.0.16

_env_node_11_deploy_template: &_env_node_11_deploy_template
env:
- TRAVIS_NODE_VERSION="11"
- PERFORM_NODE_DEPLOY=1
- RUST_SODIUM_SHARED=1
- RUST_SODIUM_LIB_DIR=${TRAVIS_BUILD_DIR}/libsodium-1.0.16

_nodejs_deploy_template: &_nodejs_deploy_template
cache:
Expand All @@ -110,16 +102,7 @@ _nodejs_deploy_template: &_nodejs_deploy_template
directories:
- node_modules
script:
- cd $TRAVIS_BUILD_DIR
- wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.16.tar.gz
- tar -zxvf ./libsodium-1.0.16.tar.gz
- cd $TRAVIS_BUILD_DIR/libsodium-1.0.16
- ./configure
- make && make check
- sudo make install
- cd $TRAVIS_BUILD_DIR/nodejs_conductor
- yarn install --ignore-scripts
- node ./publish.js
- sh ./scripts/build_nodejs_conductor.sh
# deploy the node-pre-gyp binary to github releases so it's there when the npm package is installed
before_deploy:
# windows doesn't like absolute paths so set the working dir here
Expand All @@ -146,18 +129,16 @@ _windows_nodejs_conductor_template: &_windows_nodejs_conductor_template
- yarn config set python python2.7
- npm config set msvs_version 2015
- yarn config set msvs_version 2015 --global
script:
- sh ./scripts/build_nodejs_conductor.sh
# nodejs specific deployment templates stop here

# holochain-clie deploy template
# holochain-cli deploy template
_cli_deploy_template: &_cli_deploy_template
dist: bionic
language: rust
rust: nightly-2019-01-24
if: tag =~ /^(test-\d+-)*v\d+\.\d+\.\d+-alpha/
before_script:
- . ./scripts/install/release-deps-auto.sh
- . ./scripts/install/auto.sh
script:
- cargo rustc --manifest-path cli/Cargo.toml --target $TARGET --release -- -C lto
- mkdir cli-$TRAVIS_TAG-$TARGET
Expand All @@ -181,7 +162,7 @@ _conductor_deploy_template: &_conductor_deploy_template
rust: nightly-2019-01-24
if: tag =~ /^(test-\d+-)*v\d+\.\d+\.\d+-alpha/
before_script:
- . ./scripts/install/release-deps-auto.sh
- . ./scripts/install/auto.sh
script:
- cargo rustc --manifest-path conductor/Cargo.toml --target $TARGET --release -- -C lto
- mkdir conductor-$TRAVIS_TAG-$TARGET
Expand Down Expand Up @@ -318,12 +299,6 @@ jobs:
before_cache:
- rm -rf $HOME/.cargo/registry/index

#- name: cold os x
# os: osx
# script:
# - . ./scripts/install/auto.sh
# - make test

# holochain-cli releases section
- name: "CLI DEPLOY - 64 bit Linux"
<<: *_cli_deploy_template
Expand Down Expand Up @@ -433,6 +408,7 @@ jobs:
- NODIST_X64=1
- TRAVIS_NODE_VERSION="8"
- PERFORM_NODE_DEPLOY=1

- name: "Windows - Node 10"
<<: *_windows_template
<<: *_to_deploy_template
Expand All @@ -443,6 +419,7 @@ jobs:
- NODIST_X64=1
- TRAVIS_NODE_VERSION="10"
- PERFORM_NODE_DEPLOY=1

- name: "Windows - Node 11"
<<: *_windows_template
<<: *_to_deploy_template
Expand All @@ -453,3 +430,13 @@ jobs:
- NODIST_X64=1
- TRAVIS_NODE_VERSION="11"
- PERFORM_NODE_DEPLOY=1

- name: "Windows - Node 11 - DRY RUN"
<<: *_windows_template
<<: *_nodejs_deploy_template
<<: *_windows_nodejs_conductor_template
env:
- NODIST_PREFIX="/c/Program Files (x86)\Nodist"
- NODIST_X64=1
- TRAVIS_NODE_VERSION="11"
- PERFORM_NODE_DEPLOY=0
40 changes: 39 additions & 1 deletion CHANGELOG.md
Expand Up @@ -4,13 +4,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

### Changed

### Deprecated

### Removed

### Fixed

### Security


## [0.0.6-alpha] - 2019-03-11

### Changed
- Replaces libzmq (zeromq) with websockets for ipc communication to networking module [#1055](https://github.com/holochain/holochain-rust/pull/1055)
- Changes `apt-get` dependencies installed for libsodium across linux OS [#1105](https://github.com/holochain/holochain-rust/pull/1105)

### Removed
- Removes bespoke `rust_sodium-sys` crate (using upstream now) [#1105](https://github.com/holochain/holochain-rust/pull/1105)

### Added
- New network setting via environment variable HC_N3H_LOG_LEVEL [#1085](https://github.com/holochain/holochain-rust/pull/1085)
- Ability to sign data via `hdk::sign` using the agent key [PR#1080](https://github.com/holochain/holochain-rust/pull/1080)
- Adds PUBLIC_TOKEN global variable for use in hdk::call in calling public functions. [PR#895](https://github.com/holochain/holochain-rust/pull/895)
- Adds an [ADR](doc/architecture/decisions/0017-capabilities.md) for capabilities
- CrudStatus works over network [#1048](https://github.com/holochain/holochain-rust/pull/1048)
- Adds utils submodule of hdk which contains the following helper functions [#1006](https://github.com/holochain/holochain-rust/pull/10006):
- get_links_and_load_type - calls try_from for a given type when getting links
- get_as_type - Similar but for a single entry
- link_entries_bidir - Same as link_entries but creates link in both directions
- commit_and_link - Save a line and commit and link in a single function
- Adds a `call` route to the json rpc for the conductor for making zome calls [PR#1090](https://github.com/holochain/holochain-rust/pull/1090). Please note this route deprecates the `instance_id/zome/function` which will be removed in the future
- The `admin/dna/install_from_file` RPC method now takes an optional `expected_hash`, which performs an integrity check of the DNA file before installing it in the conductor [PR#1093](https://github.com/holochain/holochain-rust/pull/1093)
- Moves Crud Status tests to app_spec [#1096](https://github.com/holochain/holochain-rust/pull/1096)
- Adds cold build tests + support for debian and ubuntu xenial [#1105](https://github.com/holochain/holochain-rust/pull/1105)


### Fixed
- Validation of link entries gets retried now if base or target of the link were not yet accessible on the validating node. This fixes a bug where links have been invalid due to network timing issues [PR#1054](https://github.com/holochain/holochain-rust/pull/1054)
- Validation of any entry gets retried now if the validation package could not be retrieved from the source [PR#1059](https://github.com/holochain/holochain-rust/pull/1059)
- Scenario tests are more lenient to SyntaxError, TypeError, and other JS errors: buggy tests now merely fail rather than hanging indefinitely [#1091](https://github.com/holochain/holochain-rust/pull/1091)
- Fixes docker builds for `holochain/holochain-rust:develop` [#1107](https://github.com/holochain/holochain-rust/pull/1107)

## [0.0.5-alpha] - 2019-03-01

Expand All @@ -22,13 +59,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `bundle.json` & `.hcpkg` unified to `YOUR_DNA_NAME.dna.json`
- `.build` files renamed to `.hcbuild`
- `hc package` now builds to `dist` directory by default, to match how `hc test` works

### Removed
- Removes legacy docker files [PR#955](https://github.com/holochain/holochain-rust/pull/955)

### Added
- Adds a panic handler to HDK-Rust and that reroutes infos about panics happening inside the WASM Ribosome to the instances logger [PR#1029](https://github.com/holochain/holochain-rust/pull/1029)
- Adds cmake and qt to mac os x install script [PR#955](https://github.com/holochain/holochain-rust/pull/955)
- Adds the current git-commit hash to the compile code of the core, and checks (with warning) for the same hash that was used to compile the wasm [PR#1050](https://github.com/holochain/holochain-rust/pull/1036)
### Fixed

## [0.0.4-alpha] - 2019-02-15

Expand Down

0 comments on commit 974dc0d

Please sign in to comment.