[PR #286] [MERGED] deduplicate codes in benchmark testing #425

Closed
opened 2026-02-16 01:15:56 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/286
Author: @Yeuoly
Created: 5/15/2025
Status: Merged
Merged: 5/15/2025
Merged by: @Yeuoly

Base: mainHead: reduce/run-once


📝 Commits (1)

  • 64bdd93 feat: add fake OpenAI server for local runtime benchmarking

📊 Changes

2 files changed (+38 additions, -103 deletions)

View changed files

📝 internal/core/plugin_manager/local_runtime_benchmark_fake_openai_test.go (+1 -1)
📝 internal/core/plugin_manager/local_runtime_benchmark_test.go (+37 -102)

📄 Description

  • Introduced a new test file to implement a fake OpenAI server that streams responses for benchmarking purposes.
  • Updated the existing benchmark test to utilize the new fake server, enhancing the testing environment for local plugin runtime invocations.
  • Refactored the package name in the benchmark test file for clarity and consistency.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/286 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 5/15/2025 **Status:** ✅ Merged **Merged:** 5/15/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `reduce/run-once` --- ### 📝 Commits (1) - [`64bdd93`](https://github.com/langgenius/dify-plugin-daemon/commit/64bdd93c536e25f1daf0e75be8635bfff4fe2784) feat: add fake OpenAI server for local runtime benchmarking ### 📊 Changes **2 files changed** (+38 additions, -103 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_manager/local_runtime_benchmark_fake_openai_test.go` (+1 -1) 📝 `internal/core/plugin_manager/local_runtime_benchmark_test.go` (+37 -102) </details> ### 📄 Description - Introduced a new test file to implement a fake OpenAI server that streams responses for benchmarking purposes. - Updated the existing benchmark test to utilize the new fake server, enhancing the testing environment for local plugin runtime invocations. - Refactored the package name in the benchmark test file for clarity and consistency. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:56 -05:00
yindo closed this issue 2026-02-16 01:15:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#425