Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github4s site publishing takes ~8 minutes #398

Open
sritchie opened this issue Dec 16, 2019 · 5 comments
Open

Github4s site publishing takes ~8 minutes #398

sritchie opened this issue Dec 16, 2019 · 5 comments

Comments

@sritchie
Copy link
Contributor

This is for addSbtPlugin("com.47deg" % "sbt-microsites" % "0.9.7"). I've currently got this style of publishing working for scala-rl's master branch:

https://github.com/sritchie/scala-rl/tree/master

the problem is that the final stage of pushing the microsite takes about 8 minutes, most of this occurring after the commit message gets printed to Travis.

https://travis-ci.com/sritchie/scala-rl/jobs/267743690#L641

My guess is that this is something about the implementation of fetchDirsRecursively:

https://github.com/47deg/sbt-org-policies/blob/master/core/src/main/scala/sbtorgpolicies/github/GitHubOps.scala#L145

but I haven't had time to dig in myself. This isn't a killer, but close since I believe travisCI has a 10 minute timeout on no response from builds.

Thanks!

@abdolence
Copy link

Lucky you, I've had :

Total time: 1246 s (20:46)

I agree that it somewhere in GitHubOps, maybe I'll dig some details in it too.

@calvellido
Copy link
Contributor

calvellido commented Jan 10, 2020

I can't give much insight into this, but as long as I'm aware that way of fetching dirs is needed for the way GitHub4s interacts with the GitHub API.

As a way to circumvent this, and the way I think you finally went with @sritchie, is to use the default publishing method (that internally uses sbt-ghpages).

@calvellido
Copy link
Contributor

Some more insight in here:

#269

@sloshy
Copy link
Contributor

sloshy commented Feb 2, 2021

Hi @sritchie, some improvements have been made this past year to the plugin and to the underlying github4s library. Could you see if using the latest release of this plugin helps with your issues? Thanks in advance!

@sritchie
Copy link
Contributor Author

Hey @sloshy , I haven't touched the ScalaRL project in a while, but once I do I'll give this a try!

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

No branches or pull requests

4 participants