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

feat/pipeline times #472

Merged
merged 5 commits into from Nov 24, 2022
Merged

feat/pipeline times #472

merged 5 commits into from Nov 24, 2022

Conversation

jmpsf
Copy link

@jmpsf jmpsf commented Nov 24, 2022

  • feat: add the time command
  • chore: update the cruft template
  • chore: update dependencies

Checklist

  • Add test cases to all the changes you introduce
  • Update the documentation for the changes

Usage: drode time [OPTIONS]

  Print the mean and standard deviation time of successful builds.

Options:
  -p, --pipeline TEXT          Analyze a pipeline that's not from the active
                               project
  -n, --number_builds INTEGER  Successful builds to analyze
  --help                       Show this message and exit.

feat: allow the ordering of BuildInfo models

tests: change log_level to info

Faker was being too verbose

refactor: reorder Drone methods

So the most relevant are on top

refactor(drone): create the builds method

To return the all the BuildInfo of a pipeline

tests: simplify fake drone set_builds

Instead of using a dictionary use a list of BuildInfo
tests: fix some tests

tests: change tmp_dir with tmp_path

To remove the py dependency
@coveralls
Copy link

coveralls commented Nov 24, 2022

Pull Request Test Coverage Report for Build 3542894118

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 49 of 54 (90.74%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.0%) to 97.333%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/drode/adapters/drone.py 17 19 89.47%
src/drode/entrypoints/cli.py 12 15 80.0%
Totals Coverage Status
Change from base Build 3394367545: -1.0%
Covered Lines: 438
Relevant Lines: 450

💛 - Coveralls

@lyz-code lyz-code merged commit 95db0e6 into main Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants