{"id":480,"date":"2020-10-13T08:14:36","date_gmt":"2020-10-13T08:14:36","guid":{"rendered":"https:\/\/blog.get-map.org\/?p=480"},"modified":"2020-10-13T08:14:36","modified_gmt":"2020-10-13T08:14:36","slug":"how-not-to-test-changes","status":"publish","type":"post","link":"https:\/\/blog.get-map.org\/index.php\/2020\/10\/13\/how-not-to-test-changes\/","title":{"rendered":"How not to test changes &#8230;"},"content":{"rendered":"<p><a name=\"preamble\"><\/a> <\/p>\n<p>Yesterday I found out the hard way that the <a href=\"https:\/\/pois.get-map.org\">neighborhood POI frontend<\/a> did no longer work, and must have been broken for quite a while already.<\/p>\n<p>Why didn&#8217;t I spot this in testing? Well &#8230;<\/p>\n<ul>\n<li> The problem was a typo in the OCitysMap renderer backend code, not in the frontend <\/li>\n<li> I tested the change back then locally <\/li>\n<li> But due to another typo in the test setup the local config for the POI frontend was copied to the wrong folder, and so not actually used <\/li>\n<li> So the frontend fell back to default settings for the rendering host, and that happened to be the public, not the local server <\/li>\n<li> Meaning that when testing the change I actually tested the frontend, which didn&#8217;t really change, against the not yet changed public render backend <\/li>\n<li> As test results looked good I pushed the changes, pulled them on the public server, but didn&#8217;t test there once more <\/li>\n<li> So the typo in the renderer went unnoticed as I actually didn&#8217;t test the local instance of that, and after the push\/pull the public instance was broken, too \ud83d\ude41 <\/li>\n<\/ul>\n<p>Renderer code and local test setup are fixed now, so something like this should hopefully not happen again.<\/p>\n<p>Now I need to work on making the alternative frontend send email notifications about rendering errors to me, like the main frontend already does, so that a failure like this can&#8217;t go unnoticed for this long &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I found out the hard way that the neighborhood POI frontend did no longer work, and must have been broken for quite a while already. Why didn&#8217;t I spot this in testing? Well &#8230; The problem was a typo in the OCitysMap renderer backend code, not in the frontend I tested the change back &hellip; <a href=\"https:\/\/blog.get-map.org\/index.php\/2020\/10\/13\/how-not-to-test-changes\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How not to test changes &#8230;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/posts\/480"}],"collection":[{"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/comments?post=480"}],"version-history":[{"count":1,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/posts\/480\/revisions"}],"predecessor-version":[{"id":481,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/posts\/480\/revisions\/481"}],"wp:attachment":[{"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/media?parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/categories?post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/tags?post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}