Skip to content

Conversation

@pavel-raykov
Copy link
Collaborator

@pavel-raykov pavel-raykov commented Dec 9, 2025

This PR effectively roll backs
#19089 and #20019
until we figure out the exact OOM culprit (except that it happens in AtomicCore allocation).

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@pavel-raykov pavel-raykov added the build-publish Build and Publish image to SDLC label Dec 9, 2025
@cl-sonarqube-production
Copy link

@pavel-raykov pavel-raykov marked this pull request as ready for review December 9, 2025 20:05
@pavel-raykov pavel-raykov requested review from a team as code owners December 9, 2025 20:05
Copilot AI review requested due to automatic review settings December 9, 2025 20:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR rolls back the AtomicCore logger implementation due to OOM issues during AtomicCore allocation. The changes remove the thread-safe core swapping functionality and revert to the simpler logger initialization approach.

Key Changes:

  • Removed AtomicCore implementation and associated cleanup mechanisms
  • Reverted logger initialization to use direct New() instead of NewWithCores()
  • Removed OTel core swapping logic in shell initialization

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
core/logger/zap.go Removed entire AtomicCore implementation including cleanup logic, WithCore type, and thread-safe core swapping; reverted interface{} type usage
core/logger/zap_test.go Removed runtime-based caller line testing and AtomicCore cleanup test; reverted to hardcoded line number assertion
core/logger/logger_test.go Removed AtomicCore swap test that verified core replacement functionality
core/cmd/app.go Simplified logger initialization to use New() instead of NewWithCores() and removed AtomicCore lifecycle management
core/cmd/shell.go Removed SetOtelCore field from Shell struct
core/cmd/shell_local.go Removed OTel core swapping logic for log streaming
core/logger/zap_disk_logging.go Reordered import statements (cosmetic change)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

lines := strings.Split(logs, "\n")

require.Contains(t, lines[0], fmt.Sprintf("logger/zap_test.go:%d\ttest message with caller", lineCall-1))
require.Contains(t, lines[0], "logger/zap_test.go:246")
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

Hardcoding the line number 246 creates a brittle test that will break if any code is added or removed above this line. Consider using a more robust approach, such as capturing the caller information at the point of logging or using a unique log message that can be matched without relying on line numbers.

Suggested change
require.Contains(t, lines[0], "logger/zap_test.go:246")
require.Contains(t, lines[0], "logger/zap_test.go")
require.Contains(t, lines[0], "test message with caller")

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ignored.

@patrickhuie19
Copy link
Contributor

Approved under the assumption we will check for side effects through a soaking process.

@pavel-raykov pavel-raykov added this pull request to the merge queue Dec 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 9, 2025
@pavel-raykov pavel-raykov added this pull request to the merge queue Dec 9, 2025
Merged via the queue into develop with commit 9cf3f4f Dec 9, 2025
240 checks passed
@pavel-raykov pavel-raykov deleted the del-atomiccore branch December 9, 2025 20:51
dangitsdavid pushed a commit that referenced this pull request Dec 9, 2025
* Minor.

* Fix lint.

* Update shell.
Bwest981 added a commit that referenced this pull request Dec 9, 2025
…beta1-changes

[BCF-3490] Remove AtomicCore logger  (#20571)
pavel-raykov added a commit that referenced this pull request Dec 11, 2025
pavel-raykov added a commit that referenced this pull request Dec 15, 2025
pavel-raykov added a commit that referenced this pull request Dec 17, 2025
pavel-raykov added a commit that referenced this pull request Dec 17, 2025
brunotm pushed a commit that referenced this pull request Dec 17, 2025
* Minor.

* Fix lint.

* Update shell.
pavel-raykov added a commit that referenced this pull request Dec 22, 2025
pavel-raykov added a commit that referenced this pull request Dec 22, 2025
brunotm pushed a commit that referenced this pull request Dec 22, 2025
Revert "[BCF-3490] Remove AtomicCore logger  (#20571)"

This reverts commit 9cf3f4f.

Minor.

Minor.

Minor.

Minor.

Minor.

Minor.
brunotm pushed a commit that referenced this pull request Dec 22, 2025
Revert "[BCF-3490] Remove AtomicCore logger  (#20571)"

This reverts commit 9cf3f4f.

Minor.

Minor.

Minor.

Minor.

Minor.

Minor.
brunotm pushed a commit that referenced this pull request Dec 23, 2025
Revert "[BCF-3490] Remove AtomicCore logger  (#20571)"

This reverts commit 9cf3f4f.

Minor.

Minor.

Minor.

Minor.

Minor.

Minor.
brunotm pushed a commit that referenced this pull request Dec 24, 2025
Revert "[BCF-3490] Remove AtomicCore logger  (#20571)"

This reverts commit 9cf3f4f.

Minor.

Minor.

Minor.

Minor.

Minor.

Minor.
github-merge-queue bot pushed a commit that referenced this pull request Dec 30, 2025
* Revert "[BCF-3490] Remove AtomicCore logger  (#20571)"

This reverts commit 9cf3f4f.

* Minor.

* Minor.

* Minor.

* Minor.

* Minor.

* Minor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-publish Build and Publish image to SDLC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants