tag:help.appveyor.com,2012-11-13:/discussions/problems/10464-building-the-python-core-freezes-on-generating-code-for-a-very-long-timeAppVeyor: Discussion 2018-06-03T00:57:53Ztag:help.appveyor.com,2012-11-13:Comment/443039012017-12-14T18:30:38Z2017-12-14T18:31:09ZBuilding the python core freezes on 'Generating code' For a very long time.<div><p>Secure-file tools is failing on PRs because secure variable ‘SECRET_KEY’ is not set for PR builds (you can allow secure variables for either private repo or PRs from the same repo - secure vars in PRs from forks are not allowed)</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/443039012017-12-14T18:46:40Z2017-12-14T19:52:20ZBuilding the python core freezes on 'Generating code' For a very long time.<div><p>I just now changed the setting to enable that on PR's to the same Repo. Thanks for pointing that out.</p>
<p>However the very long <code>Generating Code</code> part seems to still be a problem though.</p>
<p>Also how can I make it where both builds from the Pull Requuests actually start at the same time. Every time I try to make it like this it seems to not work that way.</p></div>seandhunt_7tag:help.appveyor.com,2012-11-13:Comment/443039012017-12-14T20:02:06Z2017-12-14T20:02:15ZBuilding the python core freezes on 'Generating code' For a very long time.<div><p>Use <code>Enable secure variables in Pull Requests from the same repository only</code> checkbox in General setting in UI.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/443039012017-12-14T21:15:30Z2017-12-14T21:17:22ZBuilding the python core freezes on 'Generating code' For a very long time.<div><p>I did that, however there is still the issue where the <code>pythoncore.vcxproj</code> project file in the <code>cpython</code> repository still takes minutes to recompile 1 or 3 of their C Source files that should only take seconds to do.</p></div>seandhunt_7tag:help.appveyor.com,2012-11-13:Comment/443039012017-12-14T21:20:31Z2017-12-14T21:20:31ZBuilding the python core freezes on 'Generating code' For a very long time.<div><p>Can you send a like to the build where it took seconds?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/443039012017-12-14T21:29:10Z2017-12-14T21:30:49ZBuilding the python core freezes on 'Generating code' For a very long time.<div><p>Sure, here is one from a few days ago that took 4 minutes and 7 seconds for python and my project which builds on top of it. <a href="https://ci.appveyor.com/project/AraHaan/els-kom-new/build/1.4.9.8a79">https://ci.appveyor.com/project/AraHaan/els-kom-new/build/1.4.9.8a79</a> It also seems to be holding up now when calculating the checksum for updating the caches too.</p></div>seandhunt_7tag:help.appveyor.com,2012-11-13:Comment/443039012017-12-15T00:41:02Z2017-12-15T00:41:02ZBuilding the python core freezes on 'Generating code' For a very long time.<div><p>OK, I did some tests on a fork of your repo.</p>
<p>Here I'm running the build on GCE environment (where I/O is not affected by noisy neighbors) and current VS 2017 image: <a href="https://ci.appveyor.com/project/FeodorFitsner/els-kom-new/build/1.4.9.8a1">https://ci.appveyor.com/project/FeodorFitsner/els-kom-new/build/1.4...</a></p>
<p>Well, it hangs on <code>Generating code</code> step.</p>
<p>However, I was able to run the build without the issue on <code>Previous Visual Studio 2017</code> image: <a href="https://ci.appveyor.com/project/FeodorFitsner/els-kom-new/build/1.4.9.8a2">https://ci.appveyor.com/project/FeodorFitsner/els-kom-new/build/1.4...</a></p>
<p>The difference between images is VS 2017 15.5.1 on the current while there is 15.4 on previous: <a href="https://www.appveyor.com/updates/2017/12/12/">https://www.appveyor.com/updates/2017/12/12/</a></p>
<p>So, VS 2017 might be the issue. Indeed, I found this comment: <a href="https://stackoverflow.com/questions/27862353/visual-studio-in-stuck-generating-code/47657154#47657154">https://stackoverflow.com/questions/27862353/visual-studio-in-stuck...</a></p>
<p>Hopefully, they fixed optimization issues in 15.5.2 which was released earlier today: <a href="https://developercommunity.visualstudio.com/spaces/8/index.html">https://developercommunity.visualstudio.com/spaces/8/index.html</a> I'm going to have a look. If it works we'll update the image with 15.5.2.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/443039012017-12-17T02:16:42Z2017-12-17T02:16:42ZBuilding the python core freezes on 'Generating code' For a very long time.<div><p>We’ve updated VS 2017 image with the latest VS 2017 15.5.2 and the problem has gone. Test build results: <a href="https://ci.appveyor.com/project/FeodorFitsner/els-kom-new/build/1.4.9.8a8">https://ci.appveyor.com/project/FeodorFitsner/els-kom-new/build/1.4...</a></p></div>Feodor Fitsner