Skip to content

Commit

Permalink
small pipeline improvements (#7976)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrashed committed Mar 27, 2023
1 parent 1d81bc9 commit 9a00121
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
],
"enabledManagers": ["dockerfile"],
"docker": {
"pinDigests": true,
"ignorePaths": ["bin/lambda/Dockerfile.nodejs14x", "Dockerfile.rh"]
"pinDigests": true
},
"major": {
"enabled": false
Expand All @@ -23,5 +22,6 @@
"commitMessageTopic": "Docker base image ({{{depName}}}{{#if currentValue}}:{{{currentValue}}}{{/if}}) digest"
}
}
]
],
"reviewers": ["alexrashed"]
}
5 changes: 2 additions & 3 deletions .github/workflows/asf-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
# Store a (multiline-sanitized) list of changed services (compared to the master) in the GitHub Action output "changed-services"
echo "changed-services<<EOF" >> $GITHUB_OUTPUT
echo "$(git diff --name-only origin/master localstack/aws/api/ | sed 's#localstack/aws/api/#- #g' | sed 's#/__init__.py##g' | sed 's/_/-/g' | sed -z 's/\n/%0A/g' | sed -z 's/\r/%0D/g')" >> $GITHUB_OUTPUT
echo "$(git diff --name-only origin/master localstack/aws/api/ | sed 's#localstack/aws/api/#- #g' | sed 's#/__init__.py##g' | sed 's/_/-/g')" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Read PR markdown template
Expand All @@ -69,8 +69,7 @@ jobs:
- name: Add changed services to template
if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }}
id: markdown
# TODO upgrade after https://github.com/mad9000/actions-find-and-replace-string/pull/11 has been released
uses: mad9000/actions-find-and-replace-string@2
uses: mad9000/actions-find-and-replace-string@4
with:
source: ${{ steps.template.outputs.content }}
find: '{{ SERVICES }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
path-to-signatures: "etc/cla-signatures/signatures.json"
path-to-document: "https://github.com/localstack/localstack/blob/master/.github/CLA.md"
branch: "cla-signatures"
allowlist: "localstack-bot,renovate-bot,renovate"
allowlist: "localstack-bot,*[bot]"
lock-pullrequest-aftermerge: false
1 change: 0 additions & 1 deletion .github/workflows/pro-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
defaults:
run:
working-directory: localstack-ext
environment: localstack-ext-tests
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} # used for increased rate-limits when installing packages
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository # skip job if fork PR
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/test_firehose.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ def test_firehose_http(

class TestFirehoseIntegration:
@pytest.mark.skip_offline
@pytest.mark.skip("Flaky for now, need to investigate") # TODO: Investigate post V2
def test_kinesis_firehose_elasticsearch_s3_backup(
self,
firehose_client,
Expand Down Expand Up @@ -194,7 +193,8 @@ def check_domain_state():
result = es_client.describe_elasticsearch_domain(DomainName=domain_name)
return not result["DomainStatus"]["Processing"]

assert poll_condition(check_domain_state, 30, 1)
# if ElasticSearch is not yet installed, it might take some time to download the package before starting the domain
assert poll_condition(check_domain_state, 120, 1)

# put kinesis stream record
kinesis_record = {"target": "hello"}
Expand Down Expand Up @@ -288,7 +288,6 @@ def test_kinesis_firehose_incompatible_with_opensearch_2_3(

@pytest.mark.skip_offline
@pytest.mark.parametrize("opensearch_endpoint_strategy", ["domain", "path", "port"])
@pytest.mark.skip("Skipping if CI for now until we know more - post v2")
def test_kinesis_firehose_opensearch_s3_backup(
self,
firehose_client,
Expand Down Expand Up @@ -359,7 +358,8 @@ def check_domain_state():
]
return not result

assert poll_condition(check_domain_state, 30, 1)
# if OpenSearch is not yet installed, it might take some time to download the package before starting the domain
assert poll_condition(check_domain_state, 120, 1)

# put kinesis stream record
kinesis_record = {"target": "hello"}
Expand Down

0 comments on commit 9a00121

Please sign in to comment.