Skip to content

[SR-13097] [build-script] Testing fails when using automatic inference of dependencies #55543

@benrimmington

Description

@benrimmington
Previous ID SR-13097
Radar None
Original Reporter @benrimmington
Type Bug
Status Resolved
Resolution Done
Environment
  • CMake 3.17.0

  • macOS 10.15.5

  • Xcode-beta 12.0

  • Default branches.

Additional Detail from JIRA
Votes 0
Component/s Project Infrastructure
Labels Bug
Assignee @gottesmm
Priority Medium

md5: 5e28cc556e5d16518bc4fad1b3fed885

Issue Description:

I tried using the --infer option, without enabling any additional projects.

swift/utils/build-script --infer --reconfigure --release-debuginfo --test

There was a failure when running the tests:

lit.py: /Users/benrimmington/Public/apple/llvm-project/llvm/utils/lit/lit/TestingConfig.py:102: fatal: unable to parse config file '/Users/benrimmington/Public/apple/swift/test/lit.cfg', traceback: Traceback (most recent call last):
  File "/Users/benrimmington/Public/apple/llvm-project/llvm/utils/lit/lit/TestingConfig.py", line 89, in load_from_path
    exec(compile(data, path, 'exec'), cfg_globals, None)
  File "/Users/benrimmington/Public/apple/swift/test/lit.cfg", line 1921, in <module>
    lldb_python_path = get_lldb_python_path(config.lldb_build_root)
  File "/Users/benrimmington/Public/apple/swift/test/lit.cfg", line 103, in get_lldb_python_path
    return subprocess.check_output([lldb_path, "-P"]).rstrip()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 216, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

FAILED: test/CMakeFiles/check-swift-macosx-x86_64

The bin/lldb -P subprocess raised a "no such file or directory" error, because the lldb project wasn't built. When I removed the --infer option, building and testing succeeded (without involving the lldb project).

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.build-scriptArea → utils: The build scriptutilsArea: the build system and other accessory scripts under the "utils" directory

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions