@@ -1775,6 +1775,9 @@ jobs:
1775
1775
<< : *defaults
1776
1776
parameters :
1777
1777
<< : *defaultsParameters
1778
+ is_contributor_pr :
1779
+ type : boolean
1780
+ default : false
1778
1781
resource_class :
1779
1782
type : string
1780
1783
default : medium
@@ -1797,31 +1800,46 @@ jobs:
1797
1800
condition :
1798
1801
equal : [ *windows-executor, << parameters.executor >> ]
1799
1802
steps :
1800
- - run :
1801
- name : Enable IPv6 in Docker
1802
- command : |
1803
- cat \<<'EOF' | sudo tee /etc/docker/daemon.json
1804
- {
1805
- "ipv6": true,
1806
- "fixed-cidr-v6": "2001:db8:1::/64"
1807
- }
1808
- EOF
1809
- cat \<<'EOF' | sudo tee /etc/hosts
1810
- 127.0.0.1 localhost
1811
- ::1 localhost
1812
- EOF
1813
- sudo service docker restart
1803
+ - unless :
1804
+ condition : << parameters.is_contributor_pr >>
1805
+ steps :
1806
+ - run :
1807
+ name : Enable IPv6 in Docker
1808
+ command : |
1809
+ cat \<<'EOF' | sudo tee /etc/docker/daemon.json
1810
+ {
1811
+ "ipv6": true,
1812
+ "fixed-cidr-v6": "2001:db8:1::/64"
1813
+ }
1814
+ EOF
1815
+ cat \<<'EOF' | sudo tee /etc/hosts
1816
+ 127.0.0.1 localhost
1817
+ ::1 localhost
1818
+ EOF
1819
+ sudo service docker restart
1814
1820
- run :
1815
1821
name : Test scripts
1816
1822
command : |
1817
1823
source ./scripts/ensure-node.sh
1818
1824
yarn test-scripts
1819
- - run :
1820
- name : Test each individual package
1821
- command : |
1822
- source ./scripts/ensure-node.sh
1823
- # this is needed since we are have to be running as root to test some packages
1824
- sudo -E env "PATH=$PATH" yarn test
1825
+ - when :
1826
+ condition :
1827
+ not : << parameters.is_contributor_pr >>
1828
+ steps :
1829
+ - run :
1830
+ name : Test each individual package
1831
+ command : |
1832
+ source ./scripts/ensure-node.sh
1833
+ # this is needed since we are have to be running as root to test some packages
1834
+ sudo -E env "PATH=$PATH" yarn test
1835
+ - when :
1836
+ condition : << parameters.is_contributor_pr >>
1837
+ steps :
1838
+ - run :
1839
+ name : Test each individual package
1840
+ command : |
1841
+ source ./scripts/ensure-node.sh
1842
+ CIRCLE_IPV6_DISABLED=1 yarn test
1825
1843
- run :
1826
1844
name : Test types
1827
1845
command : |
@@ -3341,6 +3359,7 @@ linux-x64-contributor-workflow: &linux-x64-contributor-workflow
3341
3359
requires :
3342
3360
- contributor-pr
3343
3361
- unit-tests :
3362
+ is_contributor_pr : true
3344
3363
requires :
3345
3364
- build
3346
3365
- verify-release-readiness :
0 commit comments