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

Use custom TMP path for FreeBSD #415

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

vladbogo
Copy link
Collaborator

No description provided.

@fauust
Copy link
Collaborator

fauust commented Apr 15, 2024

LGTM but probably it's easier to test this manually before merging?

You can use something like below to restart containers easily on the dev machine:

#!/usr/bin/env bash

. /home/faust/lib/bash.sh

echo "Running containers:"
docker ps --format '{{.Names}}' | sort

echo ""
read -p "Select container to restart: " \
  -r NAME

typeset -r VAR_DC_DIR="/srv/dev/docker-compose"

cd $VAR_DC_DIR || err "cd $VAR_DC_DIR"

docker-compose --env-file .env.dev restart $NAME

@fauust
Copy link
Collaborator

fauust commented Apr 25, 2024

This is not working as expected:

  HOME=/
  LANG=C.UTF-8
  MM_CHARSET=UTF-8
  MTR_PRINT_CORE=detailed
  PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
  PWD=/data/buildbot/workers/dev/amd64-freebsd-14/build
  RC_PID=15153
  TMPDIR=./tmpdir
 using PTY: False
Logging: mysql-test-run.pl  --verbose-restart --force --retry=3 --max-save-core=2 --max-save-datadir=10 --max-test-fail=20 --mem --parallel=20
VS config: 
vardir: /data/buildbot/workers/dev/amd64-freebsd-14/build/mysql-test/var
Removing old var directory...
Creating var directory '/data/buildbot/workers/dev/amd64-freebsd-14/build/mysql-test/var'...
 - symlinking 'var' to '/tmp/var_auto_PEPD'

See: https://buildbot.dev.mariadb.org/#/builders/2/builds/12/steps/6/logs/stdio

@vladbogo
Copy link
Collaborator Author

vladbogo commented Apr 25, 2024

@fauust theoretically it should

[vlad@hz-freebsd-bbw1 ~]$ mktemp
/tmp/tmp.KUkl4fcEDu
[vlad@hz-freebsd-bbw1 ~]$ export TMPDIR=./tmp
[vlad@hz-freebsd-bbw1 ~]$ mktemp
mktemp: mkstemp failed on ./tmp/tmp.wXTvJjm2SE: No such file or directory
[vlad@hz-freebsd-bbw1 ~]$

@fauust
Copy link
Collaborator

fauust commented Apr 25, 2024

@vladbogo, this is the step that is not working as expected:

Creating var directory '/data/buildbot/workers/dev/amd64-freebsd-14/build/mysql-test/var'...
 - symlinking 'var' to '/tmp/var_auto_PEPD'

We need to find a way to not use /tmp but something relative to the current path that would be cleaned at the end of the execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants