Skip to content

Add mqtt IT for json mode.#17090

Merged
CRZbulabula merged 1 commit into
apache:masterfrom
wenyanshi-123:addMqttIT
Jan 29, 2026
Merged

Add mqtt IT for json mode.#17090
CRZbulabula merged 1 commit into
apache:masterfrom
wenyanshi-123:addMqttIT

Conversation

@wenyanshi-123

Copy link
Copy Markdown
Contributor

Add mqtt IT for json mode.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds a single line to set the MQTT client ID in the integration test setup. However, there is a significant discrepancy between the PR description and the actual implementation.

Changes:

  • Sets a hardcoded client ID ("clientId01") for the MQTT connection in the test setup

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

mqtt.setPassword(PASSWORD);
mqtt.setConnectAttemptsMax(3);
mqtt.setReconnectDelay(10);
mqtt.setClientId("clientId01");

Copilot AI Jan 27, 2026

Copy link

Choose a reason for hiding this comment

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

This PR claims to "Add mqtt IT for json mode" but the test is configured to use the "line" payload formatter (FORMATTER = "line" on line 56), not JSON. The line formatter processes line protocol format data, while the json formatter would process JSON format data. Either the PR description is incorrect, or the test should be using FORMATTER = "json" to test JSON mode as described.

Copilot uses AI. Check for mistakes.

@CRZbulabula CRZbulabula left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@CRZbulabula CRZbulabula merged commit 498197b into apache:master Jan 29, 2026
28 checks passed
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.

3 participants