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

Merge V25.2.1 into main #1571

Closed
wants to merge 112 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
9286503
add new tests
andrewelamb Sep 10, 2024
3d6d3b3
handle merge conflict
andrewelamb Oct 1, 2024
f0368f9
add unit tests
andrewelamb Oct 3, 2024
89c1cf0
ran black
andrewelamb Oct 4, 2024
95d7686
Update schematic/models/validate_attribute.py
andrewelamb Oct 10, 2024
95a59c4
added tests
andrewelamb Oct 11, 2024
8e555f1
Merge branch 'develop' into FDS-2333-ValidateAttribute-unit-tests
andrewelamb Oct 17, 2024
d7731a4
Update README.md
jaymedina Oct 21, 2024
9a40ce8
Update README.md
jaymedina Oct 21, 2024
f5c6f8c
add unit tests
andrewelamb Oct 21, 2024
d0ae908
run black
andrewelamb Oct 21, 2024
4fe84c6
Update README.md
jaymedina Oct 22, 2024
46e6a03
temp commit
andrewelamb Oct 22, 2024
c987329
remove old tests
andrewelamb Oct 22, 2024
0bd946c
[FDS-2386] Synapse entity tracking and code concurrency updates (#1505)
BryanFauble Oct 24, 2024
4c47cb3
Merge branch 'develop' into FDS-2333-ValidateAttribute-unit-tests
andrewelamb Oct 24, 2024
ff7b7f7
Merge branch 'develop' into FDS-2347
andrewelamb Oct 24, 2024
40418d7
ran black
andrewelamb Oct 24, 2024
ed85e4b
Update CODEOWNERS
andrewelamb Oct 25, 2024
2063508
Merge pull request #1525 from Sage-Bionetworks/andrewelamb-patch-1
andrewelamb Oct 25, 2024
1fae4c5
Merge pull request #1517 from Sage-Bionetworks/FDS-2333-ValidateAttri…
andrewelamb Oct 25, 2024
1765552
updated data model type rules to include error param
andrewelamb Oct 25, 2024
beb8663
fix validate type attribute to use msg level param
andrewelamb Oct 25, 2024
23106a4
Merge branch 'develop' into FDS-2506-type-val
andrewelamb Oct 25, 2024
525e3da
added error handling
andrewelamb Oct 25, 2024
5fcaac3
run black
andrewelamb Oct 25, 2024
9b78dba
create Node class
andrewelamb Oct 25, 2024
083f7ec
sat up Node class so that nodes with no displayName fields cause an e…
andrewelamb Oct 25, 2024
0de69aa
ran black
andrewelamb Oct 25, 2024
f58ba9f
ran mypy
andrewelamb Oct 25, 2024
a87df1f
Merge pull request #1523 from Sage-Bionetworks/FDS-2347
andrewelamb Oct 26, 2024
c69ec88
Merge pull request #1522 from Sage-Bionetworks/develop-fds-2466-updat…
andrewelamb Oct 30, 2024
59889b6
Merge pull request #1526 from Sage-Bionetworks/FDS-2506-type-val
andrewelamb Oct 30, 2024
e8fb516
added new configs for CLI tests
andrewelamb Oct 30, 2024
2c2da77
added new manifests for testing CLI commands
andrewelamb Oct 30, 2024
d9a7bae
automate manual CLI tests
andrewelamb Oct 30, 2024
40837ab
ran black
andrewelamb Oct 30, 2024
5703b59
Update CODEOWNERS
thomasyu888 Nov 1, 2024
459a767
Update scan_repo.yml
thomasyu888 Nov 1, 2024
bbab0a5
Update .github/CODEOWNERS
thomasyu888 Nov 1, 2024
469da57
Update .github/workflows/scan_repo.yml
thomasyu888 Nov 1, 2024
d1ef225
Merge pull request #1531 from Sage-Bionetworks/thomasyu888-patch-1
thomasyu888 Nov 1, 2024
ad7c8f8
Attach additional telemetry data to OTEL traces (#1519)
BryanFauble Nov 1, 2024
1c2d7be
feat: added tracing for cross manifest validation and file name valid…
linglp Nov 1, 2024
d1cbc04
temp commit
andrewelamb Nov 4, 2024
d6e99f3
Merge branch 'develop' into FDS-2238-automate-cli-tests
andrewelamb Nov 4, 2024
c75c71c
Updating contribution doc to expect squash and merge (#1534)
BryanFauble Nov 5, 2024
4bbbb68
[FDS-2491] Integration tests for Schematic API Test plan (#1512)
BryanFauble Nov 5, 2024
39852a1
[FDS-2500] Add Integration Tests for: Manifest Validation (#1516)
jaymedina Nov 6, 2024
1cd5efa
[FDS-2449] Lock `sphinx` version and update `poetry.lock` (#1530)
jaymedina Nov 7, 2024
dd00932
Merge branch 'develop' into FDS-2238-automate-cli-tests
andrewelamb Nov 7, 2024
318171e
manual test files now being saved in manifests folder
andrewelamb Nov 7, 2024
4e1d5b1
manual test files now being saved in manifests folder
andrewelamb Nov 7, 2024
07e0c75
remove lines to delete json files that were under git control
andrewelamb Nov 7, 2024
de4ed61
ran black
andrewelamb Nov 7, 2024
5a19b12
add try finally blocks to remove created files
andrewelamb Nov 7, 2024
1cd1b5a
ran black
andrewelamb Nov 7, 2024
26e8a99
add lines to remove created json files
andrewelamb Nov 7, 2024
f57c718
Update file annotation store process to require filename be present i…
BryanFauble Nov 7, 2024
35d440b
add lines to remove created json files
andrewelamb Nov 7, 2024
e832d02
Revert "Update file annotation store process to require filename be p…
BryanFauble Nov 7, 2024
11be01a
Don't attempt to annotate the table
BryanFauble Nov 7, 2024
6c3d0ce
add code in finally blocks to reset config to default values, when te…
andrewelamb Nov 8, 2024
34bd8de
complete submit manifest command test
andrewelamb Nov 8, 2024
fbc1298
ran black
andrewelamb Nov 8, 2024
f3d878d
add test for bug case
SageGJ Nov 11, 2024
7dcc88f
update test for table tidyness
SageGJ Nov 11, 2024
6d0cdd0
remove unused import
SageGJ Nov 11, 2024
37cd4cd
remove etag column if already present when building temp file view
SageGJ Nov 11, 2024
68b0b24
catch all exceptions to switch to sequential mode
SageGJ Nov 12, 2024
255e3c0
update test for updated data
SageGJ Nov 12, 2024
6c122ee
Revert "update test for updated data"
SageGJ Nov 12, 2024
ad71660
Revert "catch all exceptions to switch to sequential mode"
SageGJ Nov 12, 2024
cc1fb27
catch ValueErrors as well
SageGJ Nov 12, 2024
e30e32c
Updates for integration test failures (#1537)
BryanFauble Nov 12, 2024
3064d00
Merge branch 'develop' into schematic-126-file-annotation-storage-update
BryanFauble Nov 12, 2024
3099be3
Merge branch 'develop' into FDS-2238-automate-cli-tests
andrewelamb Nov 12, 2024
4f82822
Merge pull request #1535 from Sage-Bionetworks/schematic-126-file-ann…
thomasyu888 Nov 13, 2024
f6d015b
Merge pull request #1538 from Sage-Bionetworks/schematic-1-existing-eTag
thomasyu888 Nov 13, 2024
ec896e6
add todos for removing config resets
andrewelamb Nov 13, 2024
778bf54
[FDS-2525] Authenticated export of telemetry data (#1527)
BryanFauble Nov 13, 2024
8655b8d
temp reduce tests
andrewelamb Nov 13, 2024
4050e71
restore tests
andrewelamb Nov 13, 2024
a610955
uncomment tests
andrewelamb Nov 13, 2024
819aeb4
redid how files are deleted, manual tests values are set
andrewelamb Nov 13, 2024
b275c68
ran black
andrewelamb Nov 13, 2024
1e5da3c
Merge pull request #1528 from Sage-Bionetworks/FDS-2238-automate-cli-…
thomasyu888 Nov 14, 2024
39459e7
[SCHEMATIC-157] Make some dependencies required to avoid `schematic C…
thomasyu888 Nov 14, 2024
c7eace9
Merge branch 'main' into develop
thomasyu888 Nov 14, 2024
2ed7837
Include schematic_api for now (#1547)
thomasyu888 Nov 15, 2024
67a93be
update toml version to 24.11.1 (#1548)
andrewelamb Nov 15, 2024
1ef9818
Merge branch 'main' into develop
thomasyu888 Nov 19, 2024
14aa510
[SCHEMATIC-193] Support exporting telemetry data from GH integration …
BryanFauble Nov 19, 2024
998e295
[SCHEMATIC-30, SCHEMATIC-200] Add version to click cli / use pathlib.…
thomasyu888 Nov 23, 2024
c3e0732
[SCHEMATIC-212] Prevent traces from being combined (#1552)
BryanFauble Nov 25, 2024
c681346
[SCHEMATIC-163] Catch error when manifest is generated and existing o…
BWMac Dec 2, 2024
ef87c39
[SCHEMATIC-183] Use paths from file view for manifest generation (#1529)
GiaJordan Dec 10, 2024
70813f1
[SCHEMATIC-214] Wrap pandas functions to support not including `None`…
BryanFauble Dec 13, 2024
d9d807f
updates publish.yml (#1558)
BWMac Dec 16, 2024
0321d51
Fix merge conflicts
thomasyu888 Dec 16, 2024
942c2ba
full debug print
BWMac Dec 17, 2024
318f244
Accidentally committed to develop - reverting change
BWMac Dec 17, 2024
951cd74
[SCHEMATIC-210] Updates `publish.yml` for Test PyPi deployments (#155…
BWMac Dec 17, 2024
1c68964
Add precommit and run on all files (#1541)
thomasyu888 Dec 18, 2024
aa851e3
[DPE-1188] Migrate schematic to SigNoz cloud (#1564)
BryanFauble Dec 27, 2024
48da1c0
[DPE-1151] Update ReadMe instructions and environment variable when e…
linglp Jan 7, 2025
32780d6
attempt to update sonarcloud scan action (#1567)
andrewelamb Jan 10, 2025
50f93d8
[SCHEMATIC-208] fix slow test times (#1566)
andrewelamb Jan 13, 2025
6a9601b
[schematic-230] propagate user ids as attribute to spans (#1568)
linglp Jan 17, 2025
c50c599
[Schematic-90] Use synapseclient user-agent string to track schematic…
SageGJ Jan 28, 2025
a701384
update version
linglp Feb 3, 2025
4c1769b
update version number to 25.2.1
linglp Feb 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
ignore =
ignore =
# E*** / W*** pycodestyle codes
# whitespace before ','
E203,
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/jira_service_desk.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Please file issues in Jira Service Desk
name: Please file issues in Jira Service Desk
about: https://sagebionetworks.jira.com/servicedesk/customer/portal/5/group/8/create/87
title: ''
labels: ''
Expand All @@ -10,4 +10,4 @@ assignees: ''
**Describe the bug**
Please file issues or requests for help with schematic in [Jira Service Desk](https://sagebionetworks.jira.com/servicedesk/customer/portal/5/group/8/create/87).

These issues are not monitored.
These issues are not monitored.
2 changes: 1 addition & 1 deletion .github/workflows/api_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
| python3 - --version ${{ env.POETRY_VERSION }};
poetry config virtualenvs.create true;
poetry config virtualenvs.in-project true;

#----------------------------------------------
# install dependencies and root project
#----------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set env variable for version tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

Expand Down Expand Up @@ -54,4 +54,3 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
TAG=${{ env.RELEASE_VERSION }}

18 changes: 9 additions & 9 deletions .github/workflows/pdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ permissions:
contents: read

concurrency:
# cancel the current running workflow from the same branch, PR when a new workflow is triggered
# cancel the current running workflow from the same branch, PR when a new workflow is triggered
# when the trigger is not a PR but a push, it will use the commit sha to generate the concurrency group
# {{ github.workflow }}: the workflow name is used to generate the concurrency group. This allows you to have more than one workflows
# {{ github.ref_type }}: the type of Git ref object created in the repository. Can be either branch or tag
# {{ github.event.pull_request.number}}: get PR number
# {{ github.sha }}: full commit sha
# {{ github.ref_type }}: the type of Git ref object created in the repository. Can be either branch or tag
# {{ github.event.pull_request.number}}: get PR number
# {{ github.sha }}: full commit sha
# credit: https://github.com/Sage-Bionetworks-Workflows/sagetasks/blob/main/.github/workflows/ci.yml
group: >-
${{ github.workflow }}-${{ github.ref_type }}-
Expand All @@ -32,7 +32,7 @@ jobs:

steps:
#----------------------------------------------
# check-out repo and set-up python
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v4
Expand All @@ -41,16 +41,16 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

#----------------------------------------------
# install & configure poetry
# install & configure poetry
#----------------------------------------------
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org \
| python3 - --version ${{ env.POETRY_VERSION }};
poetry config virtualenvs.create true;
poetry config virtualenvs.in-project true;
poetry config virtualenvs.create true;
poetry config virtualenvs.in-project true;

#----------------------------------------------
# install dependencies and root project
Expand Down
157 changes: 71 additions & 86 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,107 +1,92 @@
name: Publish to PyPI
on:
push:
tags:
- 'v[1-9][0-9].[0-9]+.[0-9]+'
branches: [main]
release:
types: [published]

jobs:
pypi_release:
build:
runs-on: ubuntu-22.04
env:
POETRY_VERSION: 1.3.0
PYTHON_VERSION: "3.10"
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
outputs:
sdist-package-name: ${{ steps.build-package.outputs.sdist-package-name }}
bdist-package-name: ${{ steps.build-package.outputs.bdist-package-name }}
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

#----------------------------------------------
# install & configure poetry
#----------------------------------------------
- name: Install Poetry
- id: build-package
run: |
curl -sSL https://install.python-poetry.org \
| python3 - --version ${{ env.POETRY_VERSION }};
poetry config virtualenvs.create true;
poetry config virtualenvs.in-project true;
python3 -m pip install --upgrade pip
python3 -m pip install setuptools
python3 -m pip install wheel
python3 -m pip install build
python3 -m pip install .
python3 -m build

#----------------------------------------------
# install dependencies and root project
#----------------------------------------------
- name: Install dependencies and root project
run: poetry install --no-interaction --all-extras

#----------------------------------------------
# get current pushed tag
#----------------------------------------------
- name: Show GitHub ref
run: echo "$GITHUB_REF"
VERSION=${{ github.event.release.tag_name }}
SDIST_PACKAGE_NAME="schematicpy-${VERSION}.tar.gz"
BDIST_PACKAGE_NAME="schematicpy-${VERSION}-py3-none-any.whl"
RELEASE_URL_PREFIX="https://uploads.github.com/repos/${{ github.event.repository.full_name }}/releases/${{ github.event.release.id }}/assets?name="

- name: Get current pushed tag
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "$RELEASE_VERSION"

#----------------------------------------------
# override version tag
#----------------------------------------------
- name: Override version tag
run: poetry run python3 override_version.py
shell: sh
echo "sdist-package-name=$SDIST_PACKAGE_NAME" >> $GITHUB_OUTPUT
echo "bdist-package-name=$BDIST_PACKAGE_NAME" >> $GITHUB_OUTPUT

#----------------------------------------------
# publish to testpypi
#----------------------------------------------
# - run: poetry config repositories.testpypi https://test.pypi.org/legacy/
# - run: poetry config pypi-token.testpypi ${{ secrets.TWINE_TEST_TOKEN }}
# - name: Publish package to test Pypi
# run: poetry publish -vvvv --build -r testpypi
echo "sdist-release-url=${RELEASE_URL_PREFIX}${SDIST_PACKAGE_NAME}" >> $GITHUB_OUTPUT
echo "bdist-release-url=${RELEASE_URL_PREFIX}${BDIST_PACKAGE_NAME}" >> $GITHUB_OUTPUT

#----------------------------------------------
# check tag
#----------------------------------------------
- name: Check Tag
id: check-tag
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo ::set-output name=match::true
fi
#----------------------------------------------
# publish to pypi
#----------------------------------------------
- name: Publish package to Pypi
id: publish-to-pypi
if: steps.check-tag.outputs.match == 'true'
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
PYPI_USERNAME: __token__
run: |
poetry publish --build --username $PYPI_USERNAME --password $PYPI_TOKEN
- name: upload-sdist-artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build-package.outputs.sdist-package-name }}
path: dist/
if-no-files-found: error

#----------------------------------------------
# post a message to slack
#----------------------------------------------
- name: upload-bdist-artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build-package.outputs.bdist-package-name }}
path: dist/
if-no-files-found: error

- name: Post to a Slack channel
if: steps.publish-to-pypi.outcome == 'success'
publish:
needs: build
runs-on: ubuntu-latest
environment:
name: ${{ github.event.release.prerelease == true && 'testpypi' || 'pypi' }}
url: ${{ github.event.release.prerelease == true && 'https://test.pypi.org/p/schematicpy' || 'https://pypi.org/p/schematicpy' }}
permissions:
id-token: write
steps:
- name: download-sdist
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.sdist-package-name }}
path: dist

- name: download-bdist
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.bdist-package-name }}
path: dist

- name: deploy-to-pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: ${{ github.event.release.prerelease == true && 'https://test.pypi.org/legacy/' || '' }}

slack-notification:
needs: publish
if: ${{ github.event.release.prerelease != true }}
runs-on: ubuntu-latest
steps:
- name: post-slack-notification
id: slack
uses: slackapi/slack-github-action@v1.23.0
with:
# Slack channel id, channel name, or user id to post message.
# See also: https://api.slack.com/methods/chat.postMessage#channels
# You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
# ibc-fair-data channel and data-curator-schematic channel
channel-id: 'C050YD75QRL,C01ANC02U59'
# For posting a simple plain text message
slack-message: "Schematic has just been released. Check out new version: ${{ github.ref_name }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
# Post to the `fair-data-tools` slack channel
channel-id: 'C01ANC02U59'
slack-message: "A new version of Schematic has been released. Check out the new version: ${{ github.ref_name }}"
2 changes: 1 addition & 1 deletion .github/workflows/scan_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- develop
pull_request:
workflow_dispatch:
workflow_dispatch:

jobs:
trivy:
Expand Down
29 changes: 5 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ jobs:
#----------------------------------------------
# check formatting
#----------------------------------------------
- name: Code formatting with black
run: |
# ran only on certain files for now
# add here when checked
poetry run black schematic tests schematic_api --check
- uses: pre-commit/action@v3.0.1

#----------------------------------------------
# type checking/enforcement
Expand Down Expand Up @@ -121,37 +117,26 @@ jobs:
SYNAPSE_ACCESS_TOKEN: ${{ secrets.SYNAPSE_ACCESS_TOKEN }}
SERVICE_ACCOUNT_CREDS: ${{ secrets.SERVICE_ACCOUNT_CREDS }}
run: >
poetry run pytest --durations=0 --cov-append --cov-report=term --cov-report=html:htmlcov
poetry run pytest --durations=0 --cov-append --cov-report=term --cov-report=html:htmlcov
--cov-report=xml:coverage.xml --cov=schematic/ --reruns 4 -n 8 tests/unit;

#----------------------------------------------
# run integration test suite
#----------------------------------------------

- name: Retrieve telemetry access token from IDP
if: ${{ contains(fromJSON('["3.10"]'), matrix.python-version) }}
id: retrieve-telemetry-access-token
run: |
response=$(curl --request POST \
--url ${{ vars.TELEMETRY_AUTH_CLIENT_URL }} \
--header 'content-type: application/json' \
--data '{"client_id":"${{ vars.TELEMETRY_AUTH_CLIENT_ID }}","client_secret":"${{ secrets.TELEMETRY_AUTH_CLIENT_SECRET }}","audience":"${{ vars.TELEMETRY_AUTH_AUDIENCE }}","grant_type":"client_credentials"}')
access_token=$(echo $response | jq -r .access_token)
echo "::add-mask::$access_token"
echo "TELEMETRY_ACCESS_TOKEN=$access_token" >> "$GITHUB_OUTPUT"
- name: Run integration tests
if: ${{ contains(fromJSON('["3.10"]'), matrix.python-version) }}
env:
SYNAPSE_ACCESS_TOKEN: ${{ secrets.SYNAPSE_ACCESS_TOKEN }}
SERVICE_ACCOUNT_CREDS: ${{ secrets.SERVICE_ACCOUNT_CREDS }}
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=Bearer ${{ steps.retrieve-telemetry-access-token.outputs.TELEMETRY_ACCESS_TOKEN }}"
OTEL_EXPORTER_OTLP_HEADERS: "signoz-ingestion-key=${{ secrets.TELEMETRY_API_TOKEN }}"
DEPLOYMENT_ENVIRONMENT: ${{ vars.DEPLOYMENT_ENVIRONMENT }}
OTEL_EXPORTER_OTLP_ENDPOINT: ${{ vars.OTEL_EXPORTER_OTLP_ENDPOINT }}
TRACING_EXPORT_FORMAT: ${{ vars.TRACING_EXPORT_FORMAT }}
LOGGING_EXPORT_FORMAT: ${{ vars.LOGGING_EXPORT_FORMAT }}
TRACING_SERVICE_NAME: ${{ vars.TRACING_SERVICE_NAME }}
LOGGING_SERVICE_NAME: ${{ vars.LOGGING_SERVICE_NAME }}
SERVICE_INSTANCE_ID: ${{ github.head_ref || github.ref_name }}
SERVICE_INSTANCE_ID: ${{ github.head_ref || github.ref_name }}
run: >
poetry run pytest --durations=0 --cov-append --cov-report=term --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov=schematic/
-m "not (rule_benchmark or single_process_execution)" --reruns 4 -n 8 --ignore=tests/unit
Expand Down Expand Up @@ -213,12 +198,8 @@ jobs:
uses: andstor/file-existence-action@v3
with:
files: "coverage.xml"
# This is a workaround described in https://community.sonarsource.com/t/sonar-on-github-actions-with-python-coverage-source-issue/36057
- name: Override Coverage Source Path for Sonar
if: steps.check_coverage_xml.outputs.files_exists == 'true'
run: sed -i "s/<source>\/home\/runner\/work\/schematic\/schematic\/schematic<\/source>/<source>\/github\/workspace\/schematic<\/source>/g" coverage.xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
uses: SonarSource/sonarqube-scan-action@v4.1.0
if: ${{ always() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,4 @@ manifests/*
https:*

# schematic config file
config.yml
config.yml
Loading
Loading