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

JAMES-2558 Tests should rely on SpamAssassin 3.4.2 #1793

Closed
wants to merge 6 commits into from

Conversation

chibenwa
Copy link
Member

@chibenwa chibenwa added this to the polish_2018_10 milestone Oct 10, 2018
@chibenwa
Copy link
Member Author

[fb95fe1e714c712cc6e40ea95a28138aa037bff4] Caused by: com.github.dockerjava.api.exception.DockerClientException: Could not build image: The command '/bin/sh -c apt-get update &&     DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y         gpg         libio-socket-ip-perl         libmail-dkim-perl         libnet-ident-perl         libsocket-getaddrinfo-perl         pyzor         razor         libdbi-perl         libdbd-pg-perl         spamassassin=${SPAMASSASSIN_VERSION}* &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Packaging not yet available exception?

@chibenwa
Copy link
Member Author

The container inherit Debian Stretch from the postgres container https://github.com/docker-library/postgres/blob/3f585c58df93e93b730c09a13e8904b96fa20c58/10/Dockerfile

But stretch is only 3.4.1 based cf https://packages.debian.org/fr/spamassassin

Switching to testing or unstable do not seem wize.

Maybe we should curl + dpkg some trusted 3.4.2 package over the internet (or update our APT lists)

@chibenwa
Copy link
Member Author

This should be done in the following days : https://tracker.debian.org/pkg/spamassassin

We can monitor progress here...

@trantienduchn
Copy link

test this please

@trantienduchn
Copy link

[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR] Errors: 
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR]   SpamAssassinInvokerTest.learnAsHamShouldAllowToForgetSpam » ContainerFetch Can...
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR]   SpamAssassinInvokerTest.learnAsHamShouldReturnTrueWhenLearningWorks » ContainerFetch
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR]   SpamAssassinInvokerTest.learnAsSpamShouldReturnTrueWhenLearningWorks » ContainerFetch
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsHamWhenMessageAlreadyLearnedAsHam » ContainerFetch
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsSpamWhenKnownAsSpam » ContainerFetch
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsSpamWhenMessageAlreadyLearnedAsSpam » ContainerFetch
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyHeadersField » ContainerFetch Can'...
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyHitsField » ContainerFetch Can't g...
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyRequiredHitsField » ContainerFetch
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [INFO] 
[fb95fe1e714c712cc6e40ea95a28138aa037bff4] [ERROR] Tests run: 14, Failures: 0, Errors: 9, Skipped: 0

@chibenwa
Copy link
Member Author

Yes no need to relaunch it, the debian package is not yet available

@chibenwa
Copy link
Member Author

test this please

(just to have a failing build report instead of an inapropriate pending build report, packaging is still not yet available...)

@trantienduchn
Copy link

here you are

[null] Tests in error: 
[null]   SpamAssassinInvokerTest.learnAsHamShouldAllowToForgetSpam » ContainerFetch Can...
[null]   SpamAssassinInvokerTest.learnAsHamShouldReturnTrueWhenLearningWorks » ContainerFetch
[null]   SpamAssassinInvokerTest.learnAsSpamShouldReturnTrueWhenLearningWorks » ContainerFetch
[null]   SpamAssassinInvokerTest.scanMailShouldMarkAsHamWhenMessageAlreadyLearnedAsHam » ContainerFetch
[null]   SpamAssassinInvokerTest.scanMailShouldMarkAsSpamWhenKnownAsSpam » ContainerFetch
[null]   SpamAssassinInvokerTest.scanMailShouldMarkAsSpamWhenMessageAlreadyLearnedAsSpam » ContainerFetch
[null]   SpamAssassinInvokerTest.scanMailShouldModifyHeadersField » ContainerFetch Can'...
[null]   SpamAssassinInvokerTest.scanMailShouldModifyHitsField » ContainerFetch Can't g...
[null]   SpamAssassinInvokerTest.scanMailShouldModifyRequiredHitsField » ContainerFetch
[null] 
[null] Tests run: 111, Failures: 0, Errors: 9, Skipped: 0

@chibenwa
Copy link
Member Author

chibenwa commented Nov 5, 2018

test this please

@trantienduchn
Copy link

