<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/docker.git/hack/test, branch master</title>
<subtitle>github.com: dotcloud/docker.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/'/>
<entry>
<title>ci(test): send coverage to codecov</title>
<updated>2022-09-08T10:12:03+00:00</updated>
<author>
<name>CrazyMax</name>
<email>crazy-max@users.noreply.github.com</email>
</author>
<published>2022-08-26T18:19:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=807c849431d1ccb15e5d010c19ee5dfaa8b11eb7'/>
<id>807c849431d1ccb15e5d010c19ee5dfaa8b11eb7</id>
<content type='text'>
Signed-off-by: CrazyMax &lt;crazy-max@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: CrazyMax &lt;crazy-max@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>logger/journald: rewrite reader w/o cursors</title>
<updated>2022-07-25T20:41:38+00:00</updated>
<author>
<name>Cory Snider</name>
<email>csnider@mirantis.com</email>
</author>
<published>2022-02-02T21:39:35+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=342b44bf20c49ec1b0da9d1973e1043f672638f6'/>
<id>342b44bf20c49ec1b0da9d1973e1043f672638f6</id>
<content type='text'>
Careful management of the journal read pointer is sufficient to ensure
that no entry is read more than once.

Unit test the journald logger without requiring a running journald by
using the systemd-journal-remote command to write arbitrary entries to
journal files.

Signed-off-by: Cory Snider &lt;csnider@mirantis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Careful management of the journal read pointer is sufficient to ensure
that no entry is read more than once.

Unit test the journald logger without requiring a running journald by
using the systemd-journal-remote command to write arbitrary entries to
journal files.

Signed-off-by: Cory Snider &lt;csnider@mirantis.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove "seccomp" build tag</title>
<updated>2022-05-12T21:48:35+00:00</updated>
<author>
<name>Tianon Gravi</name>
<email>admwiggin@gmail.com</email>
</author>
<published>2021-06-09T18:52:10+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=c9e19a2aa182e06ebe1653a2c3af02563acf9e36'/>
<id>c9e19a2aa182e06ebe1653a2c3af02563acf9e36</id>
<content type='text'>
Similar to the (now removed) `apparmor` build tag, this build-time toggle existed for users who needed to build without the `libseccomp` library.  That's no longer necessary, and given the importance of seccomp to the overall default security profile of Docker containers, it makes sense that any binary built for Linux should support (and use by default) seccomp if the underlying host does.

Signed-off-by: Tianon Gravi &lt;admwiggin@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Similar to the (now removed) `apparmor` build tag, this build-time toggle existed for users who needed to build without the `libseccomp` library.  That's no longer necessary, and given the importance of seccomp to the overall default security profile of Docker containers, it makes sense that any binary built for Linux should support (and use by default) seccomp if the underlying host does.

Signed-off-by: Tianon Gravi &lt;admwiggin@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hack/test/unit: run libnetwork tests sequentially</title>
<updated>2021-08-03T10:19:49+00:00</updated>
<author>
<name>Roman Volosatovs</name>
<email>roman.volosatovs@docker.com</email>
</author>
<published>2021-07-02T19:29:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=3af2217dc458524d8fde78006b48e63adc9bebb1'/>
<id>3af2217dc458524d8fde78006b48e63adc9bebb1</id>
<content type='text'>
Run all tests within `libnetwork` namespace with `-p=1`
in a separate `gotestsum` invocation.

Signed-off-by: Roman Volosatovs &lt;roman.volosatovs@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run all tests within `libnetwork` namespace with `-p=1`
in a separate `gotestsum` invocation.

Signed-off-by: Roman Volosatovs &lt;roman.volosatovs@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixup libnetwork lint errors</title>
<updated>2021-06-01T23:48:32+00:00</updated>
<author>
<name>Brian Goff</name>
<email>cpuguy83@gmail.com</email>
</author>
<published>2021-05-28T00:15:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=4b981436fe26724883cee71c15f218993ab53c5b'/>
<id>4b981436fe26724883cee71c15f218993ab53c5b</id>
<content type='text'>
Signed-off-by: Brian Goff &lt;cpuguy83@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Brian Goff &lt;cpuguy83@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix issues running libnetwork tests.</title>
<updated>2021-06-01T22:14:41+00:00</updated>
<author>
<name>Brian Goff</name>
<email>cpuguy83@gmail.com</email>
</author>
<published>2021-04-27T22:40:39+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=72c4a7b4969acbe5f8fd8dafbeb4481d9d856586'/>
<id>72c4a7b4969acbe5f8fd8dafbeb4481d9d856586</id>
<content type='text'>
libnetwork does different stuff depending on if you are running the
tests in a container or not... without telling it we are in a container
a bunch of the tests actually fail.

Signed-off-by: Brian Goff &lt;cpuguy83@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
libnetwork does different stuff depending on if you are running the
tests in a container or not... without telling it we are in a container
a bunch of the tests actually fail.

Signed-off-by: Brian Goff &lt;cpuguy83@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure docker-proxy is installed in unit-test ci</title>
<updated>2021-06-01T22:14:31+00:00</updated>
<author>
<name>Brian Goff</name>
<email>cpuguy83@gmail.com</email>
</author>
<published>2021-04-28T20:08:11+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=4da0dc974c4d4821c43c80560a8fd37a29a83274'/>
<id>4da0dc974c4d4821c43c80560a8fd37a29a83274</id>
<content type='text'>
(some) libnetwork tests require docker-proxy so we need to install that
in CI.

