-
Notifications
You must be signed in to change notification settings - Fork 53
MLE-24763 Removing 'read' module #1000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This was supporting a use case that doesn't exist - having the custom deployer read in the admin username/password. And the custom deployer is in the process of being smoked. One less dependency!
|
Copyright Validation Results ⏭️ Skipped (Excluded) Files
✅ Valid Files
✅ All files have valid copyright headers! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Removes the 'read' module dependency that was used for prompting admin credentials, as the custom deployer that required this functionality is being deprecated. The prompting logic is replaced with hardcoded admin/admin credentials.
- Removed 'read' module dependency from package.json
- Simplified test-setup-prompt.js to use hardcoded admin/admin credentials instead of prompting
- Removed unnecessary sleep delays in Jenkins pipeline
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| package.json | Removed 'read' module dependency |
| etc/test-setup-prompt.js | Simplified to return hardcoded admin/admin credentials, removed all prompting logic |
| Jenkinsfile | Removed sleep delays that were waiting for setup completion |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| AdminPrompter.prototype.passwordCallback = adminPasswordCallback; | ||
| AdminPrompter.prototype.finish = adminFinish; | ||
| // Simplified version - no more prompting, just returns admin/admin | ||
| // TODO: Remove this file when ml-gradle migration is complete |
Copilot
AI
Oct 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The TODO comment suggests this file should be removed eventually. Consider adding a timeline or milestone reference to make this actionable, such as 'TODO: Remove this file in v2.0 when ml-gradle migration is complete'.
| // TODO: Remove this file when ml-gradle migration is complete | |
| // TODO: Remove this file in v2.0 when ml-gradle migration is complete |
|
|
||
| prompter.userPrompt(); | ||
| // Always use admin/admin - no prompting needed | ||
| console.log('Using default admin credentials (admin/admin)'); |
Copilot
AI
Oct 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logging credentials to the console, even default ones, could expose sensitive information in logs. Consider using a more generic message like 'Using default admin credentials' without displaying the actual values.
| console.log('Using default admin credentials (admin/admin)'); | |
| console.log('Using default admin credentials'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for the usual suspects, all tests pass, no problems.
This was supporting a use case that doesn't exist - having the custom deployer read in the admin username/password. And the custom deployer is in the process of being smoked. One less dependency!