-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Improved behavioral consistency between the database services (#673
) This PR contains a few fixes that where required to make the new compliance tests to pass: - Decimal precision behavior is aligned between the databases when defined - `@cap-js/hana` now properly supports scalar `SELECT` queries in the columns The goal of this PR is to remove as much dependencies as possible now that `cds@8` provides the `cds-test` command. - Removing `jest` by switching to `cds-test` - Removed `jest.config.js` files - Removing `chai` by switching to `cds-test` - Adjust all tests to fit with the `cds-test` `expect` pattern - Removing `HANA` test action - Move `HXE` Github action steps into a reuse file - Added a lock for `HANA` database creation - Added a fallback for `Postgres` during database creation - Removed compliance import tests - Added symbolic link to the compliance test folder --------- Co-authored-by: Daniel Hutzel <daniel.hutzel@sap.com> Co-authored-by: Johannes Vogel <31311694+johannes-vogel@users.noreply.github.com>
- Loading branch information
1 parent
6a03e8a
commit 5e62096
Showing
97 changed files
with
2,699 additions
and
8,695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: 'Start HANA' | ||
description: 'Starts an local HANA Express instance for isolated testing' | ||
inputs: | ||
GITHUB_TOKEN: | ||
description: 'Derivative token for using the GitHub REST API' | ||
required: true | ||
outputs: | ||
TAG: | ||
description: "The Image Tag" | ||
value: ${{ steps.find-hxe.outputs.TAG }} | ||
IMAGE_ID: | ||
description: "The " | ||
value: ${{ steps.find-hxe.outputs.IMAGE_ID }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Find HXE image | ||
id: find-hxe | ||
shell: bash | ||
# TODO: replace hana/tools/docker/hxe/* with ${{ github.action_path }} | ||
run: | | ||
TAG="$(sha1sum hana/tools/docker/hxe/* | sha1sum --tag | grep '[^ ]*$' -o)"; | ||
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/hanaexpress; | ||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]'); | ||
echo "TAG=${TAG}" >> $GITHUB_OUTPUT; | ||
echo "IMAGE_ID=${IMAGE_ID}" >> $GITHUB_OUTPUT; | ||
GHCR_TOKEN=$(echo ${{ inputs.GITHUB_TOKEN }} | base64); | ||
if | ||
curl -H "Authorization: Bearer ${GHCR_TOKEN}" https://ghcr.io/v2/${{ github.repository_owner }}/hanaexpress/manifests/$TAG | grep "MANIFEST_UNKNOWN"; | ||
then | ||
echo "BUILD_HXE=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "BUILD_HXE=false" >> $GITHUB_OUTPUT | ||
fi; | ||
- name: Set up Docker Buildx | ||
if: ${{ steps.find-hxe.outputs.BUILD_HXE == 'true' }} | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build HXE image | ||
if: ${{ steps.find-hxe.outputs.BUILD_HXE == 'true' }} | ||
shell: bash | ||
run: | | ||
echo "${{ inputs.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin; | ||
DOCKER_BUILDKIT=1 docker build -t $IMAGE_ID:$TAG ./hana/tools/docker/hxe; | ||
docker push $IMAGE_ID:$TAG; | ||
env: | ||
TAG: ${{ steps.find-hxe.outputs.TAG }} | ||
IMAGE_ID: ${{ steps.find-hxe.outputs.IMAGE_ID }} | ||
- name: Start HXE image | ||
shell: bash | ||
run: | | ||
echo "${{ inputs.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin; | ||
{ npm start -w hana; } & | ||
env: | ||
TAG: ${{ steps.find-hxe.outputs.TAG }} | ||
IMAGE_ID: ${{ steps.find-hxe.outputs.IMAGE_ID }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.