{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/web-platform-tests/issues/11105","repository_url":"https://api.github.com/repos/w3c/web-platform-tests","labels_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/11105/labels{/name}","comments_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/11105/comments","events_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/11105/events","html_url":"https://github.com/w3c/web-platform-tests/issues/11105","id":325388323,"number":11105,"title":"Impossible to write .any.js test to be run by service workers with a secure origin","user":{"login":"anitawoodruff","id":1918555,"avatar_url":"https://avatars3.githubusercontent.com/u/1918555?v=4","gravatar_id":"","url":"https://api.github.com/users/anitawoodruff","html_url":"https://github.com/anitawoodruff","followers_url":"https://api.github.com/users/anitawoodruff/followers","following_url":"https://api.github.com/users/anitawoodruff/following{/other_user}","gists_url":"https://api.github.com/users/anitawoodruff/gists{/gist_id}","starred_url":"https://api.github.com/users/anitawoodruff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anitawoodruff/subscriptions","organizations_url":"https://api.github.com/users/anitawoodruff/orgs","repos_url":"https://api.github.com/users/anitawoodruff/repos","events_url":"https://api.github.com/users/anitawoodruff/events{/privacy}","received_events_url":"https://api.github.com/users/anitawoodruff/received_events","type":"User","site_admin":false},"labels":[{"id":45230790,"url":"https://api.github.com/repos/w3c/web-platform-tests/labels/infra","name":"infra","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-05-22T17:16:33Z","updated_at":"2018-05-24T17:49:20Z","closed_at":null,"author_association":"COLLABORATOR","body":"My new test: \r\n\r\nnotifications/interfaces.https.any.js\r\n\r\nhttps://pastebin.com/BG6Xu6Pd\r\n\r\nSeems the '.https.' is stripped for service workers which leaves it unable to find the file:\r\n\r\n ```\r\n0:28.90 TEST_START: /notifications/interfaces.https.any.serviceworker.html\r\n 0:29.14 WARNING Traceback (most recent call last):                   \r\n  File \"~/web-platform-tests/tools/wptserve/wptserve/handlers.py\", line 262, in __call\r\n__                                                                    \r\n    rv = self.func(request, response)                    \r\n  File \"~/web-platform-tests/tools/serve/serve.py\", line 61, in handle_request\r\n    self.check_exposure(request)                        \r\n  File \"~/web-platform-tests/tools/serve/serve.py\", line 149, in check_exposure\r\n    for (key, value) in self._get_metadata(request):  \r\n  File \"~/web-platform-tests/tools/serve/serve.py\", line 102, in _get_metadata\r\n    with open(path, \"rb\") as f:\r\nIOError: [Errno 2] No such file or directory: '~/web-platform-tests/notifications/inte\r\nrfaces.any.js'\r\n```\r\n\r\n@jgraham "},"comment":{"url":"https://api.github.com/repos/w3c/web-platform-tests/issues/comments/391802381","html_url":"https://github.com/w3c/web-platform-tests/issues/11105#issuecomment-391802381","issue_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/11105","id":391802381,"user":{"login":"jgraham","id":294864,"avatar_url":"https://avatars1.githubusercontent.com/u/294864?v=4","gravatar_id":"","url":"https://api.github.com/users/jgraham","html_url":"https://github.com/jgraham","followers_url":"https://api.github.com/users/jgraham/followers","following_url":"https://api.github.com/users/jgraham/following{/other_user}","gists_url":"https://api.github.com/users/jgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/jgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgraham/subscriptions","organizations_url":"https://api.github.com/users/jgraham/orgs","repos_url":"https://api.github.com/users/jgraham/repos","events_url":"https://api.github.com/users/jgraham/events{/privacy}","received_events_url":"https://api.github.com/users/jgraham/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T17:49:20Z","updated_at":"2018-05-24T17:49:20Z","author_association":"MEMBER","body":"https://github.com/w3c/web-platform-tests/pull/11151 is a not-great fix here.\r\n\r\nLoading the test from `test.https.https.any.serviceworker.html` is wrong because that's not what's in the manifest and violates the assumption that `.https.` works like a flag. Also it's super ugly."}}
{"actor":{"display_login":"jgraham"}}