From 924ee9753db704d6375ad4b1a5510b50068a2854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl?= Date: Tue, 1 Aug 2023 14:11:00 +0200 Subject: [PATCH 1/3] [CI] Dev and stable check only informational (#461) * force string for output * Revert "force string for output" This reverts commit cabecb9758d485839bdcb00afd09bb121e6ce4a6. * make stable and dev check informational + badge good when only standard * set messages * update unit tests * lint * lint * fork doesn't sync * fork sync * Update .github/workflows/ecosystem-submission.yml Co-authored-by: Frank Harkins Co-authored-by: Frank Harkins * add assert for set_actions_output Co-authored-by: Frank Harkins * Revert "add assert for set_actions_output" This reverts commit 51c0f56a9b3b6efae3ab5e3f47ec5e9e00e10406. * Update .github/workflows/ecosystem-submission.yml Co-authored-by: Frank Harkins * Update .github/workflows/ecosystem-submission.yml Co-authored-by: Frank Harkins * no regex in actions if * clear condition --------- Co-authored-by: Frank Harkins --- .github/workflows/ecosystem-submission.yml | 84 ++++++++++++++++------ ecosystem/manager.py | 5 +- tests/test_manager.py | 16 ++++- 3 files changed, 81 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ecosystem-submission.yml b/.github/workflows/ecosystem-submission.yml index 24e9377cd5..b444f54efd 100644 --- a/.github/workflows/ecosystem-submission.yml +++ b/.github/workflows/ecosystem-submission.yml @@ -69,27 +69,31 @@ jobs: tier: ${{ env.tier }} logs_link: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} - # Check result, update issue and create MR + # Check result, update issue and create PR - name: Check return id: check-return run: | - echo "PASS_LOG=True" >> "$GITHUB_OUTPUT" - - declare -a return_list=( \ - "${{ steps.stable.outputs.result }}" \ - "${{ steps.standard.outputs.result }}" \ - "${{ steps.dev.outputs.result }}" \ - ) - for i in "${return_list[@]}"; do - if [[ "${i}" != *"True"* ]]; then - echo "PASS_LOG=False" >> "$GITHUB_OUTPUT" - fi - done - - - name: Check the check - id: check-result - run: | - echo "Pass log is ${{ steps.check-return.outputs.PASS_LOG }}" + if [[ "${{ steps.standard.outputs.result }}" == *"True"* ]]; then + echo "::notice title=StandardCheck::Success" + echo "PASS_STD=True" >> "$GITHUB_OUTPUT" + else + echo "::error title=StandardCheck::Didn't pass" + echo "PASS_STD=False" >> "$GITHUB_OUTPUT" + fi + if [[ "${{ steps.stable.outputs.result }}" == *"True"* ]]; then + echo "::notice title=StableCheck::Success" + echo "PASS_STB=True" >> "$GITHUB_OUTPUT" + else + echo "::warning title=StableCheck::Didn't pass" + echo "PASS_STB=False" >> "$GITHUB_OUTPUT" + fi + if [[ "${{ steps.dev.outputs.result }}" == *"True"* ]]; then + echo "::notice title=DevCheck::Success" + echo "PASS_DEV=True" >> "$GITHUB_OUTPUT" + else + echo "::warning title=DevCheck::Didn't pass" + echo "PASS_DEV=False" >> "$GITHUB_OUTPUT" + fi - name: Add member env: @@ -125,8 +129,8 @@ jobs: branch: submission-${{ github.event.issue.number }} base: main - - name: Create comment on success - if: ${{ steps.check-return.outputs.PASS_LOG == 'True' }} + - name: Create comment on success for standard check + if: ${{ steps.check-return.outputs.PASS_STD == 'True' }} uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{ github.event.issue.number }} @@ -134,7 +138,7 @@ jobs: Successfull submission! :sparkles: PR #${{ steps.cpr.outputs.pull-request-number }} - name: Create comment on failure - if: ${{ steps.check-return.outputs.PASS_LOG == 'False' }} + if: ${{ steps.check-return.outputs.PASS_STD != 'True' }} uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{ github.event.issue.number }} @@ -143,3 +147,41 @@ jobs: See logs: https://github.com/qiskit-community/ecosystem/actions/runs/${{ github.run_id }} Please follow minimal requirements for project or/and add `ecosystem.json` configuration in the root of the project Read more here https://github.com/qiskit-community/ecosystem/blob/main/docs/project_overview.md#adding-project-to-the-ecosystem + + - name: Create comment on success for stable check + if: ${{ steps.check-return.outputs.PASS_STB == 'True' }} + uses: peter-evans/create-or-update-comment@v3 + with: + issue-number: ${{ github.event.issue.number }} + body: | + Tests with latest version of Qiskit release passed! :sparkles: + + - name: Create comment on failure for stable check + if: ${{ steps.check-return.outputs.PASS_STB != 'True' }} + uses: peter-evans/create-or-update-comment@v3 + with: + issue-number: ${{ github.event.issue.number }} + body: | + Tests with latest version of Qiskit release failed! :warning: + This means your project doesn't work with the latest version of Qiskit. + This is purely informational and doesn't affect your project joining the Ecosystem, but you may want to investigate the problem. + See logs: https://github.com/qiskit-community/ecosystem/actions/runs/${{ github.run_id }} + + - name: Create comment on success for dev check + if: ${{ steps.check-return.outputs.PASS_DEV == 'True' }} + uses: peter-evans/create-or-update-comment@v3 + with: + issue-number: ${{ github.event.issue.number }} + body: | + Tests with development version of Qiskit release passed! :sparkles: + + - name: Create comment on failure for dev check + if: ${{ steps.check-return.outputs.PASS_DEV != 'True' }} + uses: peter-evans/create-or-update-comment@v3 + with: + issue-number: ${{ github.event.issue.number }} + body: | + Tests with development version of Qiskit release failed! :warning: + This means your project might not work with the next version of Qiskit. + This is purely informational and doesn't affect your project joining Ecosystem. + See logs: https://github.com/qiskit-community/ecosystem/actions/runs/${{ github.run_id }} diff --git a/ecosystem/manager.py b/ecosystem/manager.py index bfdc41e395..e10a474419 100644 --- a/ecosystem/manager.py +++ b/ecosystem/manager.py @@ -131,7 +131,10 @@ def update_badges(self): for tier in Tier.all(): for project in self.dao.get_repos_by_tier(tier): - tests_passed = all(result.passed for result in project.tests_results) + tests_passed = True + for type_test in project.tests_results: + if type_test.test_type == "standard" and not type_test.passed: + tests_passed = False color = "blueviolet" if tests_passed else "gray" label = project.name message = tier diff --git a/tests/test_manager.py b/tests/test_manager.py index b62ffc83f7..58446a0137 100644 --- a/tests/test_manager.py +++ b/tests/test_manager.py @@ -27,7 +27,13 @@ def get_community_repo() -> Repository: test_type=TestType.DEV_COMPATIBLE, package=Package.TERRA, package_version="0.18.0", - ) + ), + TestResult( + passed=True, + test_type=TestType.STANDARD, + package=Package.TERRA, + package_version="0.18.0", + ), ], tier=Tier.COMMUNITY, ) @@ -47,7 +53,13 @@ def get_community_fail_repo() -> Repository: test_type=TestType.DEV_COMPATIBLE, package=Package.TERRA, package_version="0.18.0", - ) + ), + TestResult( + passed=False, + test_type=TestType.STANDARD, + package=Package.TERRA, + package_version="0.18.0", + ), ], tier=Tier.COMMUNITY, ) From fe4fd4ea7621d4ed19ae4816b82aec3c79d5a126 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 10:20:27 +0100 Subject: [PATCH 2/3] Badges and stars update for 2023_08_02_13_46 (#474) Badges and stars update Time: 2023_08_02_13_46 Co-authored-by: frankharkins --- badges/Entanglement forging.svg | 2 +- badges/kaleidoscope.svg | 2 +- badges/mitiq.svg | 2 +- badges/qiskit-classroom-converter.svg | 1 + badges/quantumcat.svg | 2 +- ecosystem/resources/members/Blueqat.toml | 2 +- ecosystem/resources/members/circuit-knitting-toolbox.toml | 2 +- ecosystem/resources/members/mitiq.toml | 2 +- ecosystem/resources/members/openqasm.toml | 2 +- ecosystem/resources/members/pytorch-quantum.toml | 2 +- ecosystem/resources/members/qBraid.toml | 2 +- ecosystem/resources/members/qiskit-aer.toml | 2 +- ecosystem/resources/members/qiskit-classroom-converter.toml | 1 + ecosystem/resources/members/qiskit-experiments.toml | 2 +- ecosystem/resources/members/qiskit-finance.toml | 2 +- ecosystem/resources/members/qiskit-ibm-provider.toml | 2 +- ecosystem/resources/members/qiskit-ibm-runtime.toml | 2 +- ecosystem/resources/members/qiskit-ionq.toml | 2 +- ecosystem/resources/members/qiskit-machine-learning.toml | 2 +- ecosystem/resources/members/qiskit-metal.toml | 2 +- ecosystem/resources/members/qiskit-nature.toml | 2 +- ecosystem/resources/members/qiskit-optimization.toml | 2 +- ecosystem/resources/members/quantum-serverless.toml | 2 +- 23 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 badges/qiskit-classroom-converter.svg diff --git a/badges/Entanglement forging.svg b/badges/Entanglement forging.svg index ea481c1f71..e4021cf483 100644 --- a/badges/Entanglement forging.svg +++ b/badges/Entanglement forging.svg @@ -1 +1 @@ -Entanglement forging: ExtensionsEntanglement forgingExtensions \ No newline at end of file +Entanglement forging: ExtensionsEntanglement forgingExtensions \ No newline at end of file diff --git a/badges/kaleidoscope.svg b/badges/kaleidoscope.svg index 8d532af5b2..77fb11a40d 100644 --- a/badges/kaleidoscope.svg +++ b/badges/kaleidoscope.svg @@ -1 +1 @@ -kaleidoscope: CommunitykaleidoscopeCommunity \ No newline at end of file +kaleidoscope: CommunitykaleidoscopeCommunity \ No newline at end of file diff --git a/badges/mitiq.svg b/badges/mitiq.svg index 344063b028..6e0b7513f5 100644 --- a/badges/mitiq.svg +++ b/badges/mitiq.svg @@ -1 +1 @@ -mitiq: CommunitymitiqCommunity \ No newline at end of file +mitiq: CommunitymitiqCommunity \ No newline at end of file diff --git a/badges/qiskit-classroom-converter.svg b/badges/qiskit-classroom-converter.svg new file mode 100644 index 0000000000..320cb66025 --- /dev/null +++ b/badges/qiskit-classroom-converter.svg @@ -0,0 +1 @@ +qiskit-classroom-converter: Communityqiskit-classroom-converterCommunity \ No newline at end of file diff --git a/badges/quantumcat.svg b/badges/quantumcat.svg index 9a45a7f444..48eb95b391 100644 --- a/badges/quantumcat.svg +++ b/badges/quantumcat.svg @@ -1 +1 @@ -quantumcat: CommunityquantumcatCommunity \ No newline at end of file +quantumcat: CommunityquantumcatCommunity \ No newline at end of file diff --git a/ecosystem/resources/members/Blueqat.toml b/ecosystem/resources/members/Blueqat.toml index bcea0c5e40..97c8b219af 100644 --- a/ecosystem/resources/members/Blueqat.toml +++ b/ecosystem/resources/members/Blueqat.toml @@ -7,7 +7,7 @@ created_at = 1678827878.864396 updated_at = 1678827878.864397 tier = "Community" skip_tests = false -stars = 358 +stars = 359 [[tests_results]] test_type = "development" passed = false diff --git a/ecosystem/resources/members/circuit-knitting-toolbox.toml b/ecosystem/resources/members/circuit-knitting-toolbox.toml index 5a40fb44dc..4853773ebf 100644 --- a/ecosystem/resources/members/circuit-knitting-toolbox.toml +++ b/ecosystem/resources/members/circuit-knitting-toolbox.toml @@ -12,7 +12,7 @@ coverages_results = [] tier = "Extensions" skip_tests = true historical_test_results = [] -stars = 44 +stars = 46 [[tests_results]] test_type = "development" passed = false diff --git a/ecosystem/resources/members/mitiq.toml b/ecosystem/resources/members/mitiq.toml index f6eec965e1..a6c9ea44f4 100644 --- a/ecosystem/resources/members/mitiq.toml +++ b/ecosystem/resources/members/mitiq.toml @@ -7,7 +7,7 @@ created_at = 1678827878.932437 updated_at = 1678827878.932437 tier = "Community" skip_tests = false -stars = 272 +stars = 274 [[tests_results]] test_type = "development" passed = false diff --git a/ecosystem/resources/members/openqasm.toml b/ecosystem/resources/members/openqasm.toml index 0f678b9215..d27bb04a8b 100644 --- a/ecosystem/resources/members/openqasm.toml +++ b/ecosystem/resources/members/openqasm.toml @@ -15,4 +15,4 @@ coverages_results = [] tier = "Main" skip_tests = true historical_test_results = [] -stars = 1006 +stars = 1011 diff --git a/ecosystem/resources/members/pytorch-quantum.toml b/ecosystem/resources/members/pytorch-quantum.toml index 6cb542a6e8..01bacde8a9 100644 --- a/ecosystem/resources/members/pytorch-quantum.toml +++ b/ecosystem/resources/members/pytorch-quantum.toml @@ -7,7 +7,7 @@ created_at = 1678827878.611621 updated_at = 1678827878.611622 tier = "Community" skip_tests = false -stars = 756 +stars = 759 [[tests_results]] test_type = "development" passed = false diff --git a/ecosystem/resources/members/qBraid.toml b/ecosystem/resources/members/qBraid.toml index f4569474b8..36d4b1e1d1 100644 --- a/ecosystem/resources/members/qBraid.toml +++ b/ecosystem/resources/members/qBraid.toml @@ -15,4 +15,4 @@ coverages_results = [] tier = "Community" skip_tests = false historical_test_results = [] -stars = 31 +stars = 36 diff --git a/ecosystem/resources/members/qiskit-aer.toml b/ecosystem/resources/members/qiskit-aer.toml index 0c6aa47ca1..ddf79af8f7 100644 --- a/ecosystem/resources/members/qiskit-aer.toml +++ b/ecosystem/resources/members/qiskit-aer.toml @@ -11,4 +11,4 @@ tests_results = [] styles_results = [] coverages_results = [] skip_tests = true -stars = 380 +stars = 383 diff --git a/ecosystem/resources/members/qiskit-classroom-converter.toml b/ecosystem/resources/members/qiskit-classroom-converter.toml index 87faaaf4dc..0a149a11e0 100644 --- a/ecosystem/resources/members/qiskit-classroom-converter.toml +++ b/ecosystem/resources/members/qiskit-classroom-converter.toml @@ -13,3 +13,4 @@ styles_results = [] coverages_results = [] skip_tests = false historical_test_results = [] +stars = 0 diff --git a/ecosystem/resources/members/qiskit-experiments.toml b/ecosystem/resources/members/qiskit-experiments.toml index ce8ad03c7c..be76d3e190 100644 --- a/ecosystem/resources/members/qiskit-experiments.toml +++ b/ecosystem/resources/members/qiskit-experiments.toml @@ -9,4 +9,4 @@ url = "https://github.com/Qiskit-Extensions/qiskit-experiments" website = "https://qiskit.org/ecosystem/experiments/" tests_results = [] skip_tests = true -stars = 115 +stars = 116 diff --git a/ecosystem/resources/members/qiskit-finance.toml b/ecosystem/resources/members/qiskit-finance.toml index 812e53ed9f..247863d4a8 100644 --- a/ecosystem/resources/members/qiskit-finance.toml +++ b/ecosystem/resources/members/qiskit-finance.toml @@ -11,4 +11,4 @@ tests_results = [] styles_results = [] coverages_results = [] skip_tests = true -stars = 169 +stars = 170 diff --git a/ecosystem/resources/members/qiskit-ibm-provider.toml b/ecosystem/resources/members/qiskit-ibm-provider.toml index 6ca5e0fdc1..51af9bf750 100644 --- a/ecosystem/resources/members/qiskit-ibm-provider.toml +++ b/ecosystem/resources/members/qiskit-ibm-provider.toml @@ -13,7 +13,7 @@ styles_results = [] coverages_results = [] tier = "Main" skip_tests = true -stars = 56 +stars = 57 [configuration] dependencies_files = [ "requirements.txt", "requirements-dev.txt",] diff --git a/ecosystem/resources/members/qiskit-ibm-runtime.toml b/ecosystem/resources/members/qiskit-ibm-runtime.toml index 41ed94391b..37cb2247a8 100644 --- a/ecosystem/resources/members/qiskit-ibm-runtime.toml +++ b/ecosystem/resources/members/qiskit-ibm-runtime.toml @@ -13,4 +13,4 @@ styles_results = [] coverages_results = [] tier = "Main" skip_tests = true -stars = 85 +stars = 87 diff --git a/ecosystem/resources/members/qiskit-ionq.toml b/ecosystem/resources/members/qiskit-ionq.toml index 154701aa02..39269bcd8c 100644 --- a/ecosystem/resources/members/qiskit-ionq.toml +++ b/ecosystem/resources/members/qiskit-ionq.toml @@ -11,7 +11,7 @@ styles_results = [] coverages_results = [] tier = "Community" skip_tests = false -stars = 29 +stars = 30 [[tests_results]] test_type = "development" passed = true diff --git a/ecosystem/resources/members/qiskit-machine-learning.toml b/ecosystem/resources/members/qiskit-machine-learning.toml index c27f6a5590..5db0ede4c8 100644 --- a/ecosystem/resources/members/qiskit-machine-learning.toml +++ b/ecosystem/resources/members/qiskit-machine-learning.toml @@ -11,4 +11,4 @@ tests_results = [] styles_results = [] coverages_results = [] skip_tests = true -stars = 468 +stars = 473 diff --git a/ecosystem/resources/members/qiskit-metal.toml b/ecosystem/resources/members/qiskit-metal.toml index 77c0c88a85..016e26332f 100644 --- a/ecosystem/resources/members/qiskit-metal.toml +++ b/ecosystem/resources/members/qiskit-metal.toml @@ -8,4 +8,4 @@ updated_at = 1628883441.119205 url = "https://github.com/qiskit-community/qiskit-metal" tests_results = [] skip_tests = true -stars = 238 +stars = 240 diff --git a/ecosystem/resources/members/qiskit-nature.toml b/ecosystem/resources/members/qiskit-nature.toml index b4327eb2c4..1d1ffaa5cb 100644 --- a/ecosystem/resources/members/qiskit-nature.toml +++ b/ecosystem/resources/members/qiskit-nature.toml @@ -11,4 +11,4 @@ tests_results = [] styles_results = [] coverages_results = [] skip_tests = true -stars = 234 +stars = 236 diff --git a/ecosystem/resources/members/qiskit-optimization.toml b/ecosystem/resources/members/qiskit-optimization.toml index 00cbbe623e..c2f4c3b96b 100644 --- a/ecosystem/resources/members/qiskit-optimization.toml +++ b/ecosystem/resources/members/qiskit-optimization.toml @@ -11,4 +11,4 @@ tests_results = [] styles_results = [] coverages_results = [] skip_tests = true -stars = 172 +stars = 174 diff --git a/ecosystem/resources/members/quantum-serverless.toml b/ecosystem/resources/members/quantum-serverless.toml index 59656f5d4d..88d2488471 100644 --- a/ecosystem/resources/members/quantum-serverless.toml +++ b/ecosystem/resources/members/quantum-serverless.toml @@ -12,7 +12,7 @@ coverages_results = [] tier = "Extensions" skip_tests = true historical_test_results = [] -stars = 30 +stars = 32 [[tests_results]] test_type = "development" passed = false From b47e815e2f56db394492f128a746f2e175bd4943 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 3 Aug 2023 09:21:10 +0000 Subject: [PATCH 3/3] Recompile members.json --- ecosystem/resources/members.json | 37 ++++++++++++++++---------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/ecosystem/resources/members.json b/ecosystem/resources/members.json index 9d54114dbb..2fb3c41b48 100644 --- a/ecosystem/resources/members.json +++ b/ecosystem/resources/members.json @@ -12,7 +12,7 @@ "updated_at": 1678827878.864397, "tier": "Community", "skip_tests": false, - "stars": 358, + "stars": 359, "tests_results": [ { "test_type": "development", @@ -327,7 +327,8 @@ "styles_results": [], "coverages_results": [], "skip_tests": false, - "historical_test_results": [] + "historical_test_results": [], + "stars": 0 }, "2": { "created_at": 1636403010.012954, @@ -346,7 +347,7 @@ "styles_results": [], "coverages_results": [], "skip_tests": true, - "stars": 468 + "stars": 473 }, "3": { "created_at": 1636403009.538761, @@ -365,7 +366,7 @@ "styles_results": [], "coverages_results": [], "skip_tests": true, - "stars": 172 + "stars": 174 }, "4": { "name": "kaleidoscope", @@ -1155,7 +1156,7 @@ "styles_results": [], "coverages_results": [], "skip_tests": true, - "stars": 234 + "stars": 236 }, "10": { "name": "quantumcat", @@ -1617,7 +1618,7 @@ "updated_at": 1678827878.611622, "tier": "Community", "skip_tests": false, - "stars": 756, + "stars": 759, "tests_results": [ { "test_type": "development", @@ -2588,7 +2589,7 @@ "updated_at": 1678827878.932437, "tier": "Community", "skip_tests": false, - "stars": 272, + "stars": 274, "tests_results": [ { "test_type": "development", @@ -3009,7 +3010,7 @@ "tier": "Community", "skip_tests": false, "historical_test_results": [], - "stars": 31 + "stars": 36 }, "24": { "created_at": 1636403009.368607, @@ -3028,7 +3029,7 @@ "styles_results": [], "coverages_results": [], "skip_tests": true, - "stars": 169 + "stars": 170 }, "25": { "name": "c3", @@ -3766,7 +3767,7 @@ "url": "https://github.com/qiskit-community/qiskit-metal", "tests_results": [], "skip_tests": true, - "stars": 238 + "stars": 240 }, "31": { "name": "qiskit-rigetti", @@ -4452,7 +4453,7 @@ "coverages_results": [], "tier": "Community", "skip_tests": false, - "stars": 29, + "stars": 30, "tests_results": [ { "test_type": "development", @@ -5701,7 +5702,7 @@ "coverages_results": [], "tier": "Main", "skip_tests": true, - "stars": 56, + "stars": 57, "configuration": { "dependencies_files": [ "requirements.txt", @@ -5743,7 +5744,7 @@ "tier": "Main", "skip_tests": true, "historical_test_results": [], - "stars": 1006 + "stars": 1011 }, "2": { "created_at": 1636403010.377695, @@ -5761,7 +5762,7 @@ "styles_results": [], "coverages_results": [], "skip_tests": true, - "stars": 380 + "stars": 383 }, "3": { "name": "qiskit-ibm-runtime", @@ -5782,7 +5783,7 @@ "coverages_results": [], "tier": "Main", "skip_tests": true, - "stars": 85 + "stars": 87 } }, "Extensions": { @@ -6342,7 +6343,7 @@ "website": "https://qiskit.org/ecosystem/experiments/", "tests_results": [], "skip_tests": true, - "stars": 115 + "stars": 116 }, "3": { "name": "qiskit-research", @@ -6398,7 +6399,7 @@ "tier": "Extensions", "skip_tests": true, "historical_test_results": [], - "stars": 30, + "stars": 32, "tests_results": [ { "test_type": "development", @@ -6447,7 +6448,7 @@ "tier": "Extensions", "skip_tests": true, "historical_test_results": [], - "stars": 44, + "stars": 46, "tests_results": [ { "test_type": "development",