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

feat: improve tx-exclusion-api performance and increase size of reaso… #327

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jonesho
Copy link
Contributor

@jonesho jonesho commented Nov 22, 2024

…n message column

This PR implements issue(s) #

Checklist

  • I wrote new tests for my new core changes.
  • I have successfully ran tests, style checker and build against my new changes locally.
  • I have informed the team of any breaking changes if there are any.

@jonesho jonesho self-assigned this Nov 22, 2024
@jonesho jonesho temporarily deployed to docker-build-and-e2e November 22, 2024 09:43 — with GitHub Actions Inactive
@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.28%. Comparing base (c4abdd9) to head (bf3cd5d).

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #327      +/-   ##
============================================
- Coverage     70.32%   70.28%   -0.04%     
  Complexity     1081     1081              
============================================
  Files           304      304              
  Lines         12413    12413              
  Branches       1179     1179              
============================================
- Hits           8729     8725       -4     
- Misses         3190     3193       +3     
- Partials        494      495       +1     
Flag Coverage Δ *Carryforward flag
hardhat 98.69% <ø> (ø) Carriedforward from 26550fe
kotlin 68.01% <ø> (-0.04%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

see 2 files with indirect coverage changes

---- 🚨 Try these New Features:

@jonesho jonesho marked this pull request as draft November 22, 2024 10:08
@jonesho jonesho marked this pull request as ready for review November 22, 2024 10:59
@jonesho jonesho force-pushed the 4019-improvement-on-tx-exclusion-api branch from b436242 to fee2c5b Compare November 22, 2024 11:35
@jonesho jonesho temporarily deployed to docker-build-and-e2e November 22, 2024 11:38 — with GitHub Actions Inactive
@jonesho
Copy link
Contributor Author

jonesho commented Nov 22, 2024

jpnovais
jpnovais previously approved these changes Nov 22, 2024
@jonesho jonesho temporarily deployed to docker-build-and-e2e November 22, 2024 17:00 — with GitHub Actions Inactive
@jonesho jonesho deployed to docker-build-and-e2e November 23, 2024 16:09 — with GitHub Actions Active
@@ -162,7 +162,7 @@ dockerCompose {
]
useComposeFiles = ["${project.rootDir.path}/docker/compose.yml"]
waitForHealthyStateTimeout = Duration.ofMinutes(3)
waitForTcpPorts = false
waitForTcpPorts = true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Setting this to true should avoid race condition issue when postgres container starts up and immediately followed by tx-exclusion-api integration test, given the healthy state check might not be good enough to ensure that the postgres container is ready to accept connection, especially when the tx-exclusion-api integration test only requires postgres container alone.

@@ -68,7 +68,7 @@ services:
prover-v3: # prover compatible with the traces from zkbesu
container_name: prover-v3
hostname: prover-v3
image: consensys/linea-prover:${PROVER_TAG:-bba9677}
image: consensys/linea-prover:${PROVER_TAG:-8544ea1}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

update the image tag of prover-v3 to cope with the recent change of prover config

@@ -26,8 +26,6 @@ abstract class CleanDbTestSuiteParallel {

private fun createDataSource(databaseName: String): DataSource {
return PGSimpleDataSource().also {
it.ssl = false
it.gssEncMode = "disable"
it.serverNames = arrayOf(host)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted the above changes as it didn't fix the tx-exclusion-api integration test random failure issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants