Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
86d4d0a
Initial check-in.
lwasylow Mar 18, 2022
f1f6d71
Tidy up code to make sure we got distinct set of expanded tests.
lwasylow Mar 19, 2022
1454221
Adding extra fields.
lwasylow Mar 23, 2022
ce4df28
Stage 3. Fixing error calls.
lwasylow Mar 29, 2022
273962b
Fixing issue with a non visible tests.
lwasylow Mar 29, 2022
a753e66
Fixing ORA-600
lwasylow Mar 30, 2022
0d8d34d
Cleanup Phase1.
lwasylow Mar 30, 2022
95ddec1
Adding tests.
lwasylow Mar 31, 2022
83dbdaa
Updating documentation.
lwasylow Mar 31, 2022
52c0307
Addresing sonar issues
lwasylow Mar 31, 2022
8f8d257
Extra tests and cleanup of old code.
lwasylow Apr 1, 2022
12be123
Adding extra tests
lwasylow Apr 1, 2022
d5ee6ca
Updating SQL to expand paths and extract suites.
lwasylow Apr 1, 2022
2db8d63
Addressing issue with reconstruct_cache knocking off other levels.
lwasylow Apr 6, 2022
d3396fe
Update tests for random order
lwasylow Apr 7, 2022
02d41a6
Removing a hash function from api into utils package which is more su…
lwasylow Apr 7, 2022
274d80a
Fixing ordering
lwasylow Apr 7, 2022
3937737
Fixing a documentation
lwasylow Apr 7, 2022
9296f38
Fixing indent
lwasylow Apr 7, 2022
6ff7f38
Peer review changes
lwasylow Apr 12, 2022
ee7a98b
Moving a SQL to be more readable.
lwasylow Apr 12, 2022
a53cefa
Apply suggestions from code review
jgebal Apr 13, 2022
011970f
Apply suggestions from code review
jgebal Apr 13, 2022
71e07f9
Merge remote-tracking branch 'origin/develop' into feature/call_tests…
jgebal Apr 15, 2022
221c2de
Address issue of not recognizing a correct nested level of suitepath.
lwasylow Apr 16, 2022
870cfe4
Merge branch 'feature/call_tests_by_part_of_name' of https://github.c…
lwasylow Apr 16, 2022
51439d8
Update documentation
lwasylow Apr 16, 2022
0fc7ff6
Fixing issue where parition by only path caused a duplicate level 1 a…
lwasylow Apr 16, 2022
647b830
Fixed issue with suites getting duplicated when running tests across …
jgebal Apr 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/develop' into feature/call_tests…
…_by_part_of_name

# Conflicts:
#	source/core/ut_suite_manager.pkb
  • Loading branch information
jgebal committed Apr 15, 2022
commit 71e07f9ac948f4dd232d9eb7a91d0244668ec168
46 changes: 23 additions & 23 deletions source/core/ut_suite_manager.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ create or replace package body ut_suite_manager is
when sys.dbms_assert.invalid_schema_name then
if l_object like '%*%' or ut_metadata.package_exists_in_cur_schema(upper(l_object)) then
a_paths(i) := c_current_schema || '.' || a_paths(i);
l_schema := c_current_schema;
l_schema := c_current_schema;
else
raise;
end if;
Expand Down Expand Up @@ -279,7 +279,7 @@ create or replace package body ut_suite_manager is
pragma inline(get_logical_suite, 'YES');
a_suites(a_suites.last) := get_logical_suite(l_rows, l_idx, l_level,l_prev_level, l_items_at_level );
end if;
if l_prev_level > l_level then
if l_prev_level > l_level then
l_items_at_level(l_prev_level).delete;
end if;
l_prev_level := l_level;
Expand All @@ -295,11 +295,11 @@ create or replace package body ut_suite_manager is
end loop;
close a_suite_data_cursor;
end reconstruct_from_cache;

