Skip to content

Commit

Permalink
Merge pull request #42 from commercialhaskell/upload-debug
Browse files Browse the repository at this point in the history
to debug slow CF upload: drop --only-show-errors and time aws s3
  • Loading branch information
juhp authored May 21, 2024
2 parents dc6e10c + f546a25 commit 54cc5a9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Curator/UploadDocs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ uploadDocs input' name bucket = do

logInfo "Shelling out to AWS CLI to upload docs"
proc
"time" -- added for https://github.com/commercialhaskell/stackage-infrastructure/issues/4
(
"aws"
[ "s3"
: -- added for https://github.com/commercialhaskell/stackage-infrastructure/issues/4
[
"s3"
, "cp"
, "--only-show-errors"
-- -- commented out to debug https://github.com/commercialhaskell/stackage-infrastructure/issues/4
--, "--only-show-errors"
, "--recursive"
, "--acl"
, "public-read"
Expand All @@ -56,6 +61,7 @@ uploadDocs input' name bucket = do
, input
, T.unpack $ "s3://" <> bucket <> "/" <> name <> "/"
]
) -- added for https://github.com/commercialhaskell/stackage-infrastructure/issues/4
runProcess_

-- | Create a TAR entry for each Hoogle txt file. Unfortunately doesn't stream.
Expand Down

0 comments on commit 54cc5a9

Please sign in to comment.