Codemagic build not publishing in s3 time out error #955
-
We are facing issue in Codemagic from yesterday. While publishing to S3 it took more than 25 mins. As the default build timeout exceeds it shows error. Please do the needful. |
Beta Was this translation helpful? Give feedback.
Replies: 21 comments 6 replies
-
Hi @mohan-balakrishnan Have you tried increasing the max build duration ? How long does it usually take to complete that step ? |
Beta Was this translation helpful? Give feedback.
-
@mohan-balakrishnan we are looking into it and will keep you updated asap. |
Beta Was this translation helpful? Give feedback.
-
sorry it took longer than we expected :( can you run another build and check upload time now? |
Beta Was this translation helpful? Give feedback.
-
I am trying to debug the issue at the moment and unfortunately I am not able to reproduce the issue with my test environment, tried on a couple of different M1 hosts already and see the upload speed to S3 is 1-2.5 MiB/s. Would you please post a link to any of your failed / timed out builds? Also, would it be ok if I try to rerun one of such builds on your behalf? That would help a lot to investigate the issue and find a fix. |
Beta Was this translation helpful? Give feedback.
-
@mohan-balakrishnan never mind, I finally managed to reproduce the issue so I will continue my investigation and will post an update here as soon as I find something. |
Beta Was this translation helpful? Give feedback.
-
@remarkov - Thanks for your update and support. |
Beta Was this translation helpful? Give feedback.
-
@mohan-balakrishnan so far I discovered a very frustrating thing. the issue does not affect any certain buckets nor users nor file types. the file size is what matters only! and that is why I was not able to reproduce it initially, I was trying with a 600 MB test file and got a decent transfer speeds. but once I tried with a 8 MB file I've got the same very poor network performance. more to that, I tried the same test on my local M1 laptop and got the same issue! trying the same on Intel machine the 8 MB files uploads in 2-3 seconds. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately whatever I tried gave me the same result on M1, even when I tried to install the x86 version and run it using Rosetta. |
Beta Was this translation helpful? Give feedback.
-
@mohan-balakrishnan are you on M1 machine? I just tried 2.7.18 on M1 host and got the same slow upload speed. if you are on M1, could you please post the full output of |
Beta Was this translation helpful? Give feedback.
-
@mohan-balakrishnan Ah, windows is a different story, even macOS but running on Intel CPU works fine, just M1 hosts are somehow affected. |
Beta Was this translation helpful? Give feedback.
-
@remarkov - Any solution or workaround for this. |
Beta Was this translation helpful? Give feedback.
-
@mohan-balakrishnan further investigation showed that this is a weird limitation of the virtualization platform we use under the hood to run our builder machines. Unfortunately to the moment we were not able to find any workaround whatever we tried. We keep looking for a working solution but I can't give any ETA for now. |
Beta Was this translation helpful? Give feedback.
-
@mohan-balakrishnan sorry for the delay, here is an update. The underlying issue seems to be in the Apple virtualization framework itself so the chances it will be properly fixed any time soon are rather low. |
Beta Was this translation helpful? Give feedback.
-
@mohan-balakrishnan sorry, I was too quick to post the good news, I noticed a bug in the new configuration and had to rollback the change. Anyway, hopefully this will be fixed pretty soon and most likely you will be able to test the fix. I'll post another update here once everything is live. |
Beta Was this translation helpful? Give feedback.
-
@remarkov - any updates on this ? |
Beta Was this translation helpful? Give feedback.
-
https://github.com/aws/aws-cli/issues/7481 AWS was informed, but they are not super active there |
Beta Was this translation helpful? Give feedback.
-
Hello, there is AWS repo issue that is being investigated by them https://github.com/aws/aws-cli/issues/7481 |
Beta Was this translation helpful? Give feedback.
-
Hi @mohan-balakrishnan , Hi @gregiOS , |
Beta Was this translation helpful? Give feedback.
-
This discussion is being closed due to no activity in the last 14 days. You can reopen the discussion at any time if needed. |
Beta Was this translation helpful? Give feedback.
-
Hey @mohan-balakrishnan @gregiOS just wanted to follow up on this issue.. Here's a PoC (bucket_name should be changed to the target bucket, i.e. "github-cloud" for GitHub LFS):
In our testing, a 10MB git-lfs push took 6 seconds with this fix, and > 90 seconds without it. We're not sure what exactly is causing such a significant performance difference between the IPs in 3.5.0.0/19 and any other valid S3 service IPs, but it does seem to suggest the problem isn't entirely related to the TCP configuration on the guest and host. |
Beta Was this translation helpful? Give feedback.
-
I'm tentatively closing the discussion since we haven't heard back from you. You can open the discussion again by replying to this message or opening a new discussion. |
Beta Was this translation helpful? Give feedback.
Hey @mohan-balakrishnan @gregiOS just wanted to follow up on this issue..
It was discovered that uploads to AWS from with an Apple Virtualization Framework VM would not be slow if we pinned the S3 endpoint IPs to 3.5.0.0/19 via /etc/hosts (This range is advertised for S3 here https://ip-ranges.amazonaws.com/ip-ranges.json)
Here's a PoC (bucket_name should be changed to the target bucket, i.e. "github-cloud" for GitHub LFS):