Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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 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
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c59e6b0
[CI] Run tests on AltLinux 10
dmitry-lipetsk Mar 16, 2025
b20ace6
Initialization of Helpers._get_default_encoding_func is corrected [py…
dmitry-lipetsk Mar 16, 2025
02d6e15
Merge remote-tracking branch 'origin/D20250316_002--python3_9' into D…
dmitry-lipetsk Mar 16, 2025
94228c4
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk Mar 16, 2025
69191e5
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk Mar 16, 2025
e29f131
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk Mar 17, 2025
378f967
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk Mar 17, 2025
e5948ec
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk Mar 18, 2025
c65f604
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk Mar 20, 2025
7afeb1a
run_test.sh is corrected
dmitry-lipetsk Mar 20, 2025
55c70c5
Docker file for AltLinux 10 is updated
dmitry-lipetsk Mar 20, 2025
f525954
Dockerfile for Ubuntu 24.04 is corrected (time)
dmitry-lipetsk Mar 21, 2025
8300e84
[CI][AltLinux 10] Work with virtualenv is restored
dmitry-lipetsk Mar 21, 2025
a5d8d99
run_tests.sh is updated [original order is restored]
dmitry-lipetsk Mar 21, 2025
03e4799
run_tests.sh is updated [python]
dmitry-lipetsk Mar 21, 2025
126608d
[CI] work with 'time' is corrected
dmitry-lipetsk Mar 21, 2025
62d1d20
[CI] An initization of python virtualenv is simplified
dmitry-lipetsk Mar 21, 2025
55b573d
Merge remote-tracking branch 'origin/D20250321_001--ci_files' into D2…
dmitry-lipetsk Mar 21, 2025
dd56a6c
Merge branch 'master' into D20250316_001--altlinux_10
dmitry-lipetsk Mar 21, 2025
8d68c68
[CI] AltLinux runs only "local" tests.
dmitry-lipetsk Mar 24, 2025
0c78836
Formatting
dmitry-lipetsk Mar 24, 2025
fbd29e1
[CI] The test on AltLinux 11 is added [local only]
dmitry-lipetsk Mar 24, 2025
9fbf8a5
[CI] AltLinux dockerfiles are updated (cleanup)
dmitry-lipetsk Mar 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
Prev Previous commit
Next Next commit
[CI] work with 'time' is corrected
AltLinux 10 does not support the sequential "time <set_env> coverage run ...".

Because this OS does not has a builtin command 'time' in bash.

https://forum.altlinux.org/index.php?topic=48342.0

We will install 'time' manually and use another command "<set_env> time coverage run ..." that works without problems but it requires to install 'time' on Ubuntu 2024.04, too.

AlpineLinux processes a new command line without any problems.
  • Loading branch information
dmitry-lipetsk committed Mar 21, 2025
commit 126608d4c2f654122b29e132a97ea32112440c4b
1 change: 1 addition & 0 deletions Dockerfile--ubuntu_24_04.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt update
RUN apt install -y sudo curl ca-certificates
RUN apt update
RUN apt install -y openssh-server
RUN apt install -y time

RUN apt update
RUN apt install -y postgresql-common
Expand Down
10 changes: 4 additions & 6 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@ time coverage run -a -m pytest -l -v -n 4 -k "${TEST_FILTER}"


# run tests (PG_BIN)
time \
PG_BIN=$(pg_config --bindir) \
coverage run -a -m pytest -l -v -n 4 -k "${TEST_FILTER}"
PG_BIN=$(pg_config --bindir) \
time coverage run -a -m pytest -l -v -n 4 -k "${TEST_FILTER}"


# run tests (PG_CONFIG)
time \
PG_CONFIG=$(pg_config --bindir)/pg_config \
coverage run -a -m pytest -l -v -n 4 -k "${TEST_FILTER}"
PG_CONFIG=$(pg_config --bindir)/pg_config \
time coverage run -a -m pytest -l -v -n 4 -k "${TEST_FILTER}"


# show coverage
Expand Down