Skip to content

Conversation

@bytesizedroll
Copy link
Contributor

Fix flaky test in TestRegisterNode_Success_Plugin

Problem

The TestRegisterNode_Success_Plugin test was flaky due to non-deterministic map iteration order in Go. The test expected labels in a specific order, but Go's map iteration order is not guaranteed, causing intermittent failures in CI.

Solution

  • Sort extraLabels map keys alphabetically before iterating to ensure deterministic label ordering
  • Added sort import to register_node.go

@bytesizedroll bytesizedroll requested a review from a team as a code owner September 1, 2025 17:45
@changeset-bot
Copy link

changeset-bot bot commented Sep 1, 2025

🦋 Changeset detected

Latest commit: f16d7e0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
chainlink-deployments-framework Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link

github-actions bot commented Sep 1, 2025

👋 bytesizedroll, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@cl-sonarqube-production
Copy link

@bytesizedroll bytesizedroll added this pull request to the merge queue Sep 2, 2025
Merged via the queue into main with commit 63d8f65 Sep 2, 2025
14 checks passed
@bytesizedroll bytesizedroll deleted the CLD-583/flakey-test-register-node branch September 2, 2025 03:41
github-merge-queue bot pushed a commit that referenced this pull request Sep 2, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## chainlink-deployments-framework@0.39.0

### Minor Changes

-
[#357](#357)
[`8289afa`](8289afa)
Thanks [@jkongie](https://github.com/jkongie)! - Moves
`environment.Config` to `config.Config`

-
[#352](#352)
[`5088d9c`](5088d9c)
Thanks [@graham-chainlink](https://github.com/graham-chainlink)! - fix:
migrate Update Node from CLD

### Patch Changes

-
[#355](#355)
[`63d8f65`](63d8f65)
Thanks [@bytesizedroll](https://github.com/bytesizedroll)! - Fix flaky
test in TestRegisterNode_Success_Plugin

-
[#358](#358)
[`6ef6875`](6ef6875)
Thanks [@graham-chainlink](https://github.com/graham-chainlink)! -
Migrate LoadCatalogStore and LoadJDClient to engine

-
[#356](#356)
[`fd159c8`](fd159c8)
Thanks [@giogam](https://github.com/giogam)! - feat(environment):
removes getLegacyNetworkTypes

---------

Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
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.

2 participants