Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
39fa0020
Unverified
Commit
39fa0020
authored
Jul 28, 2020
by
Todd Volkert
Committed by
GitHub
Jul 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use in-memory disk for docs shards (#62373)
https://github.com/flutter/flutter/issues/60646
parent
d8346730
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
.cirrus.yml
.cirrus.yml
+7
-0
docs.sh
dev/bots/docs.sh
+8
-5
No files found.
.cirrus.yml
View file @
39fa0020
...
...
@@ -74,6 +74,7 @@ task:
dockerfile
:
"
dev/ci/docker_linux/Dockerfile"
cpu
:
$CPU
memory
:
$MEMORY
use_in_memory_disk
:
$USE_IN_MEMORY_DISK
environment
:
# We shrink our default resource requirement as much as possible because that way we are more
# likely to get scheduled. We require 4G of RAM because most of the shards (all but one as of
...
...
@@ -86,6 +87,7 @@ task:
CIRRUS_DOCKER_CONTEXT
:
"
dev/"
PATH
:
"
$CIRRUS_WORKING_DIR/bin:$CIRRUS_WORKING_DIR/bin/cache/dart-sdk/bin:$PATH"
ANDROID_SDK_ROOT
:
"
/opt/android_sdk"
USE_IN_MEMORY_DISK
:
false
pub_cache
:
folder
:
$HOME/.pub-cache
fingerprint_script
:
echo $OS; grep -r --include=pubspec.yaml 'PUBSPEC CHECKSUM' "$CIRRUS_WORKING_DIR"
...
...
@@ -279,6 +281,7 @@ task:
# Empirically, as of October 2019, the docs-linux shard took about 30 minutes when run with
# 1 CPU and 4G of RAM. 2 CPUs reduced that to 20 minutes, more CPUs did not improve matters.
CPU
:
2
USE_IN_MEMORY_DISK
:
true
docs_cache
:
folder
:
dev/docs
fingerprint_script
:
...
...
@@ -293,7 +296,10 @@ task:
depends_on
:
-
docs-linux
environment
:
# TODO(tvolkert): optimize CPU and MEMORY settings once #60646 is resolved.
CPU
:
2
MEMORY
:
8G
USE_IN_MEMORY_DISK
:
true
docs_cache
:
folder
:
dev/docs
reupload_on_changes
:
true
...
...
@@ -309,6 +315,7 @@ task:
-
docs-linux
-
docs_docset-linux
environment
:
USE_IN_MEMORY_DISK
:
true
# For uploading master docs to Firebase master branch staging site
FIREBASE_MASTER_TOKEN
:
ENCRYPTED[eb768d18798fdc5abfe09b224e1724c4d82831d715ccf90df2c79d618c317216cbd99493278361f6fe7948b409b603f0]
# For uploading stable docs to Firebase public live site
...
...
dev/bots/docs.sh
View file @
39fa0020
...
...
@@ -75,15 +75,18 @@ function create_docset() {
# If dashing gets stuck, Cirrus will time out the build after an hour, and we
# never get to see the logs. Thus, we run it in the background and tail the logs
# while we wait for it to complete.
dashing build
--source
./doc
--config
./dashing.json
>
/tmp/dashing.log 2>&1 &
dashing_log
=
/tmp/dashing.log
dashing build
--source
./doc
--config
./dashing.json
>
$dashing_log
2>&1 &
dashing_pid
=
$!
tail
-f
/tmp/dashing.log &
tail_pid
=
$!
wait
$dashing_pid
&&
\
cp
./doc/flutter/static-assets/favicon.png ./flutter.docset/icon.png
&&
\
"
$DART
"
--disable-dart-dev
./dashing_postprocess.dart
&&
\
tar
cf flutter.docset.tar.gz
--use-compress-program
=
"gzip --best"
flutter.docset
&&
\
kill
$tail_pid
&> /dev/null
tar
cf flutter.docset.tar.gz
--use-compress-program
=
"gzip --best"
flutter.docset
if
[[
$?
-ne
0
]]
;
then
>
&2
echo
"Dashing docset generation failed"
tail
-200
$dashing_log
exit
1
fi
}
function
deploy_docs
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment