Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[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
Show file tree
Hide file tree
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-lipetskMar 16, 2025
b20ace6
Initialization of Helpers._get_default_encoding_func is corrected [py…
dmitry-lipetskMar 16, 2025
02d6e15
Merge remote-tracking branch 'origin/D20250316_002--python3_9' into D…
dmitry-lipetskMar 16, 2025
94228c4
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetskMar 16, 2025
69191e5
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetskMar 16, 2025
e29f131
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetskMar 17, 2025
378f967
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetskMar 17, 2025
e5948ec
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetskMar 18, 2025
c65f604
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetskMar 20, 2025
7afeb1a
run_test.sh is corrected
dmitry-lipetskMar 20, 2025
55c70c5
Docker file for AltLinux 10 is updated
dmitry-lipetskMar 20, 2025
f525954
Dockerfile for Ubuntu 24.04 is corrected (time)
dmitry-lipetskMar 21, 2025
8300e84
[CI][AltLinux 10] Work with virtualenv is restored
dmitry-lipetskMar 21, 2025
a5d8d99
run_tests.sh is updated [original order is restored]
dmitry-lipetskMar 21, 2025
03e4799
run_tests.sh is updated [python]
dmitry-lipetskMar 21, 2025
126608d
[CI] work with 'time' is corrected
dmitry-lipetskMar 21, 2025
62d1d20
[CI] An initization of python virtualenv is simplified
dmitry-lipetskMar 21, 2025
55b573d
Merge remote-tracking branch 'origin/D20250321_001--ci_files' into D2…
dmitry-lipetskMar 21, 2025
dd56a6c
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetskMar 21, 2025
8d68c68
[CI] AltLinux runs only "local" tests.
dmitry-lipetskMar 24, 2025
0c78836
Formatting
dmitry-lipetskMar 24, 2025
fbd29e1
[CI] The test on AltLinux 11 is added [local only]
dmitry-lipetskMar 24, 2025
9fbf8a5
[CI] AltLinux dockerfiles are updated (cleanup)
dmitry-lipetskMar 24, 2025
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
NextNext commit
[CI] Run tests on AltLinux 10
Changes: - VIRTUALENV: virtualenv is explicitly executed through ${PYTHON}The current problems1) testgres/operations/helpers.py    # Prepared pointer on function to get a name of system codepage    _get_default_encoding_func = _make_get_default_encoding_func()must be    # Prepared pointer on function to get a name of system codepage    _get_default_encoding_func = _make_get_default_encoding_func.__func__()It is a problem of Python 3.92) These tests fail:FAILED tests/test_simple.py::TestgresTests::test_logical_replication - psycopg2.errors.ProtocolViolation: could not create replication slot "mysub": ERROR:  could not access file "pgoutput": No such file or directoryFAILED tests/test_simple.py::TestgresTests::test_logical_catchup - psycopg2.errors.ProtocolViolation: could not create replication slot "mysub": ERROR:  could not access file "pgoutput": No such file or directoryFAILED tests/test_simple_remote.py::TestgresRemoteTests::test_logical_replication - psycopg2.errors.ProtocolViolation: could not create replication slot "mysub": ERROR:  could not access file "pgoutput": No such file or directoryFAILED tests/test_simple_remote.py::TestgresRemoteTests::test_logical_catchup - psycopg2.errors.ProtocolViolation: could not create replication slot "mysub": ERROR:  could not access file "pgoutput": No such file or directoryI suggest to fix these problems in the separated commits.
  • Loading branch information
@dmitry-lipetsk
dmitry-lipetsk committedMar 16, 2025
commitc59e6b0a80c920d366d9d114f540799893fb5bdd
1 change: 1 addition & 0 deletions.travis.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,3 +28,4 @@ env:
- TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=10
- TEST_PLATFORM=std-all PYTHON_VERSION=3 PG_VERSION=17
- TEST_PLATFORM=ubuntu_24_04 PYTHON_VERSION=3 PG_VERSION=17
- TEST_PLATFORM=altlinux_10 PYTHON_VERSION=3 PG_VERSION=17
66 changes: 66 additions & 0 deletionsDockerfile--altlinux_10.tmpl
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
ARG PG_VERSION
ARG PYTHON_VERSION

# --------------------------------------------- base1
FROM alt:p10 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 update
RUN apt-get install -y postgresql-common
RUN apt-get install -y postgresql${PG_VERSION}-server
RUN apt-get install -y postgresql${PG_VERSION}-server-devel

RUN apt-get install -y libsqlite3-devel

EXPOSE 22

RUN ssh-keygen -A

# --------------------------------------------- base2_with_python-3
FROM base1 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
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

ENV LANG=C.UTF-8

USER test

RUN chmod 700 ~/
RUN mkdir -p ~/.ssh

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=\"\" bash ./run_tests.sh;"

3 changes: 2 additions & 1 deletionrun_tests.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,8 +8,9 @@ if [ -z ${TEST_FILTER+x} ]; then export TEST_FILTER="TestgresTests"; fi

# choose python version
echo python version is $PYTHON_VERSION
VIRTUALENV="virtualenv --python=/usr/bin/python$PYTHON_VERSION"
PYTHON="python$PYTHON_VERSION"
PIP="pip$PYTHON_VERSION"
VIRTUALENV="${PYTHON} -m virtualenv --python=/usr/bin/python$PYTHON_VERSION"

# fail early
echo check that pg_config is in PATH
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp