[
https://issues.apache.org/jira/browse/BEAM-5071?focusedWorklogId=134721&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-134721
]
ASF GitHub Bot logged work on BEAM-5071:
----------------------------------------
Author: ASF GitHub Bot
Created on: 14/Aug/18 20:55
Start Date: 14/Aug/18 20:55
Worklog Time Spent: 10m
Work Description: chamikaramj commented on a change in pull request
#6167: [BEAM-5071] Replace the bigquery with restful APIs to query dependenc…
URL: https://github.com/apache/beam/pull/6167#discussion_r210099554
##########
File path:
.test-infra/jenkins/dependency_check/dependency_check_report_generator.py
##########
@@ -176,7 +187,77 @@ def compare_dependency_versions(curr_ver, latest_ver):
return False
-def query_dependency_release_dates(bigquery_client, dep_name,
curr_ver_in_beam, latest_ver):
+def find_release_time_from_maven_central(group_id, artifact_id, version):
+ """
+ Find release dates from Maven Central REST API.
+ Args:
+ group_id:
+ artifact_id:
+ version:
+ Return:
+ release date
+ """
+ url =
"http://search.maven.org/solrsearch/select?q=g:{0}+AND+a:{1}+AND+v:{2}".format(
+ group_id,
+ artifact_id,
+ version)
+ logging.info('Finding release from maven central')
+ try:
+ response = request_session_with_retries().get(url)
+ if not response.ok:
+ logging.error("The response status code is not ok: " +
str(response.status_code))
Review comment:
Why both an error and a info log ? Drop error log and change info log to
error ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 134721)
Time Spent: 2h 40m (was: 2.5h)
> Using the restful API in Beam dependency check system, get rid of bigquery
> --------------------------------------------------------------------------
>
> Key: BEAM-5071
> URL: https://issues.apache.org/jira/browse/BEAM-5071
> Project: Beam
> Issue Type: Bug
> Components: dependencies
> Reporter: yifan zou
> Assignee: yifan zou
> Priority: Major
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)