Skip to content

Commit 0c2764c

Browse files
committed
Merged PR 6584837: Fix the 1es agent not enough space issue
Fix the 1es agent not enough space issue The symbolic link on the source folder does not work as expect, it might be caused by the source folder is recreated when checking out the source code. To fix the issue, change to make the symbolic link for the workspace.
1 parent fcdd8fb commit 0c2764c

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.pipelines/init-agent.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,14 @@ steps:
8787
sudo systemctl start docker
8888
docker info
8989
90-
# Make symbolic link for the source path to increase the space
91-
sudo rm -rf $(Agent.BuildDirectory)/s /data/s
92-
sudo mkdir /data/s
93-
sudo chown $USER:$(id -gn) /data/s
94-
ln -s /data/s $(Agent.BuildDirectory)/s
90+
# Make symbolic link for the workspace to increase the space
91+
sudo rm -rf $(Agent.BuildDirectory)/s /data/w
92+
sudo mkdir /data/w
93+
sudo chown $USER:$(id -gn) /data/w
94+
mv -f $(Agent.BuildDirectory)/* /data/w/
95+
mkdir /data/w/s
96+
sudo rm -rf $(Agent.BuildDirectory)
97+
ln -s /data/w $(Agent.BuildDirectory)
9598
echo "pwd=$(pwd)"
9699
ls -lt $(Agent.BuildDirectory)
97100
ls -lt

.pipelines/prepare_agent.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ steps:
3131
sudo mkfs.ext4 -F ${disk}1 || true
3232
sudo mount ${disk}1 /data
3333
34-
# Make symbolic link for the source path to increase the space
35-
sudo rm -rf $(Agent.BuildDirectory)/s /data/s
36-
sudo mkdir /data/s
37-
sudo chown $USER:$(id -gn) /data/s
38-
ln -s /data/s $(Agent.BuildDirectory)/s
34+
# Make symbolic link for the workspace to increase the space
35+
sudo rm -rf $(Agent.BuildDirectory)/s /data/w
36+
sudo mkdir /data/w
37+
sudo chown $USER:$(id -gn) /data/w
38+
mv -f $(Agent.BuildDirectory)/* /data/w/
39+
mkdir /data/w/s
40+
sudo rm -rf $(Agent.BuildDirectory)
41+
ln -s /data/w $(Agent.BuildDirectory)
3942
echo "pwd=$(pwd)"
4043
ls -lt $(Agent.BuildDirectory)
4144
ls -lt

0 commit comments

Comments
 (0)