Skip to content

Add buildtest commands option#1540

Merged
shahzebsiddiqui merged 24 commits intobuildtesters:develfrom
braeeast2001:Brae'zah_Patch
Aug 1, 2023
Merged

Add buildtest commands option#1540
shahzebsiddiqui merged 24 commits intobuildtesters:develfrom
braeeast2001:Brae'zah_Patch

Conversation

@braeeast2001
Copy link
Collaborator

@braeeast2001 braeeast2001 commented Jul 11, 2023

Create a feature to show an output of Buildtest commands, by doing the following:

  • 1. Adding a command option in buildtest/cli/init.py
  • 2. Adding to bash completion script -
  • 3. Adding implementation; creating a module buildtest/cli/commands.py
  • 4. Adding a regression test; creating a separate file in tests/cli/test_commands.py

@braeeast2001 braeeast2001 self-assigned this Jul 11, 2023
@braeeast2001 braeeast2001 linked an issue Jul 11, 2023 that may be closed by this pull request
7 tasks
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Patch coverage: 72.73% and project coverage change: +0.02% 🎉

Comparison is base (eedb821) 78.36% compared to head (8abc678) 78.38%.
Report is 36 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #1540      +/-   ##
==========================================
+ Coverage   78.36%   78.38%   +0.02%     
==========================================
  Files          56       57       +1     
  Lines        6577     6583       +6     
==========================================
+ Hits         5154     5160       +6     
  Misses       1423     1423              
Files Changed Coverage Δ
buildtest/cli/__init__.py 98.20% <64.71%> (+0.01%) ⬆️
buildtest/cli/commands.py 100.00% <100.00%> (ø)

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

@braeeast2001
Copy link
Collaborator Author

@shahzebsiddiqui When I run the command "buildtest help commands" the output I sent to you in Slack appears. Is this what I am supposed to be fixing?

Create commands_subparser and 'commands' to the "COMMANDS List"
@braeeast2001 braeeast2001 marked this pull request as ready for review July 13, 2023 15:54
@shahzebsiddiqui
Copy link
Member

@shahzebsiddiqui When I run the command "buildtest help commands" the output I sent to you in Slack appears. Is this what I am supposed to be fixing?

No that not what i asked for i want you to add a command buildtest commands that will display all the subcommands. See #1509 (comment)

@braeeast2001 braeeast2001 marked this pull request as draft July 13, 2023 16:18
@braeeast2001 braeeast2001 marked this pull request as ready for review July 15, 2023 00:31
Add "else if" statement to main.py
Add to commads.py file
@pull-request-size pull-request-size bot added size/M and removed size/S labels Jul 17, 2023
Removed table; Pritning raw list
@pull-request-size pull-request-size bot added size/S and removed size/M labels Jul 17, 2023
@pull-request-size pull-request-size bot added size/M and removed size/S labels Jul 18, 2023
@shahzebsiddiqui
Copy link
Member

@braeeast2001 i fixed your PR and rewrote this to be easier to understand. Please add the regression test and we can merge this in.

Lets not document this feature for now its not necessary.

@shahzebsiddiqui
Copy link
Member

@braeeast2001 can please look at the CI checks and fix them

@shahzebsiddiqui
Copy link
Member

@braeeast2001 can you please black your code. Look at the style check it reports 3files need formatting.

Just run buildtest style -a

@shahzebsiddiqui
Copy link
Member

@braeeast2001 can you please recreate your python environment and reinstall buildtest it looks like your black and isort are not using the configuration specified from pyproject.toml

This might address some formatting issues you are facing.

Please delete your existing python virtual environment.

You should consider using pipenv it will simplify managing virtual environment

@braeeast2001
Copy link
Collaborator Author

Change completed, ready to merge.

@shahzebsiddiqui
Copy link
Member

@braeeast2001 can you please resolve the conflict

Copy link
Member

@shahzebsiddiqui shahzebsiddiqui left a comment

Choose a reason for hiding this comment

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

thanks @braeeast2001 this looks good.

@shahzebsiddiqui shahzebsiddiqui merged commit 701af0a into buildtesters:devel Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: buildtest commands

2 participants