Skip to content

Commit 1c8e787

Browse files
committed
Merge remote-tracking branch 'origin/master' into mt-host-ping
2 parents 457d863 + d11bb05 commit 1c8e787

File tree

588 files changed

+18638
-20342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

588 files changed

+18638
-20342
lines changed

.github/workflows.src/tests.inc.yml

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@
6868

6969
# Restore binary cache
7070

71-
- name: Handle cached EdgeDB CLI binaries
72-
uses: actions/cache@v4
73-
id: cli-cache
74-
with:
75-
path: build/cli
76-
key: edb-cli-v4-${{ env.EDGEDBCLI_GIT_REV }}
77-
7871
- name: Handle cached Rust extensions
7972
uses: actions/cache@v4
8073
id: rust-cache
@@ -116,7 +109,6 @@
116109

117110
- name: Install system deps
118111
if: |
119-
steps.cli-cache.outputs.cache-hit != 'true' ||
120112
steps.rust-cache.outputs.cache-hit != 'true' ||
121113
steps.ext-cache.outputs.cache-hit != 'true' ||
122114
steps.stolon-cache.outputs.cache-hit != 'true' ||
@@ -126,33 +118,9 @@
126118
sudo apt-get install -y uuid-dev libreadline-dev bison flex libprotobuf-c-dev
127119
128120
- name: Install Rust toolchain
129-
if: |
130-
steps.cli-cache.outputs.cache-hit != 'true' ||
131-
steps.rust-cache.outputs.cache-hit != 'true'
121+
if: steps.rust-cache.outputs.cache-hit != 'true'
132122
uses: dsherret/rust-toolchain-file@v1
133123

134-
# Build EdgeDB CLI
135-
136-
- name: Handle EdgeDB CLI build cache
137-
uses: actions/cache@v4
138-
if: steps.cli-cache.outputs.cache-hit != 'true'
139-
with:
140-
path: ${{ env.BUILD_TEMP }}/rust/cli
141-
key: edb-cli-build-v7-${{ env.EDGEDBCLI_GIT_REV }}
142-
restore-keys: |
143-
edb-cli-build-v7-
144-
145-
- name: Build EdgeDB CLI
146-
env:
147-
CARGO_HOME: ${{ env.BUILD_TEMP }}/rust/cli/cargo_home
148-
CACHE_HIT: ${{ steps.cli-cache.outputs.cache-hit }}
149-
run: |
150-
if [[ "$CACHE_HIT" == "true" ]]; then
151-
cp -v build/cli/bin/gel edb/cli/gel
152-
else
153-
python setup.py -v build_cli
154-
fi
155-
156124
# Build Rust extensions
157125

158126
- name: Handle Rust extensions build cache
@@ -309,15 +277,13 @@
309277
else
310278
find /usr/lib -type f -name 'lib*' -printf '%P %s\n' | sort | sha256sum | cut -d ' ' -f1 > shared-artifacts/lib_cache_key.txt
311279
fi
312-
python setup.py -q ci_helper --type cli > shared-artifacts/edgedbcli_git_rev.txt
313280
python setup.py -q ci_helper --type rust >shared-artifacts/rust_cache_key.txt
314281
python setup.py -q ci_helper --type ext >shared-artifacts/ext_cache_key.txt
315282
python setup.py -q ci_helper --type parsers >shared-artifacts/parsers_cache_key.txt
316283
python setup.py -q ci_helper --type postgres >shared-artifacts/postgres_git_rev.txt
317284
python setup.py -q ci_helper --type libpg_query >shared-artifacts/libpg_query_git_rev.txt
318285
echo 'f8cd94309eaccbfba5dea7835b88c78377608a37' >shared-artifacts/stolon_git_rev.txt
319286
python setup.py -q ci_helper --type bootstrap >shared-artifacts/bootstrap_cache_key.txt
320-
echo EDGEDBCLI_GIT_REV=$(cat shared-artifacts/edgedbcli_git_rev.txt) >> $GITHUB_ENV
321287
echo POSTGRES_GIT_REV=$(cat shared-artifacts/postgres_git_rev.txt) >> $GITHUB_ENV
322288
echo LIBPG_QUERY_GIT_REV=$(cat shared-artifacts/libpg_query_git_rev.txt) >> $GITHUB_ENV
323289
echo STOLON_GIT_REV=$(cat shared-artifacts/stolon_git_rev.txt) >> $GITHUB_ENV
@@ -350,21 +316,13 @@
350316

351317
- name: Set environment variables
352318
run: |
353-
echo EDGEDBCLI_GIT_REV=$(cat shared-artifacts/edgedbcli_git_rev.txt) >> $GITHUB_ENV
354319
echo POSTGRES_GIT_REV=$(cat shared-artifacts/postgres_git_rev.txt) >> $GITHUB_ENV
355320
echo STOLON_GIT_REV=$(cat shared-artifacts/stolon_git_rev.txt) >> $GITHUB_ENV
356321
echo BUILD_LIB=$(python setup.py -q ci_helper --type build_lib) >> $GITHUB_ENV
357322
echo BUILD_TEMP=$(python setup.py -q ci_helper --type build_temp) >> $GITHUB_ENV
358323
359324
# Restore build cache
360325

361-
- name: Restore cached EdgeDB CLI binaries
362-
uses: actions/cache@v4
363-
id: cli-cache
364-
with:
365-
path: build/cli
366-
key: edb-cli-v4-${{ env.EDGEDBCLI_GIT_REV }}
367-
368326
- name: Restore cached Rust extensions
369327
uses: actions/cache@v4
370328
id: rust-cache
@@ -409,7 +367,6 @@
409367

410368
- name: Stop if we cannot retrieve the cache
411369
if: |
412-
steps.cli-cache.outputs.cache-hit != 'true' ||
413370
steps.rust-cache.outputs.cache-hit != 'true' ||
414371
steps.ext-cache.outputs.cache-hit != 'true' ||
415372
steps.parsers-cache.outputs.cache-hit != 'true' ||
@@ -422,9 +379,6 @@
422379
423380
- name: Validate cached binaries
424381
run: |
425-
# Validate EdgeDB CLI
426-
./build/cli/bin/gel --version || exit 1
427-
428382
# Validate Stolon
429383
./build/stolon/bin/stolon-sentinel --version || exit 1
430384
./build/stolon/bin/stolon-keeper --version || exit 1
@@ -436,8 +390,6 @@
436390
437391
- name: Restore cache into the source tree
438392
run: |
439-
cp -v build/cli/bin/gel edb/cli/edgedb
440-
cp -v build/cli/bin/gel edb/cli/gel
441393
rsync -av ./build/rust_extensions/edb/ ./edb/
442394
rsync -av ./build/extensions/edb/ ./edb/
443395
rsync -av ./build/lib/edb/ ./edb/

.github/workflows/tests-ha.yml

Lines changed: 1 addition & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)