function get_filtered_cursor(
a_unfiltered_rows in ut_suite_cache_rows,
a_skip_all_objects boolean := false
)
)
return ut_suite_cache_rows is
l_result ut_suite_cache_rows := ut_suite_cache_rows();
begin
Expand All @@ -321,22 +321,22 @@ create or replace package body ut_suite_manager is
and a.object_type = 'PACKAGE'
)
or c.self_type = 'UT_LOGICAL_SUITE'));
end if;
end if;
return l_result;
end;

procedure reconcile_paths_and_suites(
a_schema_paths ut_path_items,
a_filtered_rows ut_suite_cache_rows
) is
begin
begin
for i in ( select /*+ no_parallel */ sp.schema_name,sp.object_name,sp.procedure_name,
sp.suite_path,sc.path
from table(a_schema_paths) sp left outer join
table(a_filtered_rows) sc on
(( upper(sp.schema_name) = upper(sc.object_owner) and upper(sp.object_name) = upper(sc.object_name)
table(a_filtered_rows) sc on
(( upper(sp.schema_name) = upper(sc.object_owner) and upper(sp.object_name) = upper(sc.object_name)
and nvl(upper(sp.procedure_name),sc.name) = sc.name )
or (sc.path = sp.suite_path))
or (sc.path = sp.suite_path))
where sc.path is null)
loop
if i.suite_path is not null then
Expand All @@ -346,9 +346,9 @@ create or replace package body ut_suite_manager is
elsif i.object_name is not null then
raise_application_error(ut_utils.gc_suite_package_not_found,'Suite package '||i.schema_name||'.'||i.object_name|| ' does not exist');
end if;
end loop;
end loop;
end;

function get_cached_suite_data(
a_schema_paths ut_path_items,
a_random_seed positive,
Expand All @@ -363,14 +363,14 @@ create or replace package body ut_suite_manager is
a_schema_paths,
a_random_seed,
a_tags
);
);

l_filtered_rows := get_filtered_cursor(l_unfiltered_rows,a_skip_all_objects);
reconcile_paths_and_suites(a_schema_paths,l_filtered_rows);

ut_suite_cache_manager.sort_and_randomize_tests(l_filtered_rows,a_random_seed);

open l_result for
open l_result for
select * from table(l_filtered_rows);
return l_result;
end;
Expand Down Expand Up @@ -486,7 +486,7 @@ create or replace package body ut_suite_manager is
get_cached_suite_data(
l_schema_paths,
null,
null,
null,
a_skip_all_objects
)
);
Expand Down Expand Up @@ -528,7 +528,7 @@ create or replace package body ut_suite_manager is
l_schema varchar2(4000);
begin
ut_event_manager.trigger_event('configure_execution_by_path - start');
a_suites := ut_suite_items();
a_suites := ut_suite_items();
--resolve schema names from paths and group paths by schema name
l_schema_names := resolve_schema_names(l_paths);

Expand All @@ -538,17 +538,17 @@ create or replace package body ut_suite_manager is
refresh_cache(upper(l_schema_names(l_schema)));
l_schema := l_schema_names.next(l_schema);
end loop;

l_schema_paths := ut_suite_cache_manager.get_schema_paths(l_paths);

--We will get a single list of paths rather than loop by loop.
add_suites_for_paths(
l_schema_paths,
a_suites,
a_random_seed,
a_tags
);

--propagate rollback type to suite items after organizing suites into hierarchy
for i in 1 .. a_suites.count loop
a_suites(i).set_rollback_type( a_suites(i).get_rollback_type() );
Expand All @@ -564,11 +564,11 @@ create or replace package body ut_suite_manager is
l_all_suite_info ut_suite_items_info;
l_schema_names ut_varchar2_rows;
l_schema_paths ut_path_items;
l_paths ut_varchar2_list := a_paths;
l_paths ut_varchar2_list := a_paths;
l_schema varchar2(4000);
l_unfiltered_rows ut_suite_cache_rows;
l_filtered_rows ut_suite_cache_rows;

begin
l_schema_names := resolve_schema_names(l_paths);
--refresh cache
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.