mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #5226] [MERGED] test/e2e: replace RunProcesses client sleep with log-based proxy readiness detection #5190
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#5190
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/5226
Author: @fatedier
Created: 3/9/2026
Status: ✅ Merged
Merged: 3/9/2026
Merged by: @fatedier
Base:
dev← Head:new📝 Commits (2)
adcd2e6test/e2e: replace RunProcesses client sleep with log-based proxy readiness detection01413c3test/e2e: use shared deadline for proxy readiness and fix doc comment📊 Changes
2 files changed (+91 additions, -7 deletions)
View changed files
📝
test/e2e/framework/process.go(+42 -3)📝
test/e2e/pkg/process/process.go(+49 -4)📄 Description
Summary
time.Sleep(1500ms)inRunProcesseswith event-driven proxy registration detection by monitoring frpc log output for"start proxy success"messagesSafeBuffertoProcessstruct, enabling concurrent read/write of process output during executionProcess.WaitForOutput()method to poll output with timeout and early exit on process terminationwaitForClientProxyReady()that usesconfig.LoadClientConfig()to extract proxy names, then waits for each proxy's success logThis approach is universal across all proxy types (TCP/UDP/HTTP/HTTPS/STCP/SUDP/XTCP/TCPMUX) since every proxy logs the same success message on registration.
Test plan
go build ./...passesgolangci-lint runpassesmake e2epasses (225/225, 3 consecutive runs)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.