[ba6fa212f3e3857376b43b3714c65dfd32cd063c] [ERROR]   SpamAssassinInvokerTest.learnAsHamShouldAllowToForgetSpam » ContainerFetch Can...
[ba6fa212f3e3857376b43b3714c65dfd32cd063c] [ERROR]   SpamAssassinInvokerTest.learnAsHamShouldReturnTrueWhenLearningWorks » ContainerFetch
[ba6fa212f3e3857376b43b3714c65dfd32cd063c] [ERROR]   SpamAssassinInvokerTest.learnAsSpamShouldReturnTrueWhenLearningWorks » ContainerFetch
[ba6fa212f3e3857376b43b3714c65dfd32cd063c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsHamWhenMessageAlreadyLearnedAsHam » ContainerFetch
[ba6fa212f3e3857376b43b3714c65dfd32cd063c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsSpamWhenKnownAsSpam » ContainerFetch
[ba6fa212f3e3857376b43b3714c65dfd32cd063c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsSpamWhenMessageAlreadyLearnedAsSpam » ContainerFetch
[ba6fa212f3e3857376b43b3714c65dfd32cd063c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyHeadersField » ContainerFetch Can'...
[ba6fa212f3e3857376b43b3714c65dfd32cd063c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyHitsField » ContainerFetch Can't g...
[ba6fa212f3e3857376b43b3714c65dfd32cd063c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyRequiredHitsField » ContainerFetch

@chibenwa
Copy link
Member Author

test this please

@rouazana
Copy link

still

[e244bf048151fffb286567264e4f6e7a256a899b] [ERROR] Errors: 
[e244bf048151fffb286567264e4f6e7a256a899b] [ERROR]   SpamAssassinInvokerTest.learnAsHamShouldAllowToForgetSpam » ContainerLaunch Co...
[e244bf048151fffb286567264e4f6e7a256a899b] [ERROR]   SpamAssassinInvokerTest.learnAsHamShouldReturnTrueWhenLearningWorks » ContainerLaunch
[e244bf048151fffb286567264e4f6e7a256a899b] [ERROR]   SpamAssassinInvokerTest.learnAsSpamShouldReturnTrueWhenLearningWorks » ContainerLaunch
[e244bf048151fffb286567264e4f6e7a256a899b] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsHamWhenMessageAlreadyLearnedAsHam » ContainerLaunch
[e244bf048151fffb286567264e4f6e7a256a899b] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsSpamWhenKnownAsSpam » ContainerLaunch
[e244bf048151fffb286567264e4f6e7a256a899b] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsSpamWhenMessageAlreadyLearnedAsSpam » ContainerLaunch
[e244bf048151fffb286567264e4f6e7a256a899b] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyHeadersField » ContainerLaunch Con...
[e244bf048151fffb286567264e4f6e7a256a899b] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyHitsField » ContainerLaunch Contai...
[e244bf048151fffb286567264e4f6e7a256a899b] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyRequiredHitsField » ContainerLaunch

@chibenwa
Copy link
Member Author

One minute is a little too low to build successfully a Dockerfile

@rouazana
Copy link

still

[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [INFO] Running org.apache.james.spamassassin.SpamAssassinResultTest
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.879 s - in org.apache.james.spamassassin.SpamAssassinResultTest
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [INFO] 
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [INFO] Results:
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [INFO] 
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [ERROR] Errors: 
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [ERROR]   SpamAssassinInvokerTest.learnAsHamShouldAllowToForgetSpam » ContainerLaunch Co...
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [ERROR]   SpamAssassinInvokerTest.learnAsHamShouldReturnTrueWhenLearningWorks » ContainerLaunch
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [ERROR]   SpamAssassinInvokerTest.learnAsSpamShouldReturnTrueWhenLearningWorks » ContainerLaunch
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsHamWhenMessageAlreadyLearnedAsHam » ContainerLaunch
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsSpamWhenKnownAsSpam » ContainerLaunch
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldMarkAsSpamWhenMessageAlreadyLearnedAsSpam » ContainerLaunch
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyHeadersField » ContainerLaunch Con...
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyHitsField » ContainerLaunch Contai...
[ba593118a7ae3798efb3757c7ee8b4c7d22cca6c] [ERROR]   SpamAssassinInvokerTest.scanMailShouldModifyRequiredHitsField » ContainerLaunch

test this please...

@@ -52,7 +52,7 @@ public void waitUntilReady(WaitStrategyTarget waitStrategyTarget) {
return spamAssassinContainer
.execInContainer("spamassassin", "-V")
.getStdout()
.contains("SpamAssassin version 3.4.1");
.contains("SpamAssassin version 3.4.2");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha!

@chibenwa
Copy link
Member Author

Merged

@chibenwa chibenwa closed this Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants