Skip to content

Commit 2ead4ae

Browse files
stephentoubCopilot
andcommitted
Fix Java and Python CI failures
Update Java test constructors for regenerated schema records and apply Python ruff formatting. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ec86bbf commit 2ead4ae

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

java/src/test/java/com/github/copilot/SessionEventHandlingTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void testHandlerReceivesCorrectEventData() {
180180

181181
SessionStartEvent startEvent = createSessionStartEvent();
182182
startEvent.setData(new SessionStartEvent.SessionStartEventData("my-session-123", null, null, null, null, null,
183-
null, null, null, null, null, null, null));
183+
null, null, null, null, null, null, null, null));
184184
dispatchEvent(startEvent);
185185

186186
AssistantMessageEvent msgEvent = createAssistantMessageEvent("Test content");
@@ -857,7 +857,7 @@ private SessionStartEvent createSessionStartEvent() {
857857
private SessionStartEvent createSessionStartEvent(String sessionId) {
858858
var event = new SessionStartEvent();
859859
var data = new SessionStartEvent.SessionStartEventData(sessionId, null, null, null, null, null, null, null,
860-
null, null, null, null, null);
860+
null, null, null, null, null, null);
861861
event.setData(data);
862862
return event;
863863
}

java/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcRecordsCoverageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ void modelsListResult_nested() {
803803
var limits = new ModelCapabilitiesLimits(100000L, 8192L, 128000L, null);
804804
var capabilities = new ModelCapabilities(supports, limits);
805805
var policy = new ModelPolicy(ModelPolicyState.ENABLED, null);
806-
var billing = new ModelBilling(1.0, null);
806+
var billing = new ModelBilling(1.0, null, null);
807807
var modelItem = new Model("gpt-5", "GPT-5", capabilities, policy, billing, null, null, null, null);
808808
var result = new ModelsListResult(List.of(modelItem));
809809

python/e2e/test_rpc_server_plugins_e2e.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ async def _dispose_isolated(client: CopilotClient, home: Path, fixture_dir: Path
113113

114114

115115
class TestRpcServerPlugins:
116-
async def test_should_install_and_list_plugin_from_local_marketplace(
117-
self, ctx: E2ETestContext
118-
):
116+
async def test_should_install_and_list_plugin_from_local_marketplace(self, ctx: E2ETestContext):
119117
marketplace_dir = _create_local_marketplace_fixture(ctx)
120118
client, home = await _create_isolated_client(ctx)
121119
try:

0 commit comments

Comments
 (0)