Chat Logs

  1. * julemand101 joined #java
  2. * svm_invictvs joined #java
  3. * hwpplayer1 joined #java
  4. * OmniRadix69891 joined #java
  5. * Inline joined #java
  6. * ptomli9 joined #java
  7. * michele joined #java
  8. * deadmarshal joined #java
  9. * New-Dawn-Owl joined #java
  10. * metalmaniac joined #java
  11. * stfstfm joined #java
  12. * node1 joined #java
  13. * Ragnor joined #java
  14. * stfstfm joined #java
  15. * PocketKiller joined #java
  16. * handicraftsman joined #java
  17. * inlineE joined #java
  18. * Afroboy joined #java
  19. * node1 joined #java
  20. * acidjnk joined #java
  21. * pebble joined #java
  22. * node1 joined #java
  23. * schan99 joined #java
  24. * ztevoz joined #java
  25. * Exa joined #java
  26. * jreicher joined #java
  27. * MikeBux joined #java
  28. * raj joined #java
  29. * Exagone313 joined #java
  30. * stfstfm joined #java
  31. * acidjnk joined #java
  32. * svm_invictvs joined #java
  33. * PocketKiller joined #java
  34. * AllxIO64 joined #java
  35. * vitaliy joined #java
  36. * nevet joined #java
  37. * CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
  38. * GreenResponse joined #java
  39. dreamrealhttps://bytecode.news/posts/2026/10/testcontainers-and-reuse
  40. javabotdreamreal's title: "Testcontainers and Reuse | ByteCode.News"
  41. * jreicher joined #java
  42. * stfstfm_ joined #java
  43. * stfstfm joined #java
  44. * johnjay joined #java
  45. * johnjay joined #java
  46. * johnjay joined #java
  47. dreamrealhttps://news.ycombinator.com/item?id=49977000 upvotes appreciated, I'm trying to get this to the front page of HN so I can see how the front end endures
  48. nevetTestcontainers and Reuse | Hacker News
  49. javabotdreamreal's title: "Testcontainers and Reuse | Hacker News"
  50. * sojuus3r joined #java
  51. dreamreal(I did not post this to HN)
  52. Paradreamreal: neat, i'm gonna steal that
  53. dreamrealPara: :)
  54. dreamrealIt's definitely nicer - my builds for nevet lost five literal minutes on deployments
  55. * jamezp joined #java
  56. * ferdna joined #java
  57. * iusr joined #java
  58. * New-Dawn-Owl joined #java
  59. * ramontjunior joined #java
  60. * Inline joined #java
  61. * JonathanD joined #java
  62. * nevet joined #java
  63. * CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
  64. * Inline joined #java
  65. deeboi've been kinda battling the opposite of that in spring boot, if you use jdbc:tc:postgresql as the spring boot jdbc url, context caching still reuses the same underlying container for new contexts
  66. deeboso all tests have to make sure they can run with possibly garbage data left by other tests not running transactionally (intentional or not)
  67. dreamrealHmm, I wonder how that's propagating: on my machine, every module was getting its own container and choking docker out
  68. dreamrealmoving to unique scoped *databases* cleared everything up
  69. deeboat this point i've forgotten what the issue was, each new context in the cache had its own hikaripool to the same db, but somehow new containers were not started
  70. dreamrealThat's the problem *I* had! New containers were taking too long to initialize
  71. dreamrealso now: one container, so it initializes ONCE, and new dbs can be created and destroyed instantly because connecting to postgres doesn't have to wait on docker
  72. * michele joined #java
  73. deebomaybe the container is created on Class.forName() or something so it's only done once per jvm, never looked into how jdbc testcontainers work
  74. ParaI have this in my personal project https://gist.github.com/esuomi/1a7a5b847f0b5943a63b35b91a226c1f
  75. nevetPostgreSQLExtension.java
  76. ParaFeel free to steal if there's anything worth stealing.
  77. dreamrealdeebo: if you don't explicitly turn on reuse, it starts a container for every JVM
  78. dreamrealbut turning on reuse isn't enough, you also need to differentiate schemas if they differ
  79. deeboyeah we don't fork tests from gradle and any multimodules are trivial, mostly for sharing domain classes etc so basically single jvm for tests
  80. dreamreal*nod*
  81. deeboyeah the driver has one container per url, i remember testing adding like ?cachebust=${time} or something and it made it work, but broke something else
  82. * stfstfm_ joined #java
  83. * Inline joined #java
  84. * stfstfm joined #java
  85. * CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
  86. * nevet joined #java
  87. * akaWolf joined #java
  88. * michele joined #java
  89. * magla joined #java
  90. * gareppa joined #java
  91. * New-Dawn-Owl joined #java
  92. * Fiji joined #java
  93. * m2 joined #java
  94. * schan99 joined #java
  95. * cheeser joined #java
  96. * ztevoz joined #java
  97. * metalmaniac joined #java
  98. * stfstfm_ joined #java
  99. * NewDawnOwl joined #java
  100. * magla joined #java
  101. * Fiji joined #java
  102. * APic joined #java
  103. * node1 joined #java
  104. * ramontjunior joined #java
  105. * svm_invictvs joined #java
  106. * stfstfm joined #java
  107. * stfstfm_ joined #java
  108. * schan99 joined #java
  109. * stfstfm joined #java
  110. * kathadris joined #java
  111. * New-Dawn-Owl joined #java
  112. * stfstfm_ joined #java
  113. * Fiji joined #java
  114. * New-Dawn-Owl joined #java
  115. * stfstfm joined #java
  116. * comrad joined #java
  117. * Ekho joined #java
  118. * kathadris joined #java
  119. * kusanagi joined #java
  120. * aduke2704 joined #java
  121. * Cyp_ joined #java
  122. * nts joined #java