Skip to content

Conversation

@lantoli
Copy link
Member

@lantoli lantoli commented Oct 20, 2025

Description

Fix send_notification in Test Suite. Stream team is not being notified when Test Suite stream group fails.

Scheduled workflow doesn't set send_notification input so it will be enabled if not set or set to true.

I've run several Test Suite and Acceptance Tests executions to check this change. This issue was missed because scheduled workflows can't be tested in branches.

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR. A migration guide must be created or updated if the new feature will go in a major version.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR. A migration guide must be created or updated.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contributing guides
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • If changes include deprecations or removals I have added appropriate changelog entries.
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Further comments

@lantoli lantoli marked this pull request as ready for review October 20, 2025 09:43
@lantoli lantoli requested a review from a team as a code owner October 20, 2025 09:43
@Copilot Copilot AI review requested due to automatic review settings October 20, 2025 09:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Enable notifications by default for test and acceptance workflows when send_notification input is unset, fixing missing Stream team alerts on scheduled runs.

  • Replaces prior default false behavior with logic that treats any value not containing the substring "false" as true.
  • Updates slack notification job condition to align with new default semantics.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
.github/workflows/test-suite.yml Changes send_notification evaluation to invert a contains('false') check and adds explanatory comment.
.github/workflows/acceptance-tests.yml Aligns send_notification parameter with new contains-based logic.
.github/workflows/acceptance-tests-runner.yml Updates slack notification job conditional to use the new contains-based approach.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@EspenAlbert EspenAlbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY!

@lantoli lantoli merged commit 7064d1b into master Oct 20, 2025
66 checks passed
@lantoli lantoli deleted the fix_test_suite_notification branch October 20, 2025 10:00
lantoli added a commit that referenced this pull request Oct 22, 2025
* master:
  chore: Update SSDLC report for v2.1.0
  chore: Updates CHANGELOG.md header for v2.1.0 release
  chore: Update example links in registry docs for v2.1.0 release
  chore: Add support for typed nested objects in autogen (#3801)
  chore: Update examples and doc to use SA instead of PAK (#3804)
  chore: Updates CHANGELOG.md for #3793
  feat: Add workspace_name field in stream_processor resource and datasource (#3793)
  doc: Adds examples for advanced_cluster upgrade to v2.0 & improves documentation (#3767)
  chore: Fix tests using GetIndependentShardScalingMode (#3799)
  chore: Don't send notifications in PRs or release (#3797)
  test: Adds delay to avoid flakiness in TestAccProjectAPIKey_recreateWhenDeletedExternally (#3798)
  move CloseTokenSource call out of defer (#3796)
  chore: Revoke SA tokens after Terraform command finishes (#3794)
  chore: Fix send_notification in Test Suite (#3792)
  chore: Document Troubleshooting SA (#3791)
  build(deps): bump go.mongodb.org/atlas-sdk (#3776)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants