Skip to content

Conversation

@harshit-bstack
Copy link
Contributor

No description provided.

- Added helpers.js for utility functions related to test orchestration.
- Created index.js to serve as the main entry point for the orchestration module.
- Introduced orchestrationUtils.js for managing orchestration settings and operations.
- Developed requestUtils.js for handling API requests to the BrowserStack orchestration API.
- Implemented testOrchestrationHandler.js to manage test orchestration operations.
- Added testOrchestrationIntegration.js for integrating orchestration with Nightwatch.
- Created testOrderingServer.js to handle communication with the BrowserStack server for test ordering.
- Updated requestHelper.js to improve error handling for API requests.

Logger.info(`Test orchestration recommended order change:`);
Logger.info(`Original: ${allTestFiles.join(', ')}`);
Logger.info(`Optimized: ${orderedFiles.join(', ')}`);

Choose a reason for hiding this comment

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

change this log lines to debug

/**
* Check and truncate VCS info if needed
*/
function checkAndTruncateVcsInfo(gitMetaData) {

Choose a reason for hiding this comment

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

why this function ?

/**
* Format git author information
*/
function gitAuthor(name, email) {

Choose a reason for hiding this comment

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

why this function ?

nodeIndex: parseInt(process.env.BROWSERSTACK_NODE_INDEX || '0', 10),
totalNodes: parseInt(process.env.BROWSERSTACK_TOTAL_NODE_COUNT || '1', 10),
hostInfo: getHostInfo(),
frameworkName: "nightwatch"

Choose a reason for hiding this comment

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

Remove this

} catch (e) {
// Enhanced error logging for better diagnosis
if (e.code === 'EPIPE') {
Logger.error(`❌ Network connection error (EPIPE) when calling orchestration API`);

Choose a reason for hiding this comment

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

have single error log

@garg3133 garg3133 merged commit 167612c into nightwatchjs:main Oct 28, 2025
6 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