Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Recover broken find pattern for UNIX #185

Merged
merged 5 commits into from Jul 22, 2020

Conversation

yhatt
Copy link
Contributor

@yhatt yhatt commented Jul 21, 2020

#180 makes find command change to run through execFileSync(). However, it always returns empty result because of the quote has over-included as the filename of search condition. So I removed quotes from conditions.

In addition, removing brackets from find arguments (a4cc565) has affected to the result of finding coverage files. This commit reverts brackets to get back the original search condition too.

Previously quotes and escaped-brackets are required to run command on the shell environment by execSync(), but no longer need them because of using execFileSync() that is disabled shell environment by default.

Fix #184.

ref: codecov#184
continuous from: ada583b

codecov#180 makes `find` command change to run through
`execFileSync()`. However, it always returns empty result because of
the quote has over-included as the filename of search condition. So
removed quotes from generated conditions.

In addition, removing brackets from find arguments (a4cc565) has
affected to the result of finding coverage files. This commit reverts
brackets to get back the original search condition too.

Previously quotes and escaped-brackets are required to run command on
the shell environment, but no longer need them because of using
`execFileSync()` that is disabled shell environment by default.
@codecov
Copy link

codecov bot commented Jul 21, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@c0711c6). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #185   +/-   ##
=========================================
  Coverage          ?   88.64%           
=========================================
  Files             ?       23           
  Lines             ?      370           
  Branches          ?       91           
=========================================
  Hits              ?      328           
  Misses            ?       34           
  Partials          ?        8           
Impacted Files Coverage Δ
lib/codecov.js 79.60% <ø> (ø)
lib/services/gitlab.js 100.00% <0.00%> (ø)
lib/services/buildkite.js 100.00% <0.00%> (ø)
lib/offline.js 100.00% <0.00%> (ø)
lib/services/jenkins.js 100.00% <0.00%> (ø)
lib/services/cirrus.js 100.00% <0.00%> (ø)
lib/services/semaphore.js 100.00% <0.00%> (ø)
lib/detect.js 92.30% <0.00%> (ø)
lib/services/shippable.js 100.00% <0.00%> (ø)
lib/git.js 100.00% <0.00%> (ø)
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0711c6...7a74556. Read the comment docs.

@thomasrockhu
Copy link
Contributor

Tests are being flaky, need to be mocked out in the future. I'm comfortable with this change.

@thomasrockhu thomasrockhu merged commit 7c8f19e into codecov:master Jul 22, 2020
@yhatt yhatt deleted the recover-failing-to-read-file branch July 22, 2020 01:57
alexkli added a commit to adobe/asset-compute-sdk that referenced this pull request Jul 22, 2020
alexkli added a commit to adobe/asset-compute-sdk that referenced this pull request Jul 22, 2020
…tion dependency, fix codecov in build (#25)

* fix codecov

* update @adobe/cgroup-metrics to 3.0.1

* fix codecov missing the coverage data

* update to latest codecov 3.7.2 as 3.7.1 was completely broken

see codecov/codecov-node#185

* add codecov badge
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Jest and TravisCI "X Failed to read file at"
2 participants