Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update all dependencies #1668

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

Merged
merged 12 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 3 additions & 14 deletions 17 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
working-directory: pgml-extension
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Fetch master
run: |
git fetch origin master --depth 1
Expand Down Expand Up @@ -45,7 +43,7 @@ jobs:
~/.cargo
pgml-extension/target
~/.pgrx
key: ${{ runner.os }}-rust-1.74-${{ hashFiles('pgml-extension/Cargo.lock') }}-bust2
key: ${{ runner.os }}-rust-1.74-${{ hashFiles('pgml-extension/Cargo.lock') }}-bust3
- name: Install pgrx
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
run: |
Expand All @@ -55,17 +53,8 @@ jobs:

if [[ ! -d ~/.pgrx ]]; then
cargo pgrx init
echo "shared_preload_libraries = 'pgml'" >> ~/.pgrx/data-16/postgresql.conf
echo "shared_preload_libraries = 'pgml'" >> ~/.pgrx/data-17/postgresql.conf
fi
- name: Update extension test
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
run: |
git checkout origin/master
echo "\q" | cargo pgrx run
psql -p 28816 -h localhost -d pgml -P pager -c "DROP EXTENSION IF EXISTS pgml CASCADE; DROP SCHEMA IF EXISTS pgml CASCADE; CREATE EXTENSION pgml;"
git checkout $GITHUB_SHA
echo "\q" | cargo pgrx run
psql -p 28816 -h localhost -d pgml -P pager -c "ALTER EXTENSION pgml UPDATE;"
- name: Unit tests
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
run: |
Expand All @@ -74,4 +63,4 @@ jobs:
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
run: |
echo "\q" | cargo pgrx run
psql -p 28816 -h 127.0.0.1 -d pgml -P pager -f tests/test.sql
psql -p 28817 -h 127.0.0.1 -d pgml -P pager -f tests/test.sql
2 changes: 1 addition & 1 deletion 2 .github/workflows/ubuntu-packages-and-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
packageVersion:
default: "2.9.3"
default: "2.10.0"
jobs:
#
# PostgresML extension.
Expand Down
3 changes: 0 additions & 3 deletions 3 .gitmodules

This file was deleted.

