Skip to content

Commit

Permalink
Exclude new repo from pct test builder
Browse files Browse the repository at this point in the history
  • Loading branch information
aziemchawdhary-gs committed Nov 14, 2024
1 parent 8dd65df commit de10a20
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.eclipse.collections.api.factory.Sets;
import org.eclipse.collections.api.list.MutableList;
import org.eclipse.collections.api.map.MutableMap;
import org.eclipse.collections.api.set.ImmutableSet;
import org.eclipse.collections.api.set.MutableSet;
import org.eclipse.collections.impl.utility.ArrayIterate;
import org.finos.legend.pure.m3.exception.PureAssertFailException;
Expand Down Expand Up @@ -56,6 +57,7 @@
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Objects;
import java.util.Set;

import static org.finos.legend.pure.m3.pct.shared.PCTTools.isPCTTest;
import static org.junit.Assert.fail;
Expand Down Expand Up @@ -189,7 +191,8 @@ public static CompiledExecutionSupport getClassLoaderExecutionSupport()

public static CompiledExecutionSupport getClassLoaderExecutionSupport(ClassLoader classLoader)
{
RichIterable<CodeRepository> codeRepos = CodeRepositoryProviderHelper.findCodeRepositories().select(r -> !r.getName().equals("test_generic_repository") && !r.getName().equals("other_test_generic_repository"));
ImmutableSet<String> testRepos = Sets.immutable.of("test_generic_repository", "other_test_generic_repository", "test_milestoning_repository");
RichIterable<CodeRepository> codeRepos = CodeRepositoryProviderHelper.findCodeRepositories().select(r -> !testRepos.contains(r.getName()));
return new CompiledExecutionSupport(
new JavaCompilerState(null, classLoader),
new CompiledProcessorSupport(classLoader, MetadataLazy.fromClassLoader(classLoader, codeRepos.collect(CodeRepository::getName)), Sets.mutable.empty()),
Expand Down

0 comments on commit de10a20

Please sign in to comment.