Numerous tests in our automated test suite started failing this morning. The common factor is that the tests are creating or modifying "customer" records with an email address that uses the example.com domain. These tests are not trying to send email, the part of the code that's failing is the input validation which uses Email::Valid with the MX check enabled.

First thing this morning, the tests were only failing on our CI server. The same tests ran fine on our development server. As we went back and forth comparing different test scripts on the two hosts, we eventually realised that all the same tests were now failing on the dev server too. This could possibly be explained by something having changed about the MX record for example.com which affected different hosts at different times depending on DNS cache expiry.

Of course there is a compelling argument that our tests should not be relying on someone else's DNS setup in general and the MX setup for example.com in particular. However the fact remains, these tests passed yesterday and are failing today.

We have put in a workaround in our validation routine so this is not really a question - more of a heads up, in case something like this happens to you today :-)

In reply to Email::Valid rejecting emails @example.com today by grantm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.