Skip to content
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

v0.4.8: Logs API, chaos examples, debugger port fix #1609

Merged
merged 9 commits into from
Feb 3, 2025
Merged

Conversation

skudasov
Copy link
Collaborator

@skudasov skudasov commented Jan 28, 2025


Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.

Why

The updates across various files in the chainlink-testing-framework aim to improve testing capabilities, documentation, and the overall development experience. Specifically, the changes introduce a new feature for asserting container logs, update dependencies, and modify configurations to enhance testing stability and performance. Additionally, the introduction of chaos testing examples for Kubernetes and blockchain services demonstrates an effort to broaden the testing scope to include more complex scenarios.

What

  • .github/workflows/framework-golden-tests.yml
    • Temporarily commented out the TestSuiSmoke test due to Sui client healthcheck response issues.
  • .nancy-ignore
  • book/src/SUMMARY.md
    • Added a new section "Asserting Logs" to the documentation.
  • book/src/developing/asserting_logs.md
    • Created a new documentation file explaining how to assert container logs.
  • framework/.changeset/v0.4.8.md
    • Documented changes for not exposing 40k ports by default and removing the default log checking API.
  • framework/components/clnode/clnode.go
    • Modified port binding logic to conditionally expose debugger ports based on the CTF_CLNODE_DLV environment variable.
  • framework/components/simple_node_set/reload.go
    • Updated log saving method to the new API call.
  • framework/config.go
    • Removed outdated log checking and saving from the default Load function cleanup procedure.
  • framework/docker.go
    • Introduced SaveContainerLogs for saving Docker container logs and CheckCLNodeContainerErrors for checking Chainlink node container logs for errors.
  • framework/examples/myproject/chaos_blockchain_evm_test.go and framework/examples/myproject/chaos_k8s_test.go
    • Added new chaos testing examples for Kubernetes and blockchain services.
  • framework/examples/myproject/go.mod and framework/examples/myproject/go.sum
    • Updated module dependencies, including the framework version to v0.4.7 and added new dependencies such as github.com/chaos-mesh/chaos-mesh/api.
  • framework/examples/myproject/smoke_logs_test.go
    • Added a new test example demonstrating log assertion.
  • framework/logs.go
    • Refactored log error checking function to CheckCLNodeContainerErrors.

@skudasov skudasov changed the title havoc examples v0.4.8: Logs API, chaos examples, debugger port fix Feb 3, 2025
@skudasov skudasov marked this pull request as ready for review February 3, 2025 10:57
@skudasov skudasov requested review from sebawo and a team as code owners February 3, 2025 10:57
@cl-sonarqube-production
Copy link

@skudasov skudasov merged commit 508c148 into main Feb 3, 2025
57 of 58 checks passed
@skudasov skudasov deleted the havoc-examples branch February 3, 2025 11:02
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.

1 participant