Skip to content

Commit

Permalink
Merge pull request #269 from Altinity/22.8.15_source_upload
Browse files Browse the repository at this point in the history
Uploading src tgz and regression improvements
  • Loading branch information
MyroTk authored and Enmk committed Jun 22, 2023
1 parent 4693c0a commit 783f68e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REGRESSION_RESULTS_URL: altinity-build-artifacts/${{github.event.number}}/$GITHUB_SHA


on: # yamllint disable-line rule:truthy
Expand Down Expand Up @@ -182,8 +183,9 @@ jobs:
- name: Build
run: |
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
mkdir -p "$TEMP_PATH/build_check/package_release"
cd .. && tar czf $TEMP_PATH/build_source.src.tar.gz ClickHouse/
cd $TEMP_PATH && tar xvzf $TEMP_PATH/build_source.src.tar.gz
cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
- name: Upload build URLs to artifacts
if: ${{ success() || failure() }}
Expand Down Expand Up @@ -661,7 +663,7 @@ jobs:
strategy:
fail-fast: false
matrix:
SUITE: [aes_encryption, aggregate_functions, atomic_insert, base_58, clickhouse_keeper, datetime64_extended_range, disk_level_encryption, dns, example, extended_precision_datatypes, kafka, kerberos, lightweight_delete, map_type, rbac, selects, ssl_server, tiered_storage, window_functions]
SUITE: [aes_encryption, aggregate_functions, atomic_insert, base_58, clickhouse_keeper, datetime64_extended_range, disk_level_encryption, dns, example, extended_precision_data_types, kafka, kerberos, lightweight_delete, map_type, part_moves_between_shards, rbac, selects, ssl_server, tiered_storage, window_functions]
needs: [regression_start]
runs-on: [self-hosted, stress-tester]
env:
Expand Down
12 changes: 12 additions & 0 deletions tests/ci/build_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,18 @@ def main():

print(f"::notice ::Log URL: {log_url}")

src_path = os.path.join(TEMP_PATH, "build_source.src.tar.gz")

if os.path.exists(src_path):
src_url = s3_helper.upload_build_file_to_s3(
src_path, s3_path_prefix + "/clickhouse-" + version.string + ".src.tar.gz"
)
logging.info("Source tar %s", src_url)
else:
logging.info("Source tar doesn't exist")

print(f"::notice ::Source tar URL: {src_url}")

create_json_artifact(
TEMP_PATH, build_name, log_url, build_urls, build_config, elapsed, success
)
Expand Down

0 comments on commit 783f68e

Please sign in to comment.