-
Notifications
You must be signed in to change notification settings - Fork 68
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
Upgrade to Dart 2.13 #315
Merged
Merged
Upgrade to Dart 2.13 #315
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
eb0b774
TEST: Run CI on Dart 2.13
rishabhjain-wk b61bc86
avoid meta 1.7.0
robbecker-wf 1e4fde1
Merge remote-tracking branch 'origin/master' into batch/client_platfo…
robbecker-wf 4b72b1f
format
robbecker-wf 9b6c051
assume Dart SDK >=2.9.3, remove workarounds
robbecker-wf 36b2b58
Merge branch 'master' of github.com:Workiva/react-dart into batch/cli…
bender-wk 66cd839
Lower SDK constraint
kirkrichardson-wk 615ece7
Run pub get during build
evanweible-wf 7f06447
Re-add Chrome 86 workaround
evanweible-wf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1 @@ | ||
FROM drydock-prod.workiva.net/workiva/dart_build_image:1 | ||
|
||
# Chrome install adapted from https://github.com/Workiva/dart_unit_test_image/blob/master@%7B13-01-2021%7D/Dockerfile | ||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | ||
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list && \ | ||
apt-get -qq update && apt-get install -y google-chrome-stable && \ | ||
mv /usr/bin/google-chrome-stable /usr/bin/google-chrome && \ | ||
sed -i --follow-symlinks -e 's/\"\$HERE\/chrome\"/\"\$HERE\/chrome\" --no-sandbox/g' /usr/bin/google-chrome | ||
|
||
# TODO: Remove this and instead run it within the github actions CI on the stable channel once SDK lower bound is >=2.9.3 | ||
RUN dartfmt --line-length=120 --dry-run --set-exit-if-changed . | ||
|
||
# TODO: Remove these test runs once SDK lower bound is >=2.9.3 | ||
RUN pub run build_runner test --release -- --preset dart2js --exclude-tags=dart-2-7-dart2js-variadic-issues | ||
RUN pub run build_runner test -- --preset dartdevc | ||
|
||
# We need 2.9.2 to verify the Chrome MemoryInfo workaround: https://github.com/cleandart/react-dart/pull/280 | ||
# TODO remove the workaround as well as this config once SDK lower bound is >=2.9.3 | ||
FROM google/dart:2.9.2 | ||
RUN dart --version | ||
|
||
# Don't allow the dart package to be updated via apt | ||
RUN apt-mark hold dart | ||
|
||
# Update image - required by aviary | ||
RUN apt-get update -qq && \ | ||
apt-get dist-upgrade -y && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean all | ||
# Install deps for Chrome install | ||
RUN apt-get install -y \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
make \ | ||
parallel \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Chrome install adapted from https://github.com/Workiva/dart_unit_test_image/blob/master@%7B13-01-2021%7D/Dockerfile | ||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | ||
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list && \ | ||
apt-get -qq update && apt-get install -y google-chrome-stable && \ | ||
mv /usr/bin/google-chrome-stable /usr/bin/google-chrome && \ | ||
sed -i --follow-symlinks -e 's/\"\$HERE\/chrome\"/\"\$HERE\/chrome\" --no-sandbox/g' /usr/bin/google-chrome | ||
|
||
WORKDIR /build/ | ||
ADD . /build/ | ||
|
||
RUN pub get | ||
# Run DDC tests to verify Chrome workaround | ||
RUN pub run build_runner test -- --preset dartdevc | ||
# Run dart2js tests that fail in 2.7 | ||
RUN pub run build_runner test --release -- --preset dart2js --tags=dart-2-7-dart2js-variadic-issues | ||
|
||
FROM scratch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can remove all of this - afaik, we at least need a stage that runs
pub get
so that workiva-build can scrape thepubspec.lock
for auditing and dep tracking purposes