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

Prevent to run postinstall for yarn during dependabot check #7757

Merged
merged 3 commits into from
Jun 5, 2023

Conversation

shu-mutou
Copy link
Contributor

@shu-mutou shu-mutou commented Jun 2, 2023

Investigate workaround to run dependabot for js/ts.
dependabot fails to execute postinstall when checking js/ts dependencies. I don't think dependabot needs postinstall, so I'll try not to run postinstall on dependabot.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 2, 2023
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 2, 2023
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 2, 2023
@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Merging #7757 (9139459) into master (d4fffaf) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #7757      +/-   ##
==========================================
- Coverage   42.18%   42.16%   -0.02%     
==========================================
  Files         218      218              
  Lines       12099    12099              
  Branches      179      179              
==========================================
- Hits         5104     5102       -2     
- Misses       6710     6713       +3     
+ Partials      285      284       -1     

@shu-mutou
Copy link
Contributor Author

This PR needs to be merged and run the dependabot check to see the result, so this may need to be reverted later.

@shu-mutou
Copy link
Contributor Author

/retitle Prevent to run postinstall for yarn during dependabot check

@k8s-ci-robot k8s-ci-robot changed the title [DNM] Prevent to run postinstall for yarn during dependabot check Prevent to run postinstall for yarn during dependabot check Jun 2, 2023
@shu-mutou
Copy link
Contributor Author

@floreks @maciaszczykm Can we try this once?

# See the License for the specific language governing permissions and
# limitations under the License.

if [ -z "$(env | grep DEPENDABOT_HOME)" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using "$(env | grep DEPENDABOT_HOME)" you can just use "$DEPENDABOT_HOME".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for reviewing. I left what I was trying in my .yarnrc.yml... 😳

@maciaszczykm
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 5, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maciaszczykm, shu-mutou

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [maciaszczykm,shu-mutou]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 72f07d9 into kubernetes:master Jun 5, 2023
13 checks passed
@shu-mutou shu-mutou deleted the fix-dependabot branch June 5, 2023 09:26
@shu-mutou
Copy link
Contributor Author

This seems to work well!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants