-
Notifications
You must be signed in to change notification settings - Fork 2.5k
chore: add scripts to update discovery artifacts #1286
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
Merged
gcf-merge-on-green
merged 28 commits into
master
from
add-scripts-for-updating-discovery-artifacts-using-github-action
Apr 21, 2021
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
0cd2754
chore: add scripts to update discovery artifacts
yoshi-automation 9fb58c5
Update comment to reflect code
yoshi-automation 555d2b3
Use keyword arguments for pd.Dataframe().rename_axis()
yoshi-automation 5a6cf31
Remove call to `pd.Dataframe().columns.droplevel(1)`
yoshi-automation dae470d
Allow the directory used for storing intermediate files to be changed…
yoshi-automation 67b01e2
Rename column 'Percent' to 'Proportion' to reflect usage.
yoshi-automation 170d9db
Only configure git when running the script via Github Action
parthea 39a4efb
Fix git configuration when using github action
parthea 0207e19
Write discovery artifact if no revision is found
parthea 901620a
Update comment to reflect logic
parthea 632a683
Update code comment to be more descriptive.
parthea d1c2e51
Fix formatting. Update docstring to be more descriptive.
parthea 9917d98
Fix formatting in docstring.
parthea eceaf51
Improve performance by reducing file operations.
parthea c93d3f3
Fix formatting.
parthea 9054581
Add check to ensure temp directory exists
parthea 9aa6ad1
Remove check in ChangeSummary for `file_list` arg empty
parthea 718e02f
Update code to reflect comment
parthea 075626c
Add tests for changesummary.py . Only 61% coverage so far.
parthea 1db7e6a
Fix initialization of tests
parthea e7e9e88
Add tests
parthea 5414ee2
Extract regex that determines whether version is stable into separate…
parthea 10de0c4
Move describe.py back to original location
parthea dad3aa3
Set scripts coverage to 80%
parthea 9202d32
Update relative paths in describe.py
parthea 4ed97ca
Update README in the scripts dir to mention adding a summary to the P…
parthea fc52778
Remove X-USER-IP header
parthea 8c25e1f
Use `pathlib` instead of `os`
parthea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Discovery Artifact Automation | ||
Discovery Artifacts are automatically updated using a Github Action script. This | ||
documentation is intended for users that need to maintain the repository. | ||
|
||
## Updating discovery artifacts locally | ||
|
||
To update discovery artifacts locally: | ||
1. Create a virtual environment using `pyenv virtualenv updateartifacts` | ||
2. Activate the virtual environment using `pyenv activate updateartifacts` | ||
3. Clone the repository, and `cd` into the `scripts` directory | ||
4. Run `pip install -r requirements.txt` | ||
5. Run `pip install -e ../` | ||
6. Run `git checkout -b update-discovery-artifacts-manual` | ||
7. Run `python3 updatediscoveryartifacts.py` | ||
8. Run `./createcommits.sh` | ||
9. Run `python3 buildprbody.py` | ||
10. Create a pull request with the changes. | ||
11. Copy the contents of `temp/allapis.summary` into the PR Body. | ||
|
||
## Questions | ||
Feel free to submit an issue! |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.