Skip to content

Commit 75e5832

Browse files
omrozowicz-splunkartemrysdependabot[bot]
authored
chore: small refactor of the pipeline, change dependabot target branch (#416)
* chore: update dependabot to send PRs to develop (#412) * ci: small updates to the pipeline (#414) * ci: update the script that installs poetry in CI The old way is deprecated and this is the preferred way to install poetry. * ci: use reusable workflow for agreements and release-notes * build(pip): (deps): bump requests-cache from 0.9.1 to 0.9.3 (#415) Bumps [requests-cache](https://github.com/reclosedev/requests-cache) from 0.9.1 to 0.9.3. - [Release notes](https://github.com/reclosedev/requests-cache/releases) - [Changelog](https://github.com/reclosedev/requests-cache/blob/master/HISTORY.md) - [Commits](requests-cache/requests-cache@v0.9.1...v0.9.3) [run-int-tests] --- updated-dependencies: - dependency-name: requests-cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * refactor: small changes after running flake8 (#413) Co-authored-by: Artem Rys <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent df8fd3d commit 75e5832

File tree

17 files changed

+108
-151
lines changed

17 files changed

+108
-151
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5-
61
version: 2
72
updates:
8-
# Maintain dependencies for GitHub Actions
93
- package-ecosystem: "github-actions"
104
commit-message:
115
prefix: "ci(actions): "
126
directory: "/.github/workflows"
13-
target-branch: "main"
7+
target-branch: "develop"
148
schedule:
159
interval: "daily"
1610
- package-ecosystem: "pip"
1711
directory: ""
18-
target-branch: "main"
12+
target-branch: "develop"
1913
schedule:
2014
interval: "daily"
2115
commit-message:

.github/workflows/agreements.yaml

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -6,53 +6,8 @@ on:
66
types: [opened, closed, synchronize]
77

88
jobs:
9-
ContributorLicenseAgreement:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: "CLA Assistant"
13-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
14-
# Alpha Release
15-
uses: cla-assistant/[email protected]
16-
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
# the below token should have repo scope and must be manually added by you in the repository's secret
19-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}
20-
with:
21-
path-to-signatures: "signatures/version1/cla.json"
22-
path-to-document: "https://github.com/splunk/cla-agreement/blob/main/CLA.md" # e.g. a CLA or a DCO document
23-
# branch should not be protected
24-
branch: "main"
25-
allowlist: dependabot,semantic-release-bot
26-
#below are the optional inputs - If the optional inputs are not given, then default values will be taken
27-
remote-organization-name: splunk
28-
remote-repository-name: cla-agreement
29-
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
30-
#signed-commit-messag e: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
31-
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
32-
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
33-
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
34-
CodeOfConduct:
35-
runs-on: ubuntu-latest
36-
steps:
37-
- name: "COC Assistant"
38-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the Code of Conduct and I hereby accept the Terms') || github.event_name == 'pull_request_target'
39-
# Alpha Release
40-
uses: cla-assistant/[email protected]
41-
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43-
# the below token should have repo scope and must be manually added by you in the repository's secret
44-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}
45-
with:
46-
path-to-signatures: "signatures/version1/coc.json"
47-
path-to-document: "https://github.com/splunk/cla-agreement/blob/main/CODE_OF_CONDUCT.md" # e.g. a COC or a DCO document
48-
# branch should not be protected
49-
branch: "main"
50-
allowlist: dependabot,semantic-release-bot
51-
#below are the optional inputs - If the optional inputs are not given, then default values will be taken
52-
remote-organization-name: splunk
53-
remote-repository-name: cla-agreement
54-
custom-pr-sign-comment: "I have read the Code of Conduct and I hereby accept the Terms"
55-
create-file-commit-message: "For example: Creating file for storing COC Signatures"
56-
signed-commit-message: "$contributorName has signed the COC in #$pullRequestNo"
57-
custom-notsigned-prcomment: "All contributors have NOT signed the COC Document"
58-
custom-allsigned-prcomment: "****CLA Assistant Lite bot**** All contributors have signed the COC ✍️ ✅"
9+
call-workflow-agreements:
10+
uses: splunk/addonfactory-github-workflows/.github/workflows/[email protected]
11+
secrets:
12+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}

.github/workflows/ci-main.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,11 @@ jobs:
5858
with:
5959
python-version: ${{ matrix.python-version }}
6060
- name: Install Poetry
61-
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
62-
- name: Install Code
6361
run: |
64-
# shellcheck disable=SC1090
65-
source "$HOME/.poetry/env"
62+
curl -sSL https://install.python-poetry.org | python3 -
6663
poetry install
6764
- name: Run Pytest with coverage
6865
run: |
69-
# shellcheck disable=SC1090
70-
source "$HOME/.poetry/env"
7166
poetry run pytest --cov=./splunk_connect_for_snmp --cov-report=xml --junitxml=test-results/junit.xml
7267
- name: Upload coverage to Codecov
7368
uses: codecov/codecov-action@v2

.github/workflows/release-notes.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,11 @@ name: Release-Notes-Preview
22

33
on:
44
pull_request:
5-
# branches: [main, develop]
65
issue_comment:
7-
types: [edited]
6+
types: [ edited ]
87

98
jobs:
10-
preview:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v2
14-
- run: |
15-
git fetch --prune --unshallow --tags
16-
- uses: snyk/[email protected]
17-
with:
18-
releaseBranch: main
19-
env:
20-
GITHUB_PR_USERNAME: ${{ github.actor }}
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
call-workflow-preview:
10+
uses: splunk/addonfactory-github-workflows/.github/workflows/[email protected]
11+
secrets:
12+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

integration_tests/README_WALK

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
git clone https://github.com/splunk/splunk-connect-for-snmp.git
22
cd splunk-connect-for-snmp
33
git checkout <target_branch>
4-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
5-
source "$HOME"/.poetry/env
4+
curl -sSL https://install.python-poetry.org | python -
65
poetry install
76
<create inventory.csv file>
87

integration_tests/automatic_setup.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ function define_python() {
3737
}
3838

3939
deploy_poetry() {
40-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | $PYTHON -
41-
source "$HOME"/.poetry/env
40+
curl -sSL https://install.python-poetry.org | $PYTHON -
4241
poetry install
4342
poetry add -D splunk-sdk
4443
poetry add -D splunklib

integration_tests/deploy_and_test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ stop_simulator() {
8787
}
8888

8989
deploy_poetry() {
90-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
91-
source "$HOME"/.poetry/env
90+
curl -sSL https://install.python-poetry.org | python -
9291
poetry install
9392
poetry add -D splunk-sdk
9493
poetry add -D splunklib

0 commit comments

Comments
 (0)