Merge pull request #64499 from s0undt3ch/hotfix/src-pkg-build-fixes

[3006.x] The fixture should be session scoped
This commit is contained in:
Pedro Algarvio 2023-06-17 23:27:48 +01:00 committed by GitHub
commit a2ff5680b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 10 deletions

View file

@ -2113,7 +2113,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Nightly Workflow build result for the `${{ github.ref_name }}` branch(attempt: ${{ github.run_attempt }})\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"text": "Nightly Workflow build result for the `${{ github.ref_name }}` branch(attempt: ${{ github.run_attempt }}): `${{ steps.get-workflow-info.outputs.conclusion }}`\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}
]

View file

@ -133,7 +133,7 @@ concurrency:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Nightly Workflow build result for the `${{ github.ref_name }}` branch(attempt: ${{ github.run_attempt }})\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"text": "Nightly Workflow build result for the `${{ github.ref_name }}` branch(attempt: ${{ github.run_attempt }}): `${{ steps.get-workflow-info.outputs.conclusion }}`\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}
]

View file

@ -44,7 +44,7 @@ def grains(sminion):
return sminion.opts["grains"].copy()
@pytest.fixture(scope="module", autouse=True)
@pytest.fixture(scope="session", autouse=True)
def _system_up_to_date(
grains,
shell,

View file

@ -3,13 +3,6 @@ import sys
import pytest
@pytest.fixture(scope="module")
def grains(salt_call_cli):
ret = salt_call_cli.run("--local", "grains.items")
assert ret.data, ret
return ret.data
@pytest.fixture(scope="module")
def pkg_name(salt_call_cli, grains):
if sys.platform.startswith("win"):