Skip to content
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

[Bug]: PG17 Broken Docker Hydra's pipeline for tests #277

Open
ivan-v-kush opened this issue Jan 16, 2025 · 1 comment
Open

[Bug]: PG17 Broken Docker Hydra's pipeline for tests #277

ivan-v-kush opened this issue Jan 16, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ivan-v-kush
Copy link
Contributor

ivan-v-kush commented Jan 16, 2025

What's wrong?

When compile for PG17, Docker Hydra's pipeline is broken for tests.

#272 (comment)

I try to launch tests using Docker, modified for this docker-build.sh. Added --target checker to launch checker stage.

docker build  --progress=plain --target checker -t $REPO:$TAG .

And got an error:

# initializing database system by copying initdb template
# copying of initdb template failed
# Examine "/columnar/src/test/regress/log/initdb.log" for the reason.
# Command was: cp -RPp "/tmp_install/initdb-template" "/columnar/src/test/regress/tmp_check/data" > "/columnar/src/test/regress/log/initdb.log" 2>&1
Bail out!make[1]: *** [Makefile:27: check-regression-columnar] Error 2
make[1]: Leaving directory '/columnar/src/test/regress'
make: *** [Makefile:49: check-all] Error 2

initdb.log contains

cp: cannot stat '/tmp_install/initdb-template': No such file or directory
@ivan-v-kush
Copy link
Contributor Author

ivan-v-kush commented Jan 16, 2025

I tried manually to launch installcheck, but nothing to be done

make -C /columnar installcheck USE_PGXS=1  PG_CONFIG=/usr/lib/postgresql/17/bin/pg_config
make: Entering directory '/columnar'
make: Nothing to be done for 'installcheck'.
make: Leaving directory '/columnar'

Steps:

# prepare cluster
su - postgres -c '/usr/lib/postgresql/17/bin/initdb -D /var/lib/postgresql/17/data'
su - postgres -c "/usr/lib/postgresql/17/bin/pg_ctl -D  /var/lib/postgresql/17/data stop"

# compile
make -C /columnar clean all USE_PGXS=1  PG_CONFIG=/usr/lib/postgresql/17/bin/pg_config
make -C /columnar install USE_PGXS=1  PG_CONFIG=/usr/lib/postgresql/17/bin/pg_config

# launch cluster
su - postgres -c "/usr/lib/postgresql/17/bin/pg_ctl -D  /var/lib/postgresql/17/data -l logfile -w start"

# launch test
make -C /columnar installcheck USE_PGXS=1  PG_CONFIG=/usr/lib/postgresql/17/bin/pg_config

@ivan-v-kush ivan-v-kush changed the title [Bug]: Broken Docker Hydra's pipeline for tests [Bug]: PG17 Broken Docker Hydra's pipeline for tests Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant