Skip to content

Commit 676cba7

Browse files
authored
Merge e82ac97 into 0702d45
2 parents 0702d45 + e82ac97 commit 676cba7

File tree

11 files changed

+338
-289
lines changed

11 files changed

+338
-289
lines changed

ydb/core/testlib/actors/test_runtime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ namespace NActors {
174174
}
175175

176176
if (NeedMonitoring && !SingleSysEnv) {
177-
ui16 port = GetPortManager().GetPort();
177+
ui16 port = MonitoringPortOffset ? MonitoringPortOffset + nodeIndex : GetPortManager().GetPort();
178178
node->Mon.Reset(new NActors::TSyncHttpMon({
179179
.Port = port,
180180
.Threads = 10,

ydb/core/testlib/test_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ namespace Tests {
227227

228228
NKikimr::SetupChannelProfiles(app);
229229

230-
Runtime->SetupMonitoring();
230+
Runtime->SetupMonitoring(Settings->MonitoringPortOffset);
231231
Runtime->SetLogBackend(Settings->LogBackend);
232232

233233
Runtime->AddAppDataInit([this](ui32 nodeIdx, NKikimr::TAppData& appData) {

ydb/core/testlib/test_client.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ namespace Tests {
106106
ui16 Port;
107107
ui16 GrpcPort = 0;
108108
int GrpcMaxMessageSize = 0; // 0 - default (4_MB), -1 - no limit
109+
ui16 MonitoringPortOffset = 0;
109110
NKikimrProto::TAuthConfig AuthConfig;
110111
NKikimrPQ::TPQConfig PQConfig;
111112
NKikimrPQ::TPQClusterDiscoveryConfig PQClusterDiscoveryConfig;
@@ -159,6 +160,7 @@ namespace Tests {
159160

160161
TServerSettings& SetGrpcPort(ui16 value) { GrpcPort = value; return *this; }
161162
TServerSettings& SetGrpcMaxMessageSize(int value) { GrpcMaxMessageSize = value; return *this; }
163+
TServerSettings& SetMonitoringPortOffset(ui16 value) { MonitoringPortOffset = value; return *this; }
162164
TServerSettings& SetSupportsRedirect(bool value) { SupportsRedirect = value; return *this; }
163165
TServerSettings& SetTracePath(const TString& value) { TracePath = value; return *this; }
164166
TServerSettings& SetDomain(ui32 value) { Domain = value; return *this; }

ydb/library/actors/testlib/test_runtime.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,8 +1594,9 @@ namespace NActors {
15941594
return node->DynamicCounters;
15951595
}
15961596

1597-
void TTestActorRuntimeBase::SetupMonitoring() {
1597+
void TTestActorRuntimeBase::SetupMonitoring(ui16 monitoringPortOffset) {
15981598
NeedMonitoring = true;
1599+
MonitoringPortOffset = monitoringPortOffset;
15991600
}
16001601

16011602
void TTestActorRuntimeBase::SendInternal(TAutoPtr<IEventHandle> ev, ui32 nodeIndex, bool viaActorSystem) {

ydb/library/actors/testlib/test_runtime.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ namespace NActors {
295295
void EnableScheduleForActor(const TActorId& actorId, bool allow = true);
296296
bool IsScheduleForActorEnabled(const TActorId& actorId) const;
297297
TIntrusivePtr<NMonitoring::TDynamicCounters> GetDynamicCounters(ui32 nodeIndex = 0);
298-
void SetupMonitoring();
298+
void SetupMonitoring(ui16 monitoringPortOffset = 0);
299299

300300
using TEventObserverCollection = std::list<std::function<void(TAutoPtr<IEventHandle>& event)>>;
301301
class TEventObserverHolder {
@@ -655,6 +655,7 @@ namespace NActors {
655655
TIntrusivePtr<IRandomProvider> DispatcherRandomProvider;
656656
TAutoPtr<TLogBackend> LogBackend;
657657
bool NeedMonitoring;
658+
ui16 MonitoringPortOffset = 0;
658659

659660
TIntrusivePtr<IRandomProvider> RandomProvider;
660661
TIntrusivePtr<ITimeProvider> TimeProvider;

ydb/tests/fq/yt/kqprun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def yql_exec(self, program=None, program_file=None, verbose=False, check_error=T
3737

3838
cmd += '--emulate-yt ' \
3939
'--exclude-linked-udfs ' \
40-
'--clear-execution query ' \
40+
'--execution-case query ' \
4141
'--app-config=%(config_file)s ' \
4242
'--script-query=%(program_file)s ' \
4343
'--scheme-query=%(scheme_file)s ' \

0 commit comments

Comments
 (0)