Skip to content

CI: Re-enable FOSSA scan and add Codecov#14333

Merged
mattlord merged 17 commits intovitessio:mainfrom
planetscale:codecov
Jan 9, 2024
Merged

CI: Re-enable FOSSA scan and add Codecov#14333
mattlord merged 17 commits intovitessio:mainfrom
planetscale:codecov

Conversation

@mattlord
Copy link
Member

@mattlord mattlord commented Oct 22, 2023

Description

This re-enables the FOSSA license scan after getting a new API key (removed in #14119).

It also re-adds code coverage reporting after it was removed in #13000.

Note
Testing done on my fork here: https://github.com/mattlord/vitess/pull/2/files

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on the CI
  • Documentation was added or is not required

Signed-off-by: Matt Lord <mattalord@gmail.com>
@vitess-bot
Copy link
Contributor

vitess-bot bot commented Oct 22, 2023

Review Checklist

Hello reviewers! 👋 Please follow this checklist when reviewing this Pull Request.

General

  • Ensure that the Pull Request has a descriptive title.
  • Ensure there is a link to an issue (except for internal cleanup and flaky test fixes), new features should have an RFC that documents use cases and test cases.

Tests

  • Bug fixes should have at least one unit or end-to-end test, enhancement and new features should have a sufficient number of tests.

Documentation

  • Apply the release notes (needs details) label if users need to know about this change.
  • New features should be documented.
  • There should be some code comments as to why things are implemented the way they are.
  • There should be a comment at the top of each new or modified test to explain what the test does.

New flags

  • Is this flag really necessary?
  • Flag names must be clear and intuitive, use dashes (-), and have a clear help text.

If a workflow is added or modified:

  • Each item in Jobs should be named in order to mark it as required.
  • If the workflow needs to be marked as required, the maintainer team must be notified.

Backward compatibility

  • Protobuf changes should be wire-compatible.
  • Changes to _vt tables and RPCs need to be backward compatible.
  • RPC changes should be compatible with vitess-operator
  • If a flag is removed, then it should also be removed from vitess-operator and arewefastyet, if used there.
  • vtctl command output order should be stable and awk-able.

@vitess-bot vitess-bot bot added NeedsDescriptionUpdate The description is not clear or comprehensive enough, and needs work NeedsIssue A linked issue is missing for this Pull Request NeedsWebsiteDocsUpdate What it says labels Oct 22, 2023
@github-actions github-actions bot added this to the v19.0.0 milestone Oct 22, 2023
Signed-off-by: Matt Lord <mattalord@gmail.com>
@mattlord mattlord added Type: Internal Cleanup Type: Enhancement Logical improvement (somewhere between a bug and feature) Component: Build/CI and removed NeedsDescriptionUpdate The description is not clear or comprehensive enough, and needs work NeedsWebsiteDocsUpdate What it says NeedsIssue A linked issue is missing for this Pull Request labels Oct 22, 2023
Signed-off-by: Matt Lord <mattalord@gmail.com>
uses: actions/checkout@v3

- name: Run FOSSA scan and upload build data
if: github.ref == 'refs/heads/main'
Copy link
Member Author

Choose a reason for hiding this comment

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

@mattlord mattlord force-pushed the codecov branch 2 times, most recently from deb355a to 9f0bf3a Compare October 22, 2023 22:00
Signed-off-by: Matt Lord <mattalord@gmail.com>
@mattlord mattlord requested a review from vmg October 22, 2023 22:07
@mattlord mattlord changed the title CI: Re-enable FOSSA scan and add CODECOV CI: Re-enable FOSSA scan and add Codecov Oct 22, 2023
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
@codecov
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@b0f6fa2). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14333   +/-   ##
=======================================
  Coverage        ?   47.25%           
=======================================
  Files           ?     1136           
  Lines           ?   238160           
  Branches        ?        0           
=======================================
  Hits            ?   112543           
  Misses          ?   117018           
  Partials        ?     8599           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Matt Lord <mattalord@gmail.com>
@mattlord mattlord force-pushed the codecov branch 2 times, most recently from 357ece2 to 46c93af Compare January 5, 2024 20:36
Signed-off-by: Matt Lord <mattalord@gmail.com>
@mattlord mattlord force-pushed the codecov branch 2 times, most recently from 9348d0d to 6b8eee1 Compare January 5, 2024 22:16
Signed-off-by: Matt Lord <mattalord@gmail.com>
@mattlord mattlord requested a review from frouioui January 5, 2024 22:49
@mattlord mattlord marked this pull request as ready for review January 5, 2024 22:51
@mattlord mattlord requested review from shlomi-noach and removed request for vmg January 5, 2024 22:57
frouioui
frouioui previously approved these changes Jan 8, 2024
Copy link
Member

@frouioui frouioui left a comment

Choose a reason for hiding this comment

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

LGTM asides to the comments I left! Thank you!

@frouioui frouioui dismissed their stale review January 8, 2024 16:29

Already two-approvals, dismissing my review until the suggestions are applied so we don't merge it by accident

@frouioui
Copy link
Member

frouioui commented Jan 8, 2024

@mattlord, I think it might be a good idea to backport this to release branches.

Moreover, we need to add the new workflow to the list of required checks in the branch protection rules once merged.

Signed-off-by: Matt Lord <mattalord@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Build/CI Type: Enhancement Logical improvement (somewhere between a bug and feature) Type: Internal Cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question: Is there a unit test coverage metric for vitess? Task: reimplement FOSSA check in CI

3 participants