Skip to content

Remove File Plugin #1521

Merged
aphralG merged 11 commits intorefactor-instance-watcherfrom
refactor-plugin
Feb 23, 2026
Merged

Remove File Plugin #1521
aphralG merged 11 commits intorefactor-instance-watcherfrom
refactor-plugin

Conversation

@aphralG
Copy link
Contributor

@aphralG aphralG commented Feb 12, 2026

Proposed changes

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@github-actions github-actions bot added the chore Pull requests for routine tasks label Feb 12, 2026
@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

❌ Patch coverage is 78.09187% with 62 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (refactor-instance-watcher@78377e6). Learn more about missing BASE report.

Files with missing lines Patch % Lines
internal/nginx/nginx_plugin.go 77.61% 57 Missing and 5 partials ⚠️
Additional details and impacted files
@@                     Coverage Diff                      @@
##             refactor-instance-watcher    #1521   +/-   ##
============================================================
  Coverage                             ?   84.85%           
============================================================
  Files                                ?      102           
  Lines                                ?    13466           
  Branches                             ?        0           
============================================================
  Hits                                 ?    11427           
  Misses                               ?     1523           
  Partials                             ?      516           
Files with missing lines Coverage Δ
internal/file/file_manager_service.go 74.48% <ø> (ø)
internal/plugin/plugin_manager.go 87.30% <100.00%> (ø)
internal/nginx/nginx_plugin.go 78.87% <77.61%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78377e6...bb8cc1e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aphralG aphralG changed the base branch from main to refactor-instance-watcher February 16, 2026 13:30
@aphralG aphralG marked this pull request as ready for review February 16, 2026 13:34
@aphralG aphralG requested a review from a team as a code owner February 16, 2026 13:34
}
n.nginxService.UpdateResource(ctx, resourceUpdate)
slog.DebugContext(ctx, "Nginx plugin received update resource message")
slog.DebugContext(ctx, "NginxPlugin plugin received update resource message")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
slog.DebugContext(ctx, "NginxPlugin plugin received update resource message")
slog.DebugContext(ctx, "NGINX plugin received update resource message")

Probably should update other similar debug messages

}
case bus.ConnectionCreatedTopic:
if logger.ServerType(ctxWithMetadata) == n.serverType.String() {
slog.DebugContext(ctxWithMetadata, "Resource plugin received connection created message")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
slog.DebugContext(ctxWithMetadata, "Resource plugin received connection created message")
slog.DebugContext(ctxWithMetadata, "NGINX plugin received connection created message")

n.handleConfigApplyRequest(ctxWithMetadata, msg)
}
default:
slog.DebugContext(ctx, "Unknown topic", "topic", msg.Topic)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
slog.DebugContext(ctx, "Unknown topic", "topic", msg.Topic)
slog.DebugContext(ctx, "NGINX plugin received message from unknown topic", "topic", msg.Topic)

func (n *Nginx) Reconfigure(ctx context.Context, agentConfig *config.Config) error {
slog.DebugContext(ctx, "Nginx plugin is reconfiguring to update agent configuration")
func (n *NginxPlugin) Reconfigure(ctx context.Context, agentConfig *config.Config) error {
slog.DebugContext(ctx, "NginxPlugin plugin is reconfiguring to update agent configuration")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
slog.DebugContext(ctx, "NginxPlugin plugin is reconfiguring to update agent configuration")
slog.DebugContext(ctx, "NGINX plugin is reconfiguring to update agent configuration")

"github.com/nginx/agent/v3/internal/config"
response "github.com/nginx/agent/v3/internal/datasource/proto"
"github.com/nginx/agent/v3/internal/file"
grpc2 "github.com/nginx/agent/v3/internal/grpc"
Copy link
Collaborator

Choose a reason for hiding this comment

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

do you have to name this import grpc2? I dont think it is conflicting with any other import.

n.reloadSuccessful(ctx, configContext, dpResponse)
}

func (n *NginxPlugin) failedConfigApply(ctx context.Context, correlationID, instanceID string, applyErr error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
func (n *NginxPlugin) failedConfigApply(ctx context.Context, correlationID, instanceID string, applyErr error) {
func (n *NginxPlugin) rollbackConfigApply(ctx context.Context, correlationID, instanceID string, applyErr error) {


n.agentConfigMutex.Lock()
defer n.agentConfigMutex.Unlock()
func (n *NginxPlugin) reloadSuccessful(ctx context.Context,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder would it be possible to combine the reloadSuccessful & completeConfigApply into one function?

@aphralG aphralG requested a review from dhurley February 16, 2026 16:36
@Akshay2191 Akshay2191 self-requested a review February 23, 2026 10:27
@aphralG aphralG merged commit ab6f133 into refactor-instance-watcher Feb 23, 2026
89 of 94 checks passed
@aphralG aphralG deleted the refactor-plugin branch February 23, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Pull requests for routine tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants