Skip to content

Commit

Permalink
tests(devtools): use is_debug = true for local builds (#15860)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine authored Mar 8, 2024
1 parent 3f7f26f commit ab9be18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions core/scripts/build-devtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ yarn devtools "$DEVTOOLS_PATH"

cd "$DEVTOOLS_PATH"
if [[ "$CI" ]]; then
gn gen "out/$BUILD_FOLDER" --args='devtools_dcheck_always_on=true is_debug=false'
gn gen "out/$BUILD_FOLDER" --args='is_debug=false'
else
gn gen "out/$BUILD_FOLDER" --args='devtools_dcheck_always_on=true is_debug=false devtools_skip_typecheck=true'
gn gen "out/$BUILD_FOLDER" --args='is_debug=true devtools_skip_typecheck=true'
fi
gclient sync
autoninja -C "out/$BUILD_FOLDER"
4 changes: 2 additions & 2 deletions core/test/devtools-tests/download-devtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fetch --nohooks --no-history devtools-frontend
cd devtools-frontend
gclient sync
if [[ "$CI" ]]; then
gn gen "out/$BUILD_FOLDER" --args='devtools_dcheck_always_on=true is_debug=false'
gn gen "out/$BUILD_FOLDER" --args='is_debug=false'
else
gn gen "out/$BUILD_FOLDER" --args='devtools_dcheck_always_on=true is_debug=false devtools_skip_typecheck=true'
gn gen "out/$BUILD_FOLDER" --args='is_debug=true devtools_skip_typecheck=true'
fi
4 changes: 2 additions & 2 deletions core/test/devtools-tests/roll-devtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ roll_devtools
gclient sync --delete_unversioned_trees --reset

if [[ "$CI" ]]; then
gn gen "out/$BUILD_FOLDER" --args='devtools_dcheck_always_on=true is_debug=false'
gn gen "out/$BUILD_FOLDER" --args='is_debug=false'
else
gn gen "out/$BUILD_FOLDER" --args='devtools_dcheck_always_on=true is_debug=false devtools_skip_typecheck=true'
gn gen "out/$BUILD_FOLDER" --args='is_debug=true devtools_skip_typecheck=true'
fi

# Build devtools. By default, this creates `out/LighthouseIntegration/gen/front_end`.
Expand Down

0 comments on commit ab9be18

Please sign in to comment.