-
Notifications
You must be signed in to change notification settings - Fork 297
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
Development
: Add deployment info and best practices to playwright docs
#9807
Development
: Add deployment info and best practices to playwright docs
#9807
Conversation
WalkthroughThe pull request expands the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 1
🧹 Outside diff range and nitpick comments (5)
docs/dev/playwright.rst (5)
13-14
: Consider adding information about future plansWhile the current setup's limitations are well explained, it would be helpful to include information about any planned improvements or timeline for implementing the ideal Kubernetes setup.
143-144
: Fix typo and clarify the recommendationThere's a typo in the word "system's" and the sentence structure could be improved.
-This understanding guides determining what needs testing and what defines a successful test. -The best way to understand is to consolidate the original system`s developer or a person actively working on this -component. +This understanding guides determining what needs testing and what defines a successful test. +The best way to gain this understanding is to consult with the original system's developer or a person actively working on this +component.
186-187
: Clarify the "Similar Test Setups" sectionThe example provided about HTTP response checking is too specific and doesn't fully illustrate the concept of similar test setups.
Consider expanding this section with:
- A broader explanation of what constitutes a test setup
- Multiple examples of standardized approaches
- Guidelines for maintaining consistency across different test suites
191-192
: Fix typo in the failing tests sectionThere's a typo in the word "fix".
-and fx the issue, or update the test if the requirements have changed. +and fix the issue, or update the test if the requirements have changed.
329-334
: Enhance security documentationWhile the security-related configuration is mentioned, consider adding:
- Best practices for managing sensitive environment variables
- Regular security audit procedures
- Access control policies for the Bamboo plan variables
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
⛔ Files ignored due to path filters (8)
docs/dev/cypress/cypress-open-screenshot.png
is excluded by!**/*.png
,!**/*.png
docs/dev/cypress/cypress_bamboo_deployment_diagram.svg
is excluded by!**/*.svg
,!**/*.svg
docs/dev/cypress/cypress_test_environment_deployment_diagram.svg
is excluded by!**/*.svg
,!**/*.svg
docs/dev/cypress/sorry-cypress-dashboard.png
is excluded by!**/*.png
,!**/*.png
docs/dev/cypress/sorry-cypress-run.png
is excluded by!**/*.png
,!**/*.png
docs/dev/cypress/sorry-cypress-runs.png
is excluded by!**/*.png
,!**/*.png
docs/dev/cypress/sorry-cypress-test.png
is excluded by!**/*.png
,!**/*.png
docs/dev/playwright/playwright_bamboo_deployment_diagram.svg
is excluded by!**/*.svg
,!**/*.svg
📒 Files selected for processing (1)
docs/dev/playwright.rst
(3 hunks)
🔇 Additional comments (1)
docs/dev/playwright.rst (1)
378-379
: Verify the Bamboo build plan links
Let's verify that the referenced Bamboo build plan links are accessible and correct.
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.
@HawKhiem yes you can run them locally :) Admin credentials are the ones corresponding to the local instance of Artemis running on your machine (which is required for running the tests). In default Artemis local config, credentials match the ones in the Playwright env file. |
Thank you! |
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.
the documentation LGTM, it is detailed enough such that I did not get lost at any step.
Feature
: Add deployment info and best practices to Playwright docsDevelopment
: Add deployment info and best practices to playwright docs
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.
please update the outdated figure
1a4edc0
There hasn't been any activity on this pull request recently. Therefore, this pull request has been automatically marked as stale and will be closed if no further activity occurs within seven days. Thank you for your contributions. |
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (4)
docs/dev/playwright.rst (4)
4-20
: Consider enhancing the background section with additional contextWhile the section effectively explains the basic setup, consider adding:
- A brief explanation of how Artemis interacts with external services (Gitlab, Jenkins)
- The implications and limitations of using the prelive system
- Future plans or roadmap for moving to a Kubernetes setup
This would help readers better understand the current architecture and its evolution.
157-219
: Enhance best practices with concrete examplesThe best practices section is well-structured but could be more actionable. Consider:
- Adding code examples for each best practice
- Including links to example test files in the codebase
- Cross-referencing related sections in the Playwright documentation
This would help developers better understand and implement these practices.
348-355
: Review security practices for handling sensitive informationWhile using environment variables for security-sensitive information is common, consider:
- Documenting the specific environment variables required
- Adding information about secure variable management in Bamboo
- Including validation checks for required environment variables
This would help ensure secure deployment and easier troubleshooting.
389-394
: Document firewall configuration detailsThe firewall rule for Bamboo webhook access should be documented in more detail:
- Specific IP ranges or security groups used
- Required ports and protocols
- Monitoring and audit procedures
This information is crucial for security maintenance and troubleshooting.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
docs/dev/playwright/playwright_bamboo_deployment_diagram.svg
is excluded by!**/*.svg
,!**/*.svg
📒 Files selected for processing (1)
docs/dev/playwright.rst
(3 hunks)
🔇 Additional comments (1)
docs/dev/playwright.rst (1)
412-422
: 🛠️ Refactor suggestion
Maintenance section needs more detailed procedures
The previous review comment about adding specific maintenance procedures is still valid and hasn't been addressed.
Additionally, consider adding:
- Links to the Docker image versioning policy
- Instructions for testing new Playwright image versions
- Rollback procedures for failed updates
This would ensure consistent maintenance practices.
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.
I think the hardware software mapping diagram is a bit misleading since it contains an Artemis client container which isn't really the case. And I think we think should omit the internal components of Artemis since they aren't really relevant here.
…rtemis deployment
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.
Actionable comments posted: 0
🧹 Nitpick comments (5)
docs/dev/playwright.rst (5)
4-20
: Consider adding a note about environment differencesThe background section effectively explains the deployment strategy. Consider adding a brief note distinguishing between local development setup and CI environment requirements to help developers understand the differences in configuration needs.
157-219
: Enhance best practices with code examplesThe best practices section provides excellent guidance. Consider enhancing it by adding:
- Code snippets demonstrating each practice
- Examples of common pitfalls to avoid
- Links to example test files in the codebase that follow these practices
This would make the guidelines more actionable for developers.
Line range hint
221-314
: Add section on debugging failed testsThe technical best practices section is comprehensive but could benefit from a subsection on debugging strategies, including:
- How to use Playwright's debug mode
- Common failure patterns and their solutions
- Using Playwright's trace viewer
- Tips for investigating flaky tests
315-401
: Add troubleshooting guide for deploymentThe deployment section thoroughly explains the setup but would benefit from a troubleshooting guide covering:
- Common deployment issues and their solutions
- How to verify each container's health
- Logs to check when problems occur
- Steps to restart failed components
Line range hint
1-412
: Minor formatting improvements neededConsider these formatting enhancements:
- Use consistent quotation marks (currently mixing ` and ")
- Add line breaks before warning boxes for better readability
- Format URLs as proper RST links instead of inline URLs
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
docs/dev/playwright/playwright_bamboo_deployment_diagram.svg
is excluded by!**/*.svg
,!**/*.svg
📒 Files selected for processing (1)
docs/dev/playwright.rst
(3 hunks)
🔇 Additional comments (1)
docs/dev/playwright.rst (1)
402-412
: Add specific maintenance procedures
The maintenance section should include step-by-step instructions for updating the Playwright Docker image, version compatibility matrix, and rollback procedures.
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.
lgtm. thnx for the changes
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.
LGTM 👍
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.
LGTM, reapprove
Checklist
General
Motivation and Context
We have removed Cypress docs, but Playwright docs do not contain some of the information we used to have. This includes Playwright Bamboo build plan's deployment information, general best practices of E2E testing and some other helpful information.
Description
This PR adds Bamboo deployment information of Playwright e2e testing build plan and removes unused assets related to Cypress docs.
Steps for Testing
Check out the updated documentation.
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Summary by CodeRabbit
Summary by CodeRabbit
playwright.rst
document with detailed background information on the Playwright test suite and its integration with the Artemis system.