Skip to content

Commit 931364e

Browse files
committed
Merge branch 'master' into add-kickstarter-oss
# Conflicts: # projects.json
2 parents 106bba9 + e589317 commit 931364e

13 files changed

+2309
-298
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ To be accepted into the Swift source compatibility test suite, a project must:
1111
- [ ] support building on either Linux or macOS
1212
- [ ] target Linux, macOS, or iOS/tvOS/watchOS device
1313
- [ ] be contained in a publicly accessible git repository
14-
- [ ] maintain a project branch that builds against Swift 3.0 compatibility mode
15-
or Swift 4.0 and passes any unit tests
14+
- [ ] maintain a project branch that builds against Swift 4.0 and passes any unit tests
1615
- [ ] have maintainers who will commit to resolve issues in a timely manner
1716
- [ ] be compatible with the latest GM/Beta versions of *Xcode* and *swiftpm*
1817
- [ ] add value not already included in the suite

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ swift-corelibs-foundation/
1414
swift-corelibs-libdispatch/
1515
swift-corelibs-xctest/
1616
swiftpm/
17+
swift-stress-tester/

cleanup

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def main():
5252
'swift-corelibs-foundation',
5353
'swift-corelibs-libdispatch',
5454
'swift-corelibs-xctest',
55+
'swift-stress-tester'
5556
]
5657

5758
if args.cleanup_cache:

common.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
'cmark': 'master',
5353
'ninja': 'release',
5454
'llbuild': 'master',
55-
'swiftpm': 'master',
55+
'swiftpm': 'swift-4.2-branch',
5656
'swift-corelibs-libdispatch': 'swift-4.2-branch',
5757
'swift-corelibs-foundation': 'swift-4.2-branch',
5858
'swift-corelibs-xctest': 'swift-4.2-branch',
@@ -143,6 +143,12 @@ def set_swift_branch(branch):
143143
swift_branch = branch
144144

145145

146+
def set_default_execute_timeout(timeout):
147+
"""Override the default execute timeout"""
148+
global DEFAULT_EXECUTE_TIMEOUT
149+
DEFAULT_EXECUTE_TIMEOUT = timeout
150+
151+
146152
def clone_repos():
147153
"""Clone Swift and dependencies in parallel.
148154
@@ -299,14 +305,16 @@ def __str__(self):
299305
self.returncode))
300306

301307

302-
def execute(command, timeout=DEFAULT_EXECUTE_TIMEOUT,
308+
def execute(command, timeout=None,
303309
stdout=sys.stdout, stderr=sys.stderr,
304310
**kwargs):
305311
"""Execute a given command with an optional timeout in seconds.
306312
307313
>>> execute(['echo', 'Hello, World!'])
308314
0
309315
"""
316+
if timeout is None:
317+
timeout = DEFAULT_EXECUTE_TIMEOUT
310318
shell_debug_print(command, stderr=stderr)
311319
returncode = 124 # timeout return code
312320
try:
@@ -320,13 +328,15 @@ def execute(command, timeout=DEFAULT_EXECUTE_TIMEOUT,
320328
return returncode
321329

322330

323-
def check_execute_output(command, timeout=DEFAULT_EXECUTE_TIMEOUT,
331+
def check_execute_output(command, timeout=None,
324332
stdout=sys.stdout, stderr=sys.stderr, **kwargs):
325333
"""Check execute a given command and return its output.
326334
327335
>>> check_execute_output(['echo', 'Hello, World!'])
328336
'Hello, World!\\n'
329337
"""
338+
if timeout is None:
339+
timeout = DEFAULT_EXECUTE_TIMEOUT
330340
shell_debug_print(command, stderr=stderr)
331341
try:
332342
with Timeout(timeout):
@@ -339,7 +349,7 @@ def check_execute_output(command, timeout=DEFAULT_EXECUTE_TIMEOUT,
339349
return output
340350

341351

342-
def check_execute(command, timeout=DEFAULT_EXECUTE_TIMEOUT,
352+
def check_execute(command, timeout=None,
343353
sandbox_profile=None, max_retries=1,
344354
stdout=sys.stdout, stderr=sys.stderr,
345355
**kwargs):
@@ -348,6 +358,8 @@ def check_execute(command, timeout=DEFAULT_EXECUTE_TIMEOUT,
348358
>>> check_execute(['echo', 'Hello, World!'])
349359
0
350360
"""
361+
if timeout is None:
362+
timeout = DEFAULT_EXECUTE_TIMEOUT
351363
if sandbox_profile:
352364
if platform.system() == 'Darwin':
353365
command = ['sandbox-exec', '-f', sandbox_profile] + command

project.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def get_build_command(self, incremental=False):
124124
command += ['-configuration', value]
125125
else:
126126
command += ['%s=%s' % (setting, value)]
127+
if self._destination == 'generic/platform=watchOS':
128+
command += ['ARCHS=armv7k']
127129

128130
return command
129131

@@ -196,6 +198,7 @@ def build_swift_package(path, swiftc, configuration, sandbox_profile,
196198
stdout=stdout, stderr=stderr)
197199
env = os.environ
198200
env['SWIFT_EXEC'] = swiftc
201+
env['SWIFT_SOURCE_COMPAT_SUITE'] = "1"
199202
command = [swift, 'build', '-C', path, '--verbose',
200203
'--configuration', configuration]
201204
if (swift_branch not in ['swift-3.0-branch',
@@ -220,6 +223,7 @@ def test_swift_package(path, swiftc, sandbox_profile,
220223
clean_swift_package(path, swiftc, sandbox_profile)
221224
env = os.environ
222225
env['SWIFT_EXEC'] = swiftc
226+
env['SWIFT_SOURCE_COMPAT_SUITE'] = "1"
223227
command = [swift, 'test', '-C', path, '--verbose']
224228
if added_swift_flags is not None:
225229
for flag in added_swift_flags.split():

project_future.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,14 @@ def get_build_command(self, incremental=False):
118118
+ ['CODE_SIGN_IDENTITY=',
119119
'CODE_SIGNING_REQUIRED=NO',
120120
'ENABLE_BITCODE=NO',
121-
'-UseNewBuildSystem=NO',
122121
'INDEX_ENABLE_DATA_STORE=NO',
123122
'GCC_TREAT_WARNINGS_AS_ERRORS=NO',
124123
'SWIFT_TREAT_WARNINGS_AS_ERRORS=NO'])
125124
command += self._added_xcodebuild_flags
126125

126+
if self._destination == 'generic/platform=watchOS':
127+
command += ['ARCHS=armv7k']
128+
127129
return command
128130

129131
def get_test_command(self, incremental=False):

project_precommit_check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ supported_configs = {
6868
},
6969
'4.2': {
7070
'version': 'Apple Swift version 4.2 '
71-
'(swiftlang-1000.0.25.1 clang-1000.10.28.1)\n'
71+
'(swiftlang-1000.11.37.1 clang-1000.11.45.1)\n'
7272
'Target: x86_64-apple-darwin17.7.0\n',
73-
'description': 'Xcode 10 Beta 3 (contains Swift 4.2)',
73+
'description': 'Xcode 10.0 (contains Swift 4.2)',
7474
'branch': 'swift-4.2-branch'
7575
}
7676
},

0 commit comments

Comments
 (0)