Operation not permitted - /System/Volumes/Data/private/var/db/lockdown
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- ios, ruby
- 領域
- devtools, testing-qa
調査の方向性
Start with profdata_coverage_dir in lib/slather/project.rb at the reported line 198, then trace how find_binary_files chooses coverage paths. Reproduce with the supplied Xcode 12 and macOS 10.15 setup if available; done when Slather handles inaccessible system paths without failing and the coverage report is generated for the sample project.
索引モデルが issue の本文から書いたものです。
説明
This error occurred on Xcode 12 in a fairly empty sample project with only the default unit tests (no code coverage). I was using this project to test my fastlane file and CI/CD setup in Azure DevOps Microsoft hosted Mac agent (10.15)
My fastlane lane:
lane :test do |options|
parameter_validation(options)
project = options[:project_name]
scheme = project + (options[:is_library] ? "Sample" : "")
scan(
scheme: scheme,
output_directory: "./sonar-reports",
output_types: "html,junit,json-compilation-database",
output_files: "TEST-report.html,TEST-report.xml,compile_commands.json",
code_coverage: true,
clean: true,
skip_build: true,
derived_data_path: "Build"
)
coverage_files_to_ignore = [
'../../*',
'Pods/*',
'*Sample/*',
'*Tests.m',
]
swiftlint(
output_file: "./sonar-reports/swiftlint.json",
reporter: "json",
ignore_exit_status: true,
config_file: '.swiftlint.yml'
)
slather(
scheme: scheme,
sonarqube_xml: true,
output_directory: "sonar-reports",
proj: project + ".xcodeproj",
workspace: project + ".xcworkspace",
ignore: coverage_files_to_ignore,
build_directory: "/"
)
end
[07:41:51]: $ slather coverage --sonarqube-xml --build-directory / --output-directory sonar-reports --ignore ../../\* --ignore Pods/\* --ignore \*Sample/\* --ignore \*Tests.m --scheme SampleSwift --workspace SampleSwift.xcworkspace SampleSwift.xcodeproj
[07:41:53]: ▸ Slathering...
[07:43:12]: ▸ /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/project.rb:198:in `[]': Operation not permitted - /System/Volumes/Data/private/var/db/lockdown (Errno::EPERM)
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/project.rb:198:in `profdata_coverage_dir'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/project.rb:498:in `find_binary_files'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/project.rb:437:in `configure_binary_file'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/project.rb:317:in `configure'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/command/coverage_command.rb:59:in `execute'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in `execute'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `run'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/bin/slather:17:in `<top (required)>'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/bin/slather:23:in `load'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/bin/slather:23:in `<main>'
[07:43:12]: ▸ Operation not permitted - /System/Volumes/Data/private/var/db/lockdown
[07:43:12]: ▸ Are you sure your project is generating coverage? Make sure you enable code coverage in the Test section of your Xcode scheme.
[07:43:12]: ▸ Did you specify your Xcode scheme? (--scheme or 'scheme' in .slather.yml)
[07:43:12]: ▸ If you're using a workspace, did you specify it? (--workspace or 'workspace' in .slather.yml)
[07:43:12]: ▸ If you use a different Xcode configuration, did you specify it? (--configuration or 'configuration' in .slather.yml)
+----------------------------+----------+
| Lane Context |
+----------------------------+----------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios test |
| SCAN_DERIVED_DATA_PATH | Build |
| SCAN_GENERATED_PLIST_FILES | [] |
| SCAN_GENERATED_PLIST_FILE | |
+----------------------------+----------+
- 主要言語
- Ruby
- スター
- 1.6k
- フォーク
- 239
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SlatherOrg/slather のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
SlatherOrg/slather#582 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
SlatherOrg/slather#580 · コメント 9 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 56/100
SlatherOrg/slather#578 · コメント 3 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
SlatherOrg/slather#577 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
SlatherOrg/slather#576 · コメント 2 件 ·
SlatherOrg/slather の issue をすべて見る
似ている issue
-
agent:triaged bug bughunt pm:bundler priority:p1
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
SocketDev/socket-patch#1573 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug chat verified
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 6 日以内に返信
-
🐞 bug pending triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CircuitVerse/CircuitVerse#8031 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Empty members in the Accept header cause a 500対応中かも @koic が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
modelcontextprotocol/ruby-sdk#609 ·
メンテナーはふだん 1 日以内に返信
-
BazaRb::Fake#enter rejects dotted badges accepted by BazaRb#enter対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信