Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify csharp project so package supports both x64 and arm64 under macOS #2

Open
wants to merge 57 commits into
base: dotnet-support
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
ec7eff2
Modify csharp project so package supports both x64 and arm64 under ma…
bbatchelder Apr 26, 2022
a933698
Fixed bug in Query.HandleNextExternal null handling
bbatchelder May 16, 2022
74a4f22
Fix bug in partial, partial unification (#1467)
dhatch Jan 6, 2022
da69912
0.25.1 (#1471)
dhatch Jan 7, 2022
7c04e0a
Changelog is not draft. (#1477)
dhatch Jan 7, 2022
fdf91eb
Add jobs to ReadMe (#1476)
gneray Jan 10, 2022
ad90b77
Add retry step in flaky docs preview step. (#1474)
dhatch Jan 10, 2022
b101fee
Publish release job now marks release as latest. (#1475)
dhatch Jan 10, 2022
8ad0dae
Deprecate @python_class decorator (#1473)
patrickod Jan 10, 2022
05fb119
Prefer Display to ToPolarString (#1478)
gj Jan 10, 2022
e439d7b
Fix docs-preview workflow syntax (#1479)
gj Jan 10, 2022
716e854
Correctly flatten extended dot paths in isa/cc (#1480)
Jan 11, 2022
da03981
Fix docs links (#1483)
gj Jan 11, 2022
0605490
Dependency sort DF relations in core (#1484)
Jan 11, 2022
5dbfe73
Clippy for 1.58.0 (#1486)
gj Jan 13, 2022
e31b384
Arc tangent (#1463)
gj Jan 14, 2022
840a883
Don't need Debug for Source (#1487)
gj Jan 14, 2022
f11e45b
Add OperationalError::UnexpectedValue (#1490)
gj Jan 17, 2022
4f7362e
fix: go mod vendoring on macos (#1492)
sourcec0de Jan 17, 2022
1b61646
[vscode] Support multiple project roots (#1494)
gj Jan 18, 2022
4073a62
Remove docs CTAs and update RBAC title. (#1498)
dhatch Jan 19, 2022
1eb061e
new data filtering for node (#1481)
saolsen Jan 19, 2022
df780d6
Constrain Go instance type equality to exact matches (#1468)
patrickod Jan 19, 2022
701bf33
Run new Go lib tests in Create Release job (#1502)
gj Jan 20, 2022
0ddd9b0
DF tests for Go (#1489)
Jan 20, 2022
192dcd4
Update README.md (#1504)
ssglaser Jan 21, 2022
028efe3
Add cloud to docs. (#1506)
dhatch Jan 22, 2022
621d0e7
Pin asgiref test dependency for django-oso since latest version doesn…
gj Jan 24, 2022
eaec29e
Remove v1 DF API from Python and Ruby (#1497)
Jan 24, 2022
91c7b24
Look up relations on bound queries (#1505)
Jan 24, 2022
c6cf95d
Split Go lib test dependencies into separate module (#1501)
gj Jan 24, 2022
782a5e3
{Python,Ruby,JS}: Add `class_id` information to ExternalInstance valu…
patrickod Jan 24, 2022
b402595
disable data filtering on windows (#1510)
saolsen Jan 25, 2022
39f8572
new data filtering guide for all langs (#1500)
saolsen Jan 25, 2022
5042e65
0.26.0 (#1508)
gj Jan 25, 2022
3484908
Change cloud page. (#1512)
dhatch Jan 25, 2022
a8ff69e
Remove obsolete example from Python docs (#1517)
lafrech Jan 26, 2022
a9c1f01
change var name in docs (#1519)
Jan 31, 2022
06b22eb
Remove long constant from ruby API documentation. (#1527)
dhatch Feb 14, 2022
b55a23d
Quick link fix on polar foundations page (#1530)
gkaemmer Feb 16, 2022
c65d54a
Couple of small docs fixes. (#1533)
samscott89 Feb 23, 2022
588d544
Add redirect (#1537)
gj Mar 2, 2022
40330ef
Update logo (#1545)
gkaemmer Mar 22, 2022
eeec9b9
Add a few links to Oso Cloud docs and microservices Authz Academy cha…
gkaemmer Apr 7, 2022
95fa07d
(Java): Support M1 (#1518)
hobofan Apr 8, 2022
6bdc4ae
refactor: simplify logical expression using De Morgan identities (#1557)
kkirsche Apr 11, 2022
721fca4
refactor: prefer yield from over looping in lexer (#1556)
Apr 12, 2022
dc8698b
Update CLA allowlist
gj Apr 13, 2022
c12a268
Make polar-language-server out dir customizable (#1558)
vrama628 Apr 13, 2022
4339c20
[Django] Use name of variable instead of Python variable repr. (#1568)
samscott89 Apr 28, 2022
d949926
Combined sqlalchemy bugfixes & changelog entry (#1534)
patrickod Apr 28, 2022
8953268
Update calendly links in library docs (#1560)
gkaemmer Apr 29, 2022
3b0475f
Remove use of deprecated __ident_func__ from Werkzeug (#1559)
gkaemmer Apr 29, 2022
ab64750
Add Rust lang support for the new 1.0 verion of the uuid crate. (#1562)
VegetarianOrc May 3, 2022
a455057
bump and changelog (#1570)
saolsen May 5, 2022
d051043
Updated version for nuget package to 0.26.1-dev.1
bbatchelder May 16, 2022
879b572
Merge branch 'iinuwa:dotnet-support' into dotnet-support
bbatchelder May 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
remote-repository-name: cla-signatures
path-to-signatures: individual.json
branch: main
allowlist: dhatch,gj,gkaemmer,gneray,leina05,litonico,samscott89,saolsen,ssglaser,patrickod,gw000
allowlist: gj,gkaemmer,gneray,gw000,kreuter,laxjesse,litonico,patrickod,samscott89,saolsen,ssglaser,sverch,vrama628
use-dco-flag: false
create-file-commit-message: 'Creating file for storing CLA signatures'
signed-commit-message: '$contributorName has signed the CLA in osohq/oso#$pullRequestNo'
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ jobs:
run: |
wget https://github.com/bep/s3deploy/releases/download/v2.4.0/s3deploy_2.4.0_Linux-64bit.deb
sudo dpkg -i s3deploy_2.4.0_Linux-64bit.deb
# This step flakes sometime as in this run:
# https://github.com/osohq/oso/runs/4743006731?check_suite_focus=true
# This slows down releasing.
# Try to retry, and get some more info about why the flake is happening.
- name: Build docs for CI preview
run: make deploy-ci DOCS_TAG=${{ env.BRANCH_NAME }}
working-directory: docs
uses: nick-invision/retry@v2
with:
max_attempts: 2
timeout_minutes: 4
command: make -C docs deploy-ci DOCS_TAG=${{ env.BRANCH_NAME }}
on_retry_command: ls docs/examples/quickstart/ruby
8 changes: 4 additions & 4 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ on:
description: "docs s3 path (docs.oso.dev or docs-preview.oso.dev)"
oso_version:
description: "oso release to build docs for"
default: "0.25.0" # oso_version
default: "0.26.1" # oso_version
flask_oso_version:
description: "flask oso release to build docs for"
default: "0.25.0" # flask_oso_version
default: "0.26.0" # flask_oso_version
django_oso_version:
description: "django oso release to build docs for"
default: "0.25.0" # django_oso_version
default: "0.26.0" # django_oso_version
sqlalchemy_oso_version:
description: "sqlalchemy oso release to build docs for"
default: "0.25.0" # sqlalchemy_oso_version
default: "0.26.0" # sqlalchemy_oso_version
jobs:
publish:
name: Publish docs
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ on:
description: "Version Number"
required: true
jobs:
mark-latest:
# Mark the release about to be published as latest.
runs-on: ubuntu-latest
steps:
- name: Mark release as latest
uses: tubone24/[email protected]
with:
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: "v${{ github.event.inputs.version }}"
go:
# Notifies the go-oso repo there's a new release.
# CI over there then pulls this tag, commits and pushes their own tag.
Expand Down
44 changes: 25 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ jobs:
run: mv target/aarch64-apple-darwin/release/libpolar.a target/aarch64-apple-darwin/release/libpolar-macOS-arm.a
- name: Rename dynamic lib
run: mv target/aarch64-apple-darwin/release/libpolar.dylib target/aarch64-apple-darwin/release/libpolar-arm.dylib
- name: Merge dynamic libs into fat dynamic lib
run: lipo -create target/release/libpolar.dylib target/aarch64-apple-darwin/release/libpolar-arm.dylib -output target/libpolar-fat.dylib
- uses: actions/upload-artifact@v2
with:
name: oso_library
Expand All @@ -120,6 +122,10 @@ jobs:
with:
name: oso_library
path: target/aarch64-apple-darwin/release/libpolar-arm.dylib
- uses: actions/upload-artifact@v2
with:
name: oso_library
path: target/libpolar-fat.dylib
- uses: actions/upload-artifact@v2
with:
name: oso_static_library
Expand Down Expand Up @@ -236,7 +242,7 @@ jobs:
mkdir -p languages/java/oso/src/main/resources/linux
cp -r oso_library/libpolar.so languages/java/oso/src/main/resources/linux/
mkdir -p languages/java/oso/src/main/resources/macos
cp -r oso_library/libpolar.dylib languages/java/oso/src/main/resources/macos/
cp -r oso_library/libpolar-fat.dylib languages/java/oso/src/main/resources/macos/libpolar.dylib
mkdir -p languages/java/oso/src/main/resources/win
cp -r oso_library/polar.dll languages/java/oso/src/main/resources/win/
- name: Test
Expand Down Expand Up @@ -537,7 +543,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-11, windows-latest]
go-version: ["1.12", "1.13", "1.14", "1.15", "1.16", "1.17"]
go-version: ["1.14", "1.15", "1.16", "1.17"]
steps:
- uses: actions/checkout@v2
- name: Set version env
Expand All @@ -552,23 +558,21 @@ jobs:
with:
name: go
- name: "test"
env:
POLAR_IGNORE_NO_ALLOW_WARNING: 1
run: |
go build
go test -v ./tests/
go test -v ./internal/host
cd tests && go test -v

working-directory: go
- name: "test musl"
# TODO(gj): the dependency fetching step in the
# tetafro/golang-gcc:1.12-alpine image seems to require Git (unlike Go
# versions 1.13 -> 1.17), and the image doesn't contain Git. We could
# create our own image that extends tetafro/golang-gcc:1.12-alpine and
# contains Git, but for now I'm skipping it.
if: runner.os == 'Linux' && matrix.go-version != '1.12'
run: docker run --rm -v `pwd`:/oso tetafro/golang-gcc:${{ matrix.go-version }}-alpine /bin/sh -c 'cd /oso && go test -v ./tests/'
if: runner.os == 'Linux'
run: docker run --rm --env POLAR_IGNORE_NO_ALLOW_WARNING=1 -v `pwd`:/oso tetafro/golang-gcc:${{ matrix.go-version }}-alpine /bin/sh -c 'cd /oso && go test -v ./internal/host && cd tests && go test -v'
working-directory: go
# TODO(steve) buster has the same problem on 1.12. But is it the same problem???
- name: "test buster"
if: runner.os == 'Linux' && matrix.go-version != '1.12'
run: docker run --rm -v `pwd`:/oso golang:${{ matrix.go-version }}-buster /bin/sh -c 'cd /oso && go test -v ./tests/'
if: runner.os == 'Linux'
run: docker run --rm --env POLAR_IGNORE_NO_ALLOW_WARNING=1 -v `pwd`:/oso golang:${{ matrix.go-version }}-buster /bin/sh -c 'cd /oso && go test -v ./internal/host && cd tests && go test -v'
working-directory: go

validate_go_macos_arm:
Expand All @@ -591,9 +595,11 @@ jobs:
- name: "test"
run: |
~/go/bin/go${{ matrix.go-version }} build
~/go/bin/go${{ matrix.go-version }} test -v ./tests/
~/go/bin/go${{ matrix.go-version }} test -v ./internal/host
cd tests && ~/go/bin/go${{ matrix.go-version }} test -v
working-directory: go
env:
POLAR_IGNORE_NO_ALLOW_WARNING: 1
CGO_ENABLED: 1
GOOS: darwin
GOARCH: arm64
Expand Down Expand Up @@ -730,7 +736,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Set version env
Expand Down Expand Up @@ -927,10 +933,10 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
- name: Use Python 3.6
- name: Use Python 3.7
uses: actions/setup-python@v1
with:
python-version: "3.6"
python-version: "3.7"
- name: Use Ruby 2.4
uses: ruby/setup-ruby@v1
with:
Expand All @@ -951,10 +957,10 @@ jobs:
profile: minimal
toolchain: stable
override: true
- name: Use Go 1.12
- name: Use Go 1.14
uses: actions/setup-go@v2
with:
go-version: "1.12"
go-version: "1.14"
- name: Run quickstart tests
run: make -C docs test-quickstarts-release

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
args: --all-features --all-targets -- -D warnings

## Check Python
- name: Install Python 3.6
- name: Install Python 3.7
uses: actions/setup-python@v1
with:
python-version: "3.6"
python-version: "3.7"
- name: Install Python formatter
run: pip install black
- name: Check Python formatting
Expand Down Expand Up @@ -335,10 +335,10 @@ jobs:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Use Go 1.12
- name: Use Go 1.14
uses: actions/setup-go@v2
with:
go-version: "1.12"
go-version: "1.14"
- name: Test go
run: make go-test

Expand All @@ -358,10 +358,10 @@ jobs:
${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-test-

- name: Install Python 3.6
- name: Install Python 3.7
uses: actions/setup-python@v1
with:
python-version: "3.6"
python-version: "3.7"

- name: install aspell
run: sudo apt-get install aspell
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,5 @@ polar-wasm-api/pkg/*
# Algolia tool
docs/searcher
docs/search/vendor/*

.nvmrc
65 changes: 65 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"python.formatting.provider": "black",
"oso.polarLanguageServer.metrics.enabled": "off",
"oso.polarLanguageServer.projectRoots": [
// This is the full set of folders (currently) that have policies
// `fd -e polar | rg ".*/" -o | sort -u`
//
// We cannot enable them all, or we would have 50 versions of
// the extension running. You can uncomment one if you're working on it
//
// "docs/examples/add-to-your-application/",
// "docs/examples/add-to-your-application/go/",
// "docs/examples/add-to-your-application/node/",
// "docs/examples/add-to-your-application/python/",
// "docs/examples/add-to-your-application/ruby/",
// "docs/examples/context/",
// "docs/examples/data_access/django/example/app/policy/",
// "docs/examples/data_access/sqlalchemy/sqlalchemy_example/",
// "docs/examples/data_filtering/",
// "docs/examples/gitclub/backends/express-typeorm/src/",
// "docs/examples/gitclub/backends/flask-sqlalchemy-oso/app/",
// "docs/examples/gitclub/backends/flask-sqlalchemy/app/",
// "docs/examples/gitclub/backends/rails/app/policy/",
// "docs/examples/inheritance/",
// "docs/examples/quickstart/go/",
// "docs/examples/quickstart/java/src/main/java/quickstart/",
// "docs/examples/quickstart/nodejs/",
// "docs/examples/quickstart/python/app/",
// "docs/examples/quickstart/ruby/",
// "docs/examples/quickstart/rust/",
// "docs/examples/rbac/",
// "docs/examples/rbac/go/",
// "docs/examples/rbac/java/",
// "docs/examples/rbac/nodejs/",
// "docs/examples/rbac/python/",
// "docs/examples/rbac/ruby/",
// "docs/examples/user_types/java/",
// "docs/examples/user_types/nodejs/",
// "docs/examples/user_types/python/",
// "docs/examples/user_types/ruby/",
// "languages/go/",
// "languages/go/tests/",
// "languages/go/tests/other/",
// "languages/java/oso/src/test/java/com/osohq/oso/",
// "languages/java/oso/src/test/java/com/osohq/oso/other/",
// "languages/java/oso/src/test/resources/",
// "languages/python/django-oso/tests/",
// "languages/python/django-oso/tests/test_app/policy/",
// "languages/python/flask-oso/tests/",
// "languages/python/oso/tests/",
// "languages/python/oso/tests/other/",
// "languages/python/oso/tests/parity/policies/",
// "languages/ruby/spec/oso/polar/",
// "languages/ruby/spec/oso/polar/data_filtering/",
// "languages/ruby/spec/oso/polar/other/",
// "languages/rust/",
// "languages/rust/oso/",
// "languages/rust/oso/tests/",
// "languages/rust/oso/tests/other/",
"polar-core",
"test",
// "vscode/oso/test-fixtures/workspace/a/",
// "vscode/oso/test-fixtures/workspace/b/",
]
}
33 changes: 27 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading