From 5fd826d79af7b70e89004c7448cc917ef1c6722f Mon Sep 17 00:00:00 2001 From: Anand Krishnamoorthi <35780660+anakrish@users.noreply.github.com> Date: Thu, 8 Feb 2024 06:56:14 -0800 Subject: [PATCH] Update docs (#136) * Add `time` to opa.passing. Disable WASM from rust.yml Bindings will be tested using a separate workflow. Also remove scripts that are no longer useful Signed-off-by: Anand Krishnamoorthi * Remove alpha tag from version Signed-off-by: Anand Krishnamoorthi --------- Signed-off-by: Anand Krishnamoorthi --- .github/workflows/rust.yml | 14 +++++++------- Cargo.toml | 2 +- README.md | 1 - scripts/pre-push | 2 +- scripts/yaml-test-eval | 8 -------- scripts/yaml-test-parse | 8 -------- tests/opa.passing | 1 + 7 files changed, 10 insertions(+), 26 deletions(-) delete mode 100755 scripts/yaml-test-eval delete mode 100755 scripts/yaml-test-parse diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3b9c686..6d691ce 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -36,12 +36,12 @@ jobs: run: cargo test -r --test aci - name: Run tests (OPA Conformance) run: >- - cargo test -r --test opa -- $(tr '\n' ' ' < tests/opa.passing) + cargo test -r --test opa --features opa-testutil -- $(tr '\n' ' ' < tests/opa.passing) - - name: Install wasm-pack - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + # - name: Install wasm-pack + # run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - - name: Run wasm binding tests - run: | - cd bindings/wasm - wasm-pack test --node -r + # - name: Run wasm binding tests + # run: | + # cd bindings/wasm + # wasm-pack test --node -r diff --git a/Cargo.toml b/Cargo.toml index 0f4e928..7b3a7c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ members = [ [package] name = "regorus" description = "A fast, lightweight Rego (OPA policy language) interpreter" -version = "0.1.0-alpha.3" +version = "0.1.0" edition = "2021" license-file = "LICENSE" repository = "https://github.com/microsoft/regorus" diff --git a/README.md b/README.md index 66606e7..6e59529 100644 --- a/README.md +++ b/README.md @@ -269,7 +269,6 @@ The following test suites don't pass fully due to mising builtins: - `regometadatarule` - `regoparsemodule` - `rendertemplate` -- `time` They are captured in the following [github issues](https://github.com/microsoft/regorus/issues?q=is%3Aopen+is%3Aissue+label%3Alib). diff --git a/scripts/pre-push b/scripts/pre-push index 98774d1..b08b9ad 100755 --- a/scripts/pre-push +++ b/scripts/pre-push @@ -16,5 +16,5 @@ if [ -f Cargo.toml ]; then fi # Ensure that OPA conformance tests don't regress. - cargo test -r --test opa -- $(tr '\n' ' ' < tests/opa.passing) + cargo test -r --features opa-testutil --test opa -- $(tr '\n' ' ' < tests/opa.passing) fi diff --git a/scripts/yaml-test-eval b/scripts/yaml-test-eval deleted file mode 100755 index 7bc185c..0000000 --- a/scripts/yaml-test-eval +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. - -set -e -yaml=$(realpath -e $1) - -RUST_BACKTRACE=1 cargo test interpreter::one_yaml -- --include-ignored --nocapture "$yaml" diff --git a/scripts/yaml-test-parse b/scripts/yaml-test-parse deleted file mode 100755 index d14213e..0000000 --- a/scripts/yaml-test-parse +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. - -set -e -yaml=$(realpath -e $1) - -RUST_BACKTRACE=1 cargo test parser::one_yaml -- --include-ignored --nocapture "$yaml" diff --git a/tests/opa.passing b/tests/opa.passing index 833babd..013e54d 100644 --- a/tests/opa.passing +++ b/tests/opa.passing @@ -95,6 +95,7 @@ subset toarray topdowndynamicdispatch toset +time trim trimleft trimprefix