Add Python scripts to consume internal APIs (SMASH, SMELT, Bugzilla)#1431
Open
NamelessOne91 wants to merge 39 commits intoSUSE:masterfrom
Open
Add Python scripts to consume internal APIs (SMASH, SMELT, Bugzilla)#1431NamelessOne91 wants to merge 39 commits intoSUSE:masterfrom
NamelessOne91 wants to merge 39 commits intoSUSE:masterfrom
Conversation
c7f3be1 to
505a54b
Compare
488a1cb to
4d02eae
Compare
65ea671 to
635c0af
Compare
Member
|
At some point, we should merge this. We already tested it as working, so why not have it merged. |
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds Python scripts and classes to consume internal APIs (SMASH, SMELT, Bugzilla) for tracking and managing bug reports and maintenance issues. The PR also includes test fixes and refactoring of existing code.
Changes:
- Adds two new CLIs:
smash_issues_finder.pyfor consuming SMASH REST API andbsc_finder.pyfor consuming Bugzilla REST API - Introduces a placeholder SMELT GraphQL API client implementation
- Includes test data files and comprehensive test coverage for new functionality
- Refactors existing code to support API token authentication and removes hardcoded parameters
Reviewed changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 23 comments.
Show a summary per file
| File | Description |
|---|---|
| jenkins_pipelines/scripts/tests/testdata/test_release_notes.changes | Test data for release notes parsing |
| jenkins_pipelines/scripts/tests/testdata/test_invalid_release_notes.changes | Test data for invalid release notes format |
| jenkins_pipelines/scripts/tests/testdata/bugzilla_bugs.json | Mock Bugzilla API response data for tests |
| jenkins_pipelines/scripts/tests/test_maintenance_json_generator.py | Test fixes for maintenance JSON generator |
| jenkins_pipelines/scripts/tests/test_bugzilla_client.py | Tests for new Bugzilla client functionality |
| jenkins_pipelines/scripts/tests/test_bsc_finder.py | Tests for BSC finder CLI |
| jenkins_pipelines/scripts/tests/mock_response.py | Updated mock responses to support Bugzilla testing |
| jenkins_pipelines/scripts/tests/init.py | Updated path configuration for new modules |
| jenkins_pipelines/scripts/json_generator/smelt_client.py | New SMELT GraphQL API client implementation |
| jenkins_pipelines/scripts/json_generator/smash_issues_finder.py | New CLI for SMASH issues retrieval |
| jenkins_pipelines/scripts/json_generator/smash_client.py | Enhanced SMASH client with token authentication and issues endpoint |
| jenkins_pipelines/scripts/json_generator/maintenance_json_generator_README.md | Documentation updates |
| jenkins_pipelines/scripts/json_generator/maintenance_json_generator.py | Refactored to remove version parameter dependency |
| jenkins_pipelines/scripts/json_generator/ibs_osc_client.py | Enhanced with SMASH API token support and issues retrieval |
| jenkins_pipelines/scripts/bsc_list_generator/bugzilla_client.py | New Bugzilla REST API client |
| jenkins_pipelines/scripts/bsc_list_generator/bsc_finder_README.md | Documentation for BSC finder CLI |
| jenkins_pipelines/scripts/bsc_list_generator/bsc_finder.py | New CLI for Bugzilla bug report retrieval |
| jenkins_pipelines/scripts/bsc_list_generator/init.py | Package initialization file |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
635c0af to
512ee13
Compare
Contributor
Author
|
Now updated to support MLM 5.1 and addressed issues/suggestions found by Copilot |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related to https://github.com/SUSE/spacewalk/issues/24524
Adds Python classes and files needed for 2 new CLIs:
smash_issues_finder.pyis a CLI that allows to consume SMASH REST API to filter the available issues and store them as JSON or a formatted BSC link -summary list that can be used for tracking in GitHub cardsbsc_finder.pyis a CLI that consumes Bugzilla REST API to filter and store the available BSCs as JSON or a formatted BSC link -summary list that can be used for tracking in GitHub cardssmelt_client.pyis a placeholder implementation for a SMELT GraphQL API clientIncludes also fixes for broken tests related to the JSON generator CLI and refactors.