Signed-off-by: Brian Goff &lt;cpuguy83@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(some) libnetwork tests require docker-proxy so we need to install that
in CI.

Signed-off-by: Brian Goff &lt;cpuguy83@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>run shfmt</title>
<updated>2020-03-03T03:27:49+00:00</updated>
<author>
<name>Akihiro Suda</name>
<email>akihiro.suda.cz@hco.ntt.co.jp</email>
</author>
<published>2020-03-03T03:27:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=3cf82748dd5b31294fc2a303d98ced5a962f3f00'/>
<id>3cf82748dd5b31294fc2a303d98ced5a962f3f00</id>
<content type='text'>
git grep --name-only '^#!' | egrep -v '(vendor|\.go|Jenkinsfile)' | xargs shfmt -w -bn -ci -sr

Signed-off-by: Akihiro Suda &lt;akihiro.suda.cz@hco.ntt.co.jp&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git grep --name-only '^#!' | egrep -v '(vendor|\.go|Jenkinsfile)' | xargs shfmt -w -bn -ci -sr

Signed-off-by: Akihiro Suda &lt;akihiro.suda.cz@hco.ntt.co.jp&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hack/test/unit: fix custom TESTFLAGS not working</title>
<updated>2019-09-16T07:15:02+00:00</updated>
<author>
<name>Sebastiaan van Stijn</name>
<email>github@gone.nl</email>
</author>
<published>2019-09-13T14:01:54+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=0620990307aaf8ada706ffb6c5dc0628c92d84af'/>
<id>0620990307aaf8ada706ffb6c5dc0628c92d84af</id>
<content type='text'>
The `-test.timeout=5m` was glued directly after the current `TESTFLAGS`,
causing them to be non-functional;

Before:

    make TESTDEBUG=1 TESTDIRS='github.com/docker/docker/pkg/filenotify' TESTFLAGS='-test.run TestPollerEvent' test-unit
    + mkdir -p bundles
    + gotestsum --format=standard-quiet --jsonfile=bundles/go-test-report.json --junitfile=bundles/junit-report.xml -- -tags 'netgo seccomp libdm_no_deferred_remove' -cover -coverprofile=bundles/profile.out -covermode=atomic -test.run TestPollerEvent-test.timeout=5m github.com/docker/docker/pkg/filenotify
    testing: warning: no tests to run
    ok  	github.com/docker/docker/pkg/filenotify	0.003s	coverage: 0.0% of statements [no tests to run]

    DONE 0 tests in 0.298s

After:

    make TESTDEBUG=1 TESTDIRS='github.com/docker/docker/pkg/filenotify' TESTFLAGS='-test.run TestPollerEvent' test-unit
    + mkdir -p bundles
    + gotestsum --format=standard-quiet --jsonfile=bundles/go-test-report.json --junitfile=bundles/junit-report.xml -- -tags 'netgo seccomp libdm_no_deferred_remove' -cover -coverprofile=bundles/profile.out -covermode=atomic -test.run TestPollerEvent -test.timeout=5m github.com/docker/docker/pkg/filenotify
    ok  	github.com/docker/docker/pkg/filenotify	0.608s	coverage: 44.7% of statements

    DONE 1 tests in 0.922s

This was introduced in 42f0a0db75a921145c7f519f7b550e1392890da2

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `-test.timeout=5m` was glued directly after the current `TESTFLAGS`,
causing them to be non-functional;

Before:

    make TESTDEBUG=1 TESTDIRS='github.com/docker/docker/pkg/filenotify' TESTFLAGS='-test.run TestPollerEvent' test-unit
    + mkdir -p bundles
    + gotestsum --format=standard-quiet --jsonfile=bundles/go-test-report.json --junitfile=bundles/junit-report.xml -- -tags 'netgo seccomp libdm_no_deferred_remove' -cover -coverprofile=bundles/profile.out -covermode=atomic -test.run TestPollerEvent-test.timeout=5m github.com/docker/docker/pkg/filenotify
    testing: warning: no tests to run
    ok  	github.com/docker/docker/pkg/filenotify	0.003s	coverage: 0.0% of statements [no tests to run]

    DONE 0 tests in 0.298s

After:

    make TESTDEBUG=1 TESTDIRS='github.com/docker/docker/pkg/filenotify' TESTFLAGS='-test.run TestPollerEvent' test-unit
    + mkdir -p bundles
    + gotestsum --format=standard-quiet --jsonfile=bundles/go-test-report.json --junitfile=bundles/junit-report.xml -- -tags 'netgo seccomp libdm_no_deferred_remove' -cover -coverprofile=bundles/profile.out -covermode=atomic -test.run TestPollerEvent -test.timeout=5m github.com/docker/docker/pkg/filenotify
    ok  	github.com/docker/docker/pkg/filenotify	0.608s	coverage: 44.7% of statements

    DONE 1 tests in 0.922s

This was introduced in 42f0a0db75a921145c7f519f7b550e1392890da2

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>remove per-test -timeout logic because it does not work</title>
<updated>2019-09-09T21:09:57+00:00</updated>
<author>
<name>Tibor Vass</name>
<email>tibor@docker.com</email>
</author>
<published>2019-08-30T21:07:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=8bffe9524daacf84815d4dc7777b1cbd58d13718'/>
<id>8bffe9524daacf84815d4dc7777b1cbd58d13718</id>
<content type='text'>
Signed-off-by: Tibor Vass &lt;tibor@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Tibor Vass &lt;tibor@docker.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
