From eab0918b263e0edcb49a7e6295f3dacff209edd3 Mon Sep 17 00:00:00 2001 From: Torsten Kilias Date: Mon, 11 Sep 2023 14:43:29 +0200 Subject: [PATCH] Fix release workflow and remove SLC splitting, because it isn't needed at the moment. --- .../release_droid_upload_github_release_assets.yml | 12 ++++-------- doc/changes/changes_0.5.0.md | 3 ++- doc/user_guide/user_guide.md | 8 +------- noxfile.py | 5 +++-- 4 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release_droid_upload_github_release_assets.yml b/.github/workflows/release_droid_upload_github_release_assets.yml index 57e09cba..ecb1f7d4 100644 --- a/.github/workflows/release_droid_upload_github_release_assets.yml +++ b/.github/workflows/release_droid_upload_github_release_assets.yml @@ -29,21 +29,17 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Build language container + run: nox -s export_slc + - name: Upload assets to the GitHub release draft uses: shogo82148/actions-upload-release-asset@v1 with: upload_url: ${{ github.event.inputs.upload_url }} asset_path: dist/* - - name: Split script-language container into parts - run: | - pushd .build_output/cache/exports/ - split *.tar.gz -d -n 2 language_container_part_ - popd - - # Since the container was built in the pytest run above, no need to rebuild before the upload. - name: Upload script-language container uses: shogo82148/actions-upload-release-asset@v1 with: upload_url: ${{ github.event.inputs.upload_url }} - asset_path: .build_output/cache/exports/language_container_part_* + asset_path: export/exasol_transformers_extension_container* diff --git a/doc/changes/changes_0.5.0.md b/doc/changes/changes_0.5.0.md index d66f6205..f9aa3f00 100644 --- a/doc/changes/changes_0.5.0.md +++ b/doc/changes/changes_0.5.0.md @@ -1,4 +1,4 @@ -# Transformers Extension 0.5.0, released 2023-09-08 +# Transformers Extension 0.5.0, released 2023-09-11 Code name: Support for transformer 4.31 @@ -20,6 +20,7 @@ and allows the user to configure the TLS verification. - #89: Fixed the content of error code config file - #100: Enabled encryption for all pyexasol connection to be compatible with Exasol 8 - #84: Reactivated test after move to AWS + - #128: Fix release workflow and remove splitting the SLC ### Refactorings diff --git a/doc/user_guide/user_guide.md b/doc/user_guide/user_guide.md index 673ca003..be2aaecb 100644 --- a/doc/user_guide/user_guide.md +++ b/doc/user_guide/user_guide.md @@ -122,14 +122,8 @@ language container file released in GitHub Releases section. ##### Download Language Container - - The language container is split into parts and then uploaded to GitHub Release section. - - These parts are named with the `language_container_part_` prefix. - - Please download all parts of the language container from the Releases section. + - Please download the language container archive (*.tar.gz) from the Releases section. (see [the latest release](https://github.com/exasol/transformers-extension/releases/latest)). -- Before installing the language container, these parts must be combined using the following command:: -```shell -ls -v language_container_part_* | xargs cat > language_container.tar.gz -``` ##### Install Language Container There are two ways to install the language container: (1) using a python script and (2) manual installation. See the next paragraphs for details. diff --git a/noxfile.py b/noxfile.py index 676c53c6..8a4e6e09 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,4 +1,3 @@ - import sys from pathlib import Path @@ -14,6 +13,7 @@ ) ROOT_PATH = Path(__file__).parent +EXPORT_PATH = ROOT_PATH / "export" @nox.session(python=False) @@ -27,7 +27,8 @@ def build_slc(session: nox.Session): def export_slc(session: nox.Session): flavor_path = find_flavor_path() prepare_flavor(flavor_path) - export(Path("export")) + export(flavor_path, EXPORT_PATH) + @nox.session(python=False) def unit_tests(session):