Page MenuHomePhabricator

/mnt/nfs/labstore-secondary-tools-project no longer seems to be mounted in the new container on Toolforge
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • push this content in ~/check.sh in a tool
#!/usr/bin/bash
if [ -d "/data/project" ]; then 
  echo "/data/project exists."
else
  echo "/data/project isn't exist."
fi
if [ -d "/mnt/nfs/labstore-secondary-tools-project" ]; then 
  echo "/mnt/nfs/labstore-secondary-tools-project exists."
else
  echo "/mnt/nfs/labstore-secondary-tools-project isn't exist."
fi
  • run chmod +x ~/check.sh; toolforge jobs run test --image bullseye --command ~/check.sh -o ~/tmp.log -e ~/tmp.log --wait 10; cat ~/tmp.log

What happens?:

INFO: job 'test' completed

/data/project exists.
/mnt/nfs/labstore-secondary-tools-project isn't exist.

Since /data/project is a symbolic link to /mnt/nfs/labstore-secondary-tools-project on Toolforge, some tools such as pnpm will write /mnt/nfs/labstore-secondary-tools-project instead of /data/project to the file, so that it cannot be executed in the container.

What should have happened instead?:

If this is a feature that was removed on purpose, hopefully a label can be added to restore the previous behavior.

Event Timeline

Since /data/project is a symbolic link to /mnt/nfs/labstore-secondary-tools-project on Toolforge, some tools such as pnpm will write /mnt/nfs/labstore-secondary-tools-project instead of /data/project to the file, so that it cannot be executed in the container.

Does this happen if you run pnpm inside a container?

Since /data/project is a symbolic link to /mnt/nfs/labstore-secondary-tools-project on Toolforge, some tools such as pnpm will write /mnt/nfs/labstore-secondary-tools-project instead of /data/project to the file, so that it cannot be executed in the container.

Does this happen if you run pnpm inside a container?

No, /data/project in the container is not a symbolic link, so /mnt/nfs/labstore-secondary-tools-project will not appear in the file written by pnpm executed in the container.