Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Lambda function misses certain builds because of spaces #468

Closed
peterbe opened this issue May 17, 2018 · 1 comment
Closed

Lambda function misses certain builds because of spaces #468

peterbe opened this issue May 17, 2018 · 1 comment
Assignees

Comments

@peterbe
Copy link
Contributor

peterbe commented May 17, 2018

@wlach discovered that when Firefox 60.0.1 was built yesterday only the ['linux-i686', 'linux-x86_64'] platforms were saved in Buildhub. Curious.

Compare: Windows and Linux.

One thing to notice is that the Windows filename contains spaces, the Linux one does not. The reason we think the cron job does not have a problem with this is because of that space. See this code from the cron job.

@peterbe peterbe self-assigned this May 17, 2018
@peterbe
Copy link
Contributor Author

peterbe commented May 17, 2018

For the record, if the S3 Event JSON looks like this:

{
    "Records": [
        {
            "eventTime": "2018-08-08T17:06:52.030Z",
            "s3": {
                "bucket": { "name": "archive-firefox" },
                "object": {
                    "key":
                        "pub/firefox/releases/60.0.1/win32/en-US/Firefox Setup 60.0.1.exe",
                    "size": 51001024
                }
            }
        }
    ]
}

...then it works.

But if it looks like this...:

{
    "Records": [
        {
            "eventTime": "2018-08-08T17:06:52.030Z",
            "s3": {
                "bucket": { "name": "archive-firefox" },
                "object": {
                    "key":
                        "pub/firefox/releases/60.0.1/win32/en-US/Firefox+Setup+60.0.1.exe",
                    "size": 51001024
                }
            }
        }
    ]
}

(note the difference on Firefox+Setup+60.0.1.exe vs Firefox Setup 60.0.1.exe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant