- Notifications
You must be signed in to change notification settings - Fork35
[CI] Run tests on AltLinux 10#219
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
dmitry-lipetsk merged 23 commits intopostgrespro:masterfromdmitry-lipetsk:D20250316_001--altlinux_10Mar 24, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
23 commits Select commitHold shift + click to select a range
c59e6b0
[CI] Run tests on AltLinux 10
dmitry-lipetskb20ace6
Initialization of Helpers._get_default_encoding_func is corrected [py…
dmitry-lipetsk02d6e15
Merge remote-tracking branch 'origin/D20250316_002--python3_9' into D…
dmitry-lipetsk94228c4
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk69191e5
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetske29f131
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk378f967
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetske5948ec
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetskc65f604
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk7afeb1a
run_test.sh is corrected
dmitry-lipetsk55c70c5
Docker file for AltLinux 10 is updated
dmitry-lipetskf525954
Dockerfile for Ubuntu 24.04 is corrected (time)
dmitry-lipetsk8300e84
[CI][AltLinux 10] Work with virtualenv is restored
dmitry-lipetska5d8d99
run_tests.sh is updated [original order is restored]
dmitry-lipetsk03e4799
run_tests.sh is updated [python]
dmitry-lipetsk126608d
[CI] work with 'time' is corrected
dmitry-lipetsk62d1d20
[CI] An initization of python virtualenv is simplified
dmitry-lipetsk55b573d
Merge remote-tracking branch 'origin/D20250321_001--ci_files' into D2…
dmitry-lipetskdd56a6c
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk8d68c68
[CI] AltLinux runs only "local" tests.
dmitry-lipetsk0c78836
Formatting
dmitry-lipetskfbd29e1
[CI] The test on AltLinux 11 is added [local only]
dmitry-lipetsk9fbf8a5
[CI] AltLinux dockerfiles are updated (cleanup)
dmitry-lipetskFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
[CI] The test on AltLinux 11 is added [local only]
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitfbd29e1eadd192f7ea622238a964fcbc516a457c
There are no files selected for viewing
1 change: 1 addition & 0 deletions.travis.yml
This file contains hidden or 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
118 changes: 118 additions & 0 deletionsDockerfile--altlinux_11.tmpl
This file contains hidden or 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,118 @@ | ||
ARG PG_VERSION | ||
ARG PYTHON_VERSION | ||
# --------------------------------------------- base1 | ||
FROM alt:p11 as base1 | ||
ARG PG_VERSION | ||
RUN apt-get update | ||
RUN apt-get install -y sudo curl ca-certificates | ||
RUN apt-get update | ||
RUN apt-get install -y openssh-server openssh-clients | ||
RUN apt-get install -y time | ||
RUN apt-get install -y mc | ||
RUN apt-get install -y libsqlite3-devel | ||
EXPOSE 22 | ||
RUN ssh-keygen -A | ||
# --------------------------------------------- postgres | ||
FROM base1 as base1_with_dev_tools | ||
RUN apt-get update | ||
RUN apt-get install -y git | ||
RUN apt-get install -y gcc | ||
RUN apt-get install -y make | ||
RUN apt-get install -y meson | ||
RUN apt-get install -y flex | ||
RUN apt-get install -y bison | ||
RUN apt-get install -y pkg-config | ||
RUN apt-get install -y libssl-devel | ||
RUN apt-get install -y libicu-devel | ||
RUN apt-get install -y libzstd-devel | ||
RUN apt-get install -y zlib-devel | ||
RUN apt-get install -y liblz4-devel | ||
RUN apt-get install -y libzstd-devel | ||
RUN apt-get install -y libxml2-devel | ||
# --------------------------------------------- postgres | ||
FROM base1_with_dev_tools as base1_with_pg-17 | ||
RUN git clone https://github.com/postgres/postgres.git -b REL_17_STABLE /pg/postgres/source | ||
WORKDIR /pg/postgres/source | ||
RUN ./configure --prefix=/pg/postgres/install --with-zlib --with-openssl --without-readline --with-lz4 --with-zstd --with-libxml | ||
RUN make -j 4 install | ||
RUN make -j 4 -C contrib install | ||
# SETUP PG_CONFIG | ||
# When pg_config symlink in /usr/local/bin it returns a real (right) result of --bindir | ||
RUN ln -s /pg/postgres/install/bin/pg_config -t /usr/local/bin | ||
# SETUP PG CLIENT LIBRARY | ||
# libpq.so.5 is enough | ||
RUN ln -s /pg/postgres/install/lib/libpq.so.5.17 /usr/lib64/libpq.so.5 | ||
# --------------------------------------------- base2_with_python-3 | ||
FROM base1_with_pg-${PG_VERSION} as base2_with_python-3 | ||
RUN apt-get install -y python3 | ||
RUN apt-get install -y python3-dev | ||
RUN apt-get install -y python3-module-virtualenv | ||
RUN apt-get install -y python3-modules-sqlite3 | ||
# AltLinux does not have "generic" virtualenv utility. Let's create it. | ||
RUN if [[ -f "/usr/bin/virtualenv" ]] ; then \ | ||
echo AAA; \ | ||
elif [[ -f "/usr/bin/virtualenv3" ]] ; then \ | ||
ln -s /usr/bin/virtualenv3 /usr/bin/virtualenv; \ | ||
else \ | ||
echo "/usr/bin/virtualenv is not created!"; \ | ||
exit 1; \ | ||
fi | ||
ENV PYTHON_VERSION=3 | ||
# --------------------------------------------- final | ||
FROM base2_with_python-${PYTHON_VERSION} as final | ||
RUN adduser test -G wheel | ||
# It enables execution of "sudo service ssh start" without password | ||
RUN sh -c "echo \"WHEEL_USERS ALL=(ALL:ALL) NOPASSWD: ALL\"" >> /etc/sudoers | ||
ADD . /pg/testgres | ||
WORKDIR /pg/testgres | ||
RUN chown -R test /pg/testgres | ||
ENV LANG=C.UTF-8 | ||
USER test | ||
RUN chmod 700 ~/ | ||
RUN mkdir -p ~/.ssh | ||
# | ||
# Altlinux 10 and 11 too slowly create a new SSH connection (x6). | ||
# | ||
# So, we exclude the "remote" tests until this problem has been resolved. | ||
# | ||
ENTRYPOINT sh -c " \ | ||
set -eux; \ | ||
echo HELLO FROM ENTRYPOINT; \ | ||
echo HOME DIR IS [`realpath ~/`]; \ | ||
sudo /usr/sbin/sshd; \ | ||
ssh-keyscan -H localhost >> ~/.ssh/known_hosts; \ | ||
ssh-keyscan -H 127.0.0.1 >> ~/.ssh/known_hosts; \ | ||
ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ''; \ | ||
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys; \ | ||
chmod 600 ~/.ssh/authorized_keys; \ | ||
ls -la ~/.ssh/; \ | ||
TEST_FILTER=\"TestgresTests or (TestTestgresCommon and (not remote_ops))\" bash ./run_tests.sh;" |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.