[ 
https://issues.apache.org/jira/browse/BEAM-5071?focusedWorklogId=134715&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-134715
 ]

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_r210098687
 
 

 ##########
 File path: 
.test-infra/jenkins/dependency_check/dependency_check_report_generator.py
 ##########
 @@ -105,18 +108,26 @@ def prioritize_dependencies(deps, sdk_type):
     try:
       logging.info("\n\nStart processing: " + dep)
       dep_name, curr_ver, latest_ver = extract_single_dep(dep)
-      curr_release_date, latest_release_date = 
query_dependency_release_dates(bigquery_client,
-                                                                              
dep_name,
-                                                                              
curr_ver,
-                                                                              
latest_ver)
+      curr_release_date = None
+      latest_release_date = None
       group_id = None
+
       if sdk_type == 'Java':
         # extract the groupid and artifactid
         group_id, artifact_id = dep_name.split(":")
         dep_details_url = "{0}g:\"{1}\" AND 
a:\"{2}\"".format(_MAVEN_CENTRAL_URL, group_id, artifact_id)
+        curr_release_date = find_release_time_from_maven_central(group_id, 
artifact_id, curr_ver)
+        latest_release_date = find_release_time_from_maven_central(group_id, 
artifact_id, latest_ver)
       else:
         dep_details_url = _PYPI_URL + dep_name
-
+        curr_release_date = 
find_release_time_from_python_compatibility_checking_service(dep_name, curr_ver)
+        latest_release_date = 
find_release_time_from_python_compatibility_checking_service(dep_name, curr_ver)
+
+      if not curr_release_date or not latest_release_date:
+        curr_release_date, latest_release_date = 
query_dependency_release_dates_from_bigquery(bigquery_client,
 
 Review comment:
   So we are going to keep BQ around as a backup ?

----------------------------------------------------------------
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: 134715)
    Time Spent: 2h 10m  (was: 2h)

> 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 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to