Skip to content

CLOUDP-32590: Run all e2e2 tests on nightlies #2400

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

Merged
merged 3 commits into from
Jun 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ component_management:
paths:
- "!tests/"
- "!tools/"
statuses:
- type: project
threshold: -0.5 # Allow -0.5% regression in coverage
carryforward: false
target: auto
informational: true
- type: patch
- component_id: test-helpers
name: test-helpers
paths:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/tests-e2e2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ jobs:
E2E2_LABELS: ${{ env.e2e2_labels }}
USE_JSON: true
run: |
PR_LABELS=${{ env.PR_LABELS }}
# Nightly runs all tests, overriding PR labels as '["test/e2e2/*"]'
if [ "${{ github.ref }}" == "refs/heads/main" ];then
PR_LABELS='["test/e2e2/*"]'
echo "Nightly runs all tests"
fi
echo PR_LABELS=${{ env.PR_LABELS }}
echo E2E2_LABELS=${{ env.E2E2_LABELS }}
make compute-labels
Expand All @@ -94,8 +100,10 @@ jobs:
run: |
# Note the use of external single quotes to allow for double quotes at inline YAML array
matrix='["v1.30.10-kind"]'
# Nightly runs in both the newest and oldest supported Kubernetes versions
if [ "${{ github.ref }}" == "refs/heads/main" ];then
matrix='["v1.30.10-kind", "v1.32.2-kind"]'
echo "Nightly runs oldest and newest Kubernetes supported versions"
fi
echo "matrix=${matrix}" >> "${GITHUB_OUTPUT}"
cat "${GITHUB_OUTPUT}"
Expand Down
11 changes: 1 addition & 10 deletions test/e2e2/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,62 +160,53 @@ var _ = Describe("Atlas Third-Party Integrations Controller", Ordered, Label("in
})
},
Entry("Test[datadog]: Datadog integration with a parent project",
Label("datadog"),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/datadog.sample.yml")),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/datadog.update.yml")),
"atlas-datadog-integ",
),
Entry("Test[msteams]: Microsoft Teams integration with a parent project",
Label("msteams"),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/msteams.sample.yml")),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/msteams.update.yml")),
"atlas-msteams-integ",
),
Entry("Test[newrelic]: New Relic integration with a parent project",
Label("newrelic"),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/newrelic.sample.yml")),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/newrelic.update.yml")),
"atlas-newrelic-integ",
),
Entry("Test[opsgenie]: Ops Genie integration with a parent project",
Label("opsgenie"),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/opsgenie.sample.yml")),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/opsgenie.update.yml")),
"atlas-opsgenie-integ",
),
Entry("Test[pagerduty]: PagerDuty integration with a parent project",
Label("pagerduty"),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/pagerduty.sample.yml")),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/pagerduty.update.yml")),
"atlas-pagerduty-integ",
),
Entry("Test[prometheus]: Prometheus integration with a parent project",
Label("prometheus"),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/prometheus.sample.yml")),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/prometheus.update.yml")),
"atlas-prometheus-integ",
),
Entry("Test[slack]: Slack integration with a parent project",
Label("slack"),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/slack.sample.yml")),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/slack.update.yml")),
"atlas-slack-integ",
),
Entry("Test[victorops]: Victor Ops integration with a parent project",
Label("victorops"),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/victorops.sample.yml")),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/victorops.update.yml")),
"atlas-victorops-integ",
),
Entry("Test[webhook]: Webhooks integration with a parent project",
Label("webhook"),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/webhook.sample.yml")),
yml.MustParseObjects(yml.MustOpen(integrations, "integrations/webhook.update.yml")),
"atlas-webhook-integ",
),
)

It("Can handle isolated integrations", Label("isolated-integration"), func() {
It("Can handle isolated integrations", func() {
project := akov2.AtlasProject{
TypeMeta: v1.TypeMeta{Kind: "AtlasProject", APIVersion: akov2.GroupVersion.String()},
ObjectMeta: v1.ObjectMeta{Name: "atlas-project", Namespace: testNamespace.Name},
Expand Down
Loading