Skip to content
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

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

Closed
benrimmington opened this issue Jun 26, 2020 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. build-script Area → utils: The build script

Comments

@benrimmington
Copy link
Collaborator

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).

@benrimmington
Copy link
Collaborator Author

Swift Forums topic

Cc: @gottesmm

@gottesmm
Copy link
Member

gottesmm commented Jul 1, 2020

@benrimmington I fixed this in #32643

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@benrimmington benrimmington added the build-script Area → utils: The build script label May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. build-script Area → utils: The build script
Projects
None yet
Development

No branches or pull requests

2 participants