Skip to content

Commit 4a18984

Browse files
authored
Merge pull request #6171 from kmuriki/r3.8.3
R3.8.3
2 parents 08dd8e6 + 816ca3b commit 4a18984

File tree

5 files changed

+45
-3
lines changed

5 files changed

+45
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Singularity Changelog
22

3+
## v3.8.3 - [2021-09-07]
4+
5+
### Bug fixes
6+
7+
- Fix the display of false warning and avoid repeated bind mounts.
8+
39
## v3.8.2 - [2021-08-31]
410

511
### Bug fixes

INSTALL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ $ mkdir -p ${GOPATH}/src/github.com/hpcng && \
8787
To build a stable version of Singularity, check out a [release tag](https://github.com/hpcng/singularity/tags) before compiling:
8888

8989
```
90-
$ git checkout v3.8.2
90+
$ git checkout v3.8.3
9191
```
9292

9393
## Compiling Singularity
@@ -130,7 +130,7 @@ as shown above. Then download the latest
130130
and use it to install the RPM like this:
131131

132132
```
133-
$ export VERSION=3.8.2 # this is the singularity version, change as you need
133+
$ export VERSION=3.8.3 # this is the singularity version, change as you need
134134
135135
$ wget https://github.com/hpcng/singularity/releases/download/v${VERSION}/singularity-${VERSION}.tar.gz && \
136136
rpmbuild -tb singularity-${VERSION}.tar.gz && \
@@ -146,7 +146,7 @@ tarball and use it to install Singularity:
146146
$ cd $GOPATH/src/github.com/hpcng/singularity && \
147147
./mconfig && \
148148
make -C builddir rpm && \
149-
sudo rpm -ivh ~/rpmbuild/RPMS/x86_64/singularity-3.8.2*.x86_64.rpm # or whatever version you built
149+
sudo rpm -ivh ~/rpmbuild/RPMS/x86_64/singularity-3.8.3*.x86_64.rpm # or whatever version you built
150150
```
151151

152152
To build an rpm with an alternative install prefix set RPMPREFIX on the

e2e/actions/actions.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,7 @@ func E2ETests(env e2e.TestEnv) testhelper.Tests {
22702270
"issue 5599": c.issue5599, // https://github.com/hpcng/singularity/issues/5599
22712271
"issue 5631": c.issue5631, // https://github.com/hpcng/singularity/issues/5631
22722272
"issue 5690": c.issue5690, // https://github.com/hpcng/singularity/issues/5690
2273+
"issue 6165": c.issue6165, // https://github.com/hpcng/singularity/issues/6165
22732274
"network": c.actionNetwork, // test basic networking
22742275
"binds": c.actionBinds, // test various binds
22752276
"exit and signals": c.exitSignals, // test exit and signals propagation

e2e/actions/regressions.go

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,3 +684,36 @@ func (c actionTests) invalidRemote(t *testing.T) {
684684
)
685685

686686
}
687+
688+
// Check that a bind mount without a destination is not added two times.
689+
func (c actionTests) issue6165(t *testing.T) {
690+
e2e.EnsureImage(t, c.env)
691+
692+
workspace, cleanup := e2e.MakeTempDir(t, c.env.TestDir, "issue6165-", "")
693+
defer e2e.Privileged(cleanup)
694+
695+
hostCanaryFile := filepath.Join(workspace, "file")
696+
697+
if err := fs.Touch(hostCanaryFile); err != nil {
698+
t.Fatalf("failed to create canary_file: %s", err)
699+
}
700+
701+
c.env.RunSingularity(
702+
t,
703+
e2e.WithProfile(e2e.UserProfile),
704+
e2e.WithCommand("exec"),
705+
e2e.WithArgs(
706+
"--contain",
707+
"--bind", hostCanaryFile,
708+
c.env.ImagePath,
709+
"test", "-f", hostCanaryFile,
710+
),
711+
e2e.ExpectExit(
712+
0,
713+
e2e.ExpectError(
714+
e2e.UnwantedContainMatch,
715+
"destination is already in the mount point list",
716+
),
717+
),
718+
)
719+
}

pkg/runtime/engine/singularity/config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ func ParseBindPath(paths []string) ([]BindPath, error) {
408408
}
409409
binds = append(binds, bp)
410410
elem = 0
411+
bind = ""
412+
continue
411413
}
412414
// new bind path
413415
bind = s

0 commit comments

Comments
 (0)