2 changes: 1 addition & 1 deletion 2 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ docker run \
-v postgresml_data:/var/lib/postgresql \
-p 5433:5432 \
-p 8000:8000 \
ghcr.io/postgresml/postgresml:2.7.12 \
ghcr.io/postgresml/postgresml:2.10.0 \
sudo -u postgresml psql -d postgresml
```

Expand Down
2 changes: 1 addition & 1 deletion 2 packages/postgresml-dashboard/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dir="/tmp/postgresml-dashboard"
deb_dir="$dir/deb-build"
source_dir="$dir/source"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
export PACKAGE_VERSION=${1:-"2.7.12"}
export PACKAGE_VERSION=${1:-"2.10.0"}
export GITHUB_STARS=$(curl -s "https://api.github.com/repos/postgresml/postgresml" | grep stargazers_count | cut -d : -f 2 | tr -d " " | tr -d ",")
if [[ $(arch) == "x86_64" ]]; then
export ARCH=amd64
Expand Down
2 changes: 1 addition & 1 deletion 2 packages/postgresml-dashboard/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
package_version="$1"

if [[ -z "$package_version" ]]; then
echo "Usage: $0 <package version, e.g. 2.7.12>"
echo "Usage: $0 <package version, e.g. 2.10.0>"
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion 2 packages/postgresml-python/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
deb_dir="/tmp/postgresml-python/deb-build"
major=${1:-"14"}

export PACKAGE_VERSION=${1:-"2.7.12"}
export PACKAGE_VERSION=${1:-"2.10.0"}
export PYTHON_VERSION=${2:-"3.10"}

if [[ $(arch) == "x86_64" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion 2 packages/postgresml-python/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi

if [[ -z "$package_version" ]]; then
echo "postgresml-python package build and release script"
echo "usage: $0 <package version, e.g. 2.7.12>"
echo "usage: $0 <package version, e.g. 2.10.0>"
exit 1
fi

Expand Down
6 changes: 3 additions & 3 deletions 6 packages/postgresml/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ set -e

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

export PACKAGE_VERSION=${1:-"2.7.12"}
export PACKAGE_VERSION=${1:-"2.10.0"}
export PGVERSION=${2:-"14"}
export UBUNTU_VERSION=${3:-"24.04"}

deb_dir="/tmp/postgresml/deb-build"

Expand All @@ -26,5 +27,4 @@ dpkg-deb \
--root-owner-group \
-z1 \
--build "$deb_dir" \
postgresml-${PGVERSION}-${PACKAGE_VERSION}-ubuntu22.04-all.deb

postgresml-${PGVERSION}-${PACKAGE_VERSION}-ubuntu${UBUNTU_VERSION}-all.deb
62 changes: 40 additions & 22 deletions 62 packages/postgresml/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,52 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
package_version="$1"

if [[ -z "$package_version" ]]; then
echo "postgresml package build and release script"
echo "usage: $0 <package version, e.g. 2.7.12>"
exit 1
echo "postgresml package build and release script"
echo "usage: $0 <package version, e.g. 2.10.0>"
exit 1
fi

if ! which deb-s3; then
curl -sLO https://github.com/deb-s3/deb-s3/releases/download/0.11.4/deb-s3-0.11.4.gem
sudo gem install deb-s3-0.11.4.gem
deb-s3
curl -sLO https://github.com/deb-s3/deb-s3/releases/download/0.11.4/deb-s3-0.11.4.gem
sudo gem install deb-s3-0.11.4.gem
deb-s3
fi

function package_name() {
echo "postgresml-$1-$package_version-ubuntu22.04-all.deb"
local pg_version=$1
local ubuntu_version=$2
echo "postgresml-${pg_version}-${package_version}-ubuntu${ubuntu_version}-all.deb"
}

for pg in {12..16}; do
bash ${SCRIPT_DIR}/build.sh ${package_version} ${pg}

if [[ ! -f $(package_name ${pg}) ]]; then
echo "File $(package_name ${pg}) doesn't exist"
exit 1
fi

deb-s3 upload \
--lock \
--bucket apt.postgresml.org \
$(package_name ${pg}) \
--codename $(lsb_release -cs)

rm $(package_name ${pg})
# Active LTS Ubuntu versions
ubuntu_versions=("20.04" "22.04" "24.04")

# Map Ubuntu versions to codenames
declare -A ubuntu_codenames=(
["20.04"]="focal"
["22.04"]="jammy"
["24.04"]="noble"
)

for ubuntu_version in "${ubuntu_versions[@]}"; do
codename=${ubuntu_codenames[$ubuntu_version]}
echo "Building packages for Ubuntu ${ubuntu_version} (${codename})"

for pg in {11..17}; do
echo "Building PostgreSQL ${pg} package..."
bash ${SCRIPT_DIR}/build.sh ${package_version} ${pg} ${ubuntu_version}

if [[ ! -f $(package_name ${pg} ${ubuntu_version}) ]]; then
echo "File $(package_name ${pg} ${ubuntu_version}) doesn't exist"
exit 1
fi

deb-s3 upload \
--lock \
--bucket apt.postgresml.org \
$(package_name ${pg} ${ubuntu_version}) \
--codename ${codename}

rm $(package_name ${pg} ${ubuntu_version})
done
done
2 changes: 1 addition & 1 deletion 2 packages/postgresql-pgml/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

if [[ -z "${1}" ]]; then
echo "Usage: $0 <package version, e.g. 2.7.12>"
echo "Usage: $0 <package version, e.g. 2.10.0>"
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion 2 pgml-cms/docs/open-source/pgml/api/pgml.tune.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Without tuning, DistilBERT classifies every single movie review as `positive`, a

Once our model has been fine tuned on the dataset, it'll be saved and deployed with a Project visible in the Dashboard, just like models built from simpler algorithms.

[![Fine Tuning](https://github.com/postgresml/postgresml/raw/v2.7.12/dashboard/static/images/dashboard/tuning.png)](https://github.com/postgresml/postgresml/blob/v2.7.12/dashboard/static/images/dashboard/tuning.png)
[![Fine Tuning](https://github.com/postgresml/postgresml/raw/v2.10.0/dashboard/static/images/dashboard/tuning.png)](https://github.com/postgresml/postgresml/blob/v2.10.0/dashboard/static/images/dashboard/tuning.png)

#### Prepare the data

Expand Down
2 changes: 1 addition & 1 deletion 2 pgml-cms/docs/open-source/pgml/developers/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ SELECT pgml.version();
postgres=# select pgml.version();
version
-------------------
2.9.3
2.10.0
(1 row)
```
{% endtab %}
Expand Down
2 changes: 1 addition & 1 deletion 2 pgml-cms/docs/open-source/pgml/developers/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ CREATE EXTENSION
pgml_test=# SELECT pgml.version();
version
---------
2.9.3
2.10.0
(1 row)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ docker run \
-v postgresml_data:/var/lib/postgresql \
-p 5433:5432 \
-p 8000:8000 \
ghcr.io/postgresml/postgresml:2.9.3 \
ghcr.io/postgresml/postgresml:2.10.0 \
sudo -u postgresml psql -d postgresml
```
{% endtab %}
Expand All @@ -43,7 +43,7 @@ docker run \
--gpus all \
-p 5433:5432 \
-p 8000:8000 \
ghcr.io/postgresml/postgresml:2.9.3 \
ghcr.io/postgresml/postgresml:2.10.0 \
sudo -u postgresml psql -d postgresml
```

Expand Down Expand Up @@ -80,7 +80,7 @@ Time: 41.520 ms
postgresml=# SELECT pgml.version();
version
---------
2.9.3
2.10.0
(1 row)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ Type "help" for help.
postgresml=> SELECT pgml.version();
version
---------
2.9.3
2.10.0
(1 row)
```
4 changes: 3 additions & 1 deletion 4 pgml-extension/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[build]
# Postgres symbols won't be available until runtime
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]

[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup,-fuse-ld=lld"]

[target.aarch64-unknown-linux-gnu]
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup,-fuse-ld=lld"]

[target.aarch64-apple-darwin]
rustflags = ["-C", "link-args=-WL,-undefined,dynamic_lookup"]
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.