Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce PNC 2.0 Rest client #2

Merged
merged 74 commits into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
beeb7ea
Add comments to BuildFinder#findBuildsPnc
jbartece Apr 3, 2020
8907dce
Add PNC REST client dependency, use jboss snapshots repository
jbartece Apr 3, 2020
eac788b
Add PNC 2.0 REST client base implementation and integration tests
jbartece Apr 3, 2020
af40fd5
Reduce data in PncBuild to only important ones, switch to PNC 2.0 DTOs
jbartece Apr 3, 2020
3fdaaaa
Remove old Pnc model
jbartece Apr 3, 2020
c2314fd
Remove Old Pnc14 client
jbartece Apr 3, 2020
ad120ee
Switch CLI to use newer PncClient
jbartece Apr 3, 2020
610189a
Migrate PncUtils to work with PNC REST API 2.0
jbartece Apr 3, 2020
92d9274
Remove duplicated repository tag, which was added in the mean time
jbartece Apr 6, 2020
c88a5bf
Add new model entity EnhancedArtifact
jbartece Apr 6, 2020
0d50971
Smaller PncClient improvements
jbartece Apr 6, 2020
8393ba0
Migrate core logic of lookup of PNC builds BuildFinder
jbartece Apr 6, 2020
18be99c
Add code auto-formatter
jbartece Apr 6, 2020
d5ffd6d
Isolate PncBuildFinder class, create BuildFinderUtils for shared logic
jbartece Apr 6, 2020
c4e5249
Introduce PncClient interface
jbartece Apr 7, 2020
8800645
Initial implementation of CachingPncClient using HashMap
jbartece Apr 7, 2020
aa81403
Solve artifacts not found in PNC or not associated with any build
jbartece Apr 8, 2020
cb1a085
Switch to parallel execution for lookups in PNC
jbartece Apr 8, 2020
d46f0e4
Convert build zero to KojiBuild in PncBuildFinder
jbartece Apr 9, 2020
2f9bacd
Add some PncClient integrations tests; handle 404 responses from PncC…
jbartece Apr 9, 2020
eac84aa
Handle DistributionAnalyzer#filesInError
jbartece Apr 9, 2020
97fe519
Fix BuildFinder.call method not to rely on global builds field
jbartece Apr 9, 2020
f7a910e
Add unit tests for HashMapCachingClient
jbartece Apr 9, 2020
4c0d2c8
Add tests for PncBuildFinder and fix several bugs discovered by the n…
jbartece Apr 14, 2020
c254919
Set up maven-release plugin (#9)
janinko Apr 16, 2020
f018a65
Replace references to Koji Build Finder with Build Finder (#11)
dwalluck Apr 18, 2020
f9e41c7
Move BuildStatistics to core (#13)
dwalluck Apr 19, 2020
a26f439
Fix aggregate packaging (#14)
dwalluck Apr 19, 2020
7ad3c3c
Fix missing generic declaration
jbartece Apr 20, 2020
dede5a5
Configure formatter, but don't run it automatically
jbartece Apr 20, 2020
6ec0a6f
Move version of the formatter to avoid conflict
jbartece Apr 20, 2020
e4f2f58
Include missing jars to the CLI
jbartece Apr 21, 2020
355462b
Remove unused config options - pncConnectionTimeout, pncReadTimeout
jbartece Apr 21, 2020
34b3b1c
Add comments to BuildFinder#findBuildsPnc
jbartece Apr 3, 2020
7ec0a46
Add PNC REST client dependency, use jboss snapshots repository
jbartece Apr 3, 2020
a17192f
Add PNC 2.0 REST client base implementation and integration tests
jbartece Apr 3, 2020
35bbed1
Reduce data in PncBuild to only important ones, switch to PNC 2.0 DTOs
jbartece Apr 3, 2020
27f50c2
Remove old Pnc model
jbartece Apr 3, 2020
aa32d5c
Remove Old Pnc14 client
jbartece Apr 3, 2020
919c732
Switch CLI to use newer PncClient
jbartece Apr 3, 2020
1889ab3
Migrate PncUtils to work with PNC REST API 2.0
jbartece Apr 3, 2020
050e8aa
Remove duplicated repository tag, which was added in the mean time
jbartece Apr 6, 2020
57a0207
Add new model entity EnhancedArtifact
jbartece Apr 6, 2020
ebf6936
Smaller PncClient improvements
jbartece Apr 6, 2020
5dd7363
Migrate core logic of lookup of PNC builds BuildFinder
jbartece Apr 6, 2020
ed824ed
Add code auto-formatter
jbartece Apr 6, 2020
87f55b9
Isolate PncBuildFinder class, create BuildFinderUtils for shared logic
jbartece Apr 6, 2020
1a321e6
Introduce PncClient interface
jbartece Apr 7, 2020
68cf713
Initial implementation of CachingPncClient using HashMap
jbartece Apr 7, 2020
bd4ee74
Solve artifacts not found in PNC or not associated with any build
jbartece Apr 8, 2020
1999b8c
Switch to parallel execution for lookups in PNC
jbartece Apr 8, 2020
a3ecc88
Convert build zero to KojiBuild in PncBuildFinder
jbartece Apr 9, 2020
63a64fd
Add some PncClient integrations tests; handle 404 responses from PncC…
jbartece Apr 9, 2020
cfd8cb4
Handle DistributionAnalyzer#filesInError
jbartece Apr 9, 2020
4225f39
Fix BuildFinder.call method not to rely on global builds field
jbartece Apr 9, 2020
c51c452
Add unit tests for HashMapCachingClient
jbartece Apr 9, 2020
81f5fa4
Add tests for PncBuildFinder and fix several bugs discovered by the n…
jbartece Apr 14, 2020
0ce8216
Fix missing generic declaration
jbartece Apr 20, 2020
acf4166
Configure formatter, but don't run it automatically
jbartece Apr 20, 2020
047f75c
Move version of the formatter to avoid conflict
jbartece Apr 20, 2020
a465ed7
Include missing jars to the CLI
jbartece Apr 21, 2020
fb0dcca
Remove unused config options - pncConnectionTimeout, pncReadTimeout
jbartece Apr 21, 2020
f523f25
Merge branch 'pncClient' of github.com:jbartece/build-finder into pnc…
dwalluck Apr 21, 2020
f225cd9
Force jboss-logmanager to be included in shaded jar
dwalluck Apr 21, 2020
94d015b
Replace \ with /
dwalluck Apr 21, 2020
dffa16c
Sort in alphabetical order
dwalluck Apr 21, 2020
314a2e2
Remove newline after class declaration to match existing style
dwalluck Apr 21, 2020
8c190e8
Make type Map instead of HashMap
dwalluck Apr 21, 2020
c40c19e
Remove duplicate property/plugin definition introduced when merging
dwalluck Apr 21, 2020
ce4a689
Remove jboss-java-formatter.xml as it's grabbed remotely now
dwalluck Apr 22, 2020
0db5e8f
Suppress some logging
dwalluck Apr 22, 2020
29ca3c6
Remove unused pnc options
dwalluck Apr 22, 2020
d1bda1b
Remove some Koji references and update some links in Build Status
dwalluck Apr 22, 2020
d4d08b0
Remove references to old code formatting style files
dwalluck Apr 22, 2020
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
7 changes: 4 additions & 3 deletions cli/src/main/java/org/jboss/pnc/build/finder/cli/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
import org.jboss.pnc.build.finder.koji.KojiBuild;
import org.jboss.pnc.build.finder.koji.KojiClientSession;
import org.jboss.pnc.build.finder.koji.KojiJSONUtils;
import org.jboss.pnc.build.finder.pnc.client.PncClient14;
import org.jboss.pnc.build.finder.pnc.client.HashMapCachingPncClient;
import org.jboss.pnc.build.finder.pnc.client.PncClient;
import org.jboss.pnc.build.finder.report.BuildStatisticsReport;
import org.jboss.pnc.build.finder.report.GAVReport;
import org.jboss.pnc.build.finder.report.HTMLReport;
Expand Down Expand Up @@ -724,7 +725,7 @@ public Void call() throws Exception {
analyzer.setChecksums(checksums);

if (config.getPncURL() != null) {
PncClient14 pncclient = new PncClient14(config);
PncClient pncclient = new HashMapCachingPncClient(config);
finder = new BuildFinder(session, config, analyzer, cacheManager, pncclient);
} else {
finder = new BuildFinder(session, config, analyzer, cacheManager);
Expand Down Expand Up @@ -775,7 +776,7 @@ public Void call() throws Exception {
}

if (config.getPncURL() != null) {
PncClient14 pncclient = new PncClient14(config);
PncClient pncclient = new HashMapCachingPncClient(config);
finder = new BuildFinder(session, config, analyzer, cacheManager, pncclient);
} else {
finder = new BuildFinder(session, config, analyzer, cacheManager);
Expand Down
70 changes: 0 additions & 70 deletions codestyle-intellij.xml

This file was deleted.

4 changes: 4 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<name>Build Finder Core</name>

<dependencies>
<dependency>
<groupId>org.jboss.pnc</groupId>
<artifactId>rest-client</artifactId>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
Expand Down
Loading