Skip to content

Conversation

@tutkat
Copy link
Contributor

@tutkat tutkat commented Jan 26, 2026

  • Update slack notification - add responsible person to mention on the channel for executed tests
  • Fixed tests

This pull request updates the Equinix Fabric v4 test runner workflow and several test classes to improve test reliability and clarify test responsibility. The main changes include triggering the workflow on pull requests, updating test user references, increasing wait times for provisioning, and adding responsibility information to workflow notifications.

CI/CD Workflow Improvements:

  • The .github/workflows/fabricv4_test_runner.yml workflow is now triggered on pull requests to the main branch, ensuring tests run automatically for new changes.
  • Added a responsibility line to workflow notifications to clarify who is accountable for test results.
  • Updated the syntax for passing secrets to Maven test commands to use single quotes for consistency and reliability.

Test Reliability and Maintenance:

  • Changed the test user reference from PANTHERS_FNV to PANTHERS_FCR in both CloudRoutersApiTest and NetworksApiTest to ensure tests use the correct user context. (equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/CloudRoutersApiTest.java [1] equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/NetworksApiTest.java [2]
  • Increased the sleep interval in RoutingProtocolsApiTest.waitForBGPTypeIsProvisioned from 3 seconds to 10 seconds to improve reliability when waiting for resource provisioning. (equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/RoutingProtocolsApiTest.java equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/RoutingProtocolsApiTest.javaL133-R133)

@tutkat tutkat requested review from a team as code owners January 26, 2026 12:23
@tutkat tutkat changed the title updated ci: updated Jan 26, 2026
@displague displague requested a review from Copilot January 26, 2026 16:43
Copy link

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

This PR enhances the Equinix Fabric v4 test runner workflow and improves test reliability by adding PR-triggered CI, clarifying test ownership through Slack notifications, updating test user references, and increasing provisioning wait times.

Changes:

  • CI workflow now triggers on pull requests to main branch and adds responsibility tracking to Slack notifications
  • Test user reference updated from PANTHERS_FNV to PANTHERS_FCR across multiple test classes
  • Increased BGP provisioning wait time from 3 to 10 seconds to improve test reliability

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/fabricv4_test_runner.yml Added PR trigger, updated secret syntax to single quotes, and added responsibility mention to Slack notifications
equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/CloudRoutersApiTest.java Changed test user from PANTHERS_FNV to PANTHERS_FCR
equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/NetworksApiTest.java Changed test user from PANTHERS_FNV to PANTHERS_FCR
equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/RoutingProtocolsApiTest.java Increased sleep interval from 3000ms to 10000ms for BGP provisioning wait

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
try {
Thread.sleep(3000);
Thread.sleep(10000);
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

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

Using Thread.sleep() for polling provisioning status is inefficient and can lead to unnecessarily long test execution times. Consider implementing an exponential backoff strategy or a more sophisticated polling mechanism with a configurable timeout and shorter intervals. This would allow the test to proceed as soon as the resource is provisioned rather than always waiting the full 10 seconds.

Copilot uses AI. Check for mistakes.
*Test Runs:* ${{ needs.test.outputs.tests_run }}
*Results:* ${{ steps.set-output-passed.outputs.total_passed }} Passed, ${{ steps.set-output-failed.outputs.total_failed }} Failed
*Triggered by:* <@${{ github.actor }}>
*Responsibility:* <@U04AM0XBJMA>
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

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

The hardcoded Slack user ID makes the workflow less maintainable. Consider using a workflow input variable or repository secret for the responsible person's Slack ID. This would make it easier to update the responsible person without modifying the workflow file directly.

Suggested change
*Responsibility:* <@U04AM0XBJMA>
*Responsibility:* <@${{ secrets.SLACK_RESPONSIBLE_USER_ID }}>

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

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

@tutkat I added this secret to the repo settings, so we can take on this change in a subsequent PR.

@tutkat tutkat merged commit 132e21d into main Jan 26, 2026
24 of 25 checks passed
@tutkat tutkat deleted the updateSlackNotification branch January 26, 2026 16:45
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