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

ASF GitHub Bot logged work on BEAM-13008:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Oct/21 19:29
            Start Date: 20/Oct/21 19:29
    Worklog Time Spent: 10m 
      Work Description: damondouglas edited a comment on pull request #15761:
URL: https://github.com/apache/beam/pull/15761#issuecomment-947971569


   (cc: @pabloem )
   The following is the output running:
   
   ```
   ./gradlew playgroundPrecommit
   ```
   
   @ilya-kozyrev would you mind to fix the following and make a PR to 
https://github.com/damondouglas/beam/tree/BEAM-13008-playground-build-gradle.
    
   ```
   > Task :playground:backend:tidy FAILED
   go: finding module for package 
beam.apache.org/playground/backend/internal/environment
   beam.apache.org/playground/backend/cmd/server imports
           beam.apache.org/playground/backend/internal/environment: cannot find 
module providing package 
beam.apache.org/playground/backend/internal/environment: unrecognized import 
path "beam.apache.org/playground/backend/internal/environment": reading 
https://beam.apache.org/playground/backend/internal/environment?go-get=1: 404 
Not Found
   ```
   
   @ElessarST would you mind to fix the following and make a PR to 
https://github.com/damondouglas/beam/tree/BEAM-13008-playground-build-gradle.  
For the mockito related errors, I realize there is this [SOF 
post](https://stackoverflow.com/questions/67927401/should-we-source-control-the-mocks-dart-files-created-by-build-runner-for-mocki)
 about commiting/notcommiting mockito generated code.  I personally am in favor 
of commiting but I'll leave it to your judgement to figure out a way to make 
the `./gradlew playgroundPrecommit` pass either through another gradle task 
that would generate these dependencies.
   
   ```
   > Task :playground:frontend:analyze FAILED
   
     error - 
lib/modules/editor/repository/code_repository/code_client/grpc_code_client.dart:21:8
 - Target of URI doesn't exist: 
'package:playground/generated/playground.pbgrpc.dart'. Try creating the file 
referenced by the URI, or Try using a URI for a file that does exist. - 
uri_does_not_exist
     error - 
lib/modules/editor/repository/code_repository/code_client/grpc_code_client.dart:103:12
 - Case expressions must be constant. - non_constant_case_expression
     error - 
lib/modules/editor/repository/code_repository/code_client/grpc_code_client.dart:103:12
 - Case expressions must be constant. - non_constant_case_expression
     error - 
lib/modules/editor/repository/code_repository/code_client/grpc_code_client.dart:105:12
 - Case expressions must be constant. - non_constant_case_expression
     error - 
lib/modules/editor/repository/code_repository/code_client/grpc_code_client.dart:105:12
 - Case expressions must be constant. - non_constant_case_expression
     error - 
lib/modules/editor/repository/code_repository/code_client/grpc_code_client.dart:107:12
 - Case expressions must be constant. - non_constant_case_expression
     error - 
lib/modules/editor/repository/code_repository/code_client/grpc_code_client.dart:107:12
 - Case expressions must be constant. - non_constant_case_expression
     error - 
lib/modules/editor/repository/code_repository/code_client/grpc_code_client.dart:109:12
 - Case expressions must be constant. - non_constant_case_expression
     error - 
lib/modules/editor/repository/code_repository/code_client/grpc_code_client.dart:109:12
 - Case expressions must be constant. - non_constant_case_expression
     error - 
test/modules/editor/repository/code_repository/code_repository_test.dart:31:8 - 
Target of URI doesn't exist: 'code_repository_test.mocks.dart'. Try creating 
the file referenced by the URI, or Try using a URI for a file that does exist. 
- uri_does_not_exist
     error - 
test/modules/editor/repository/code_repository/code_repository_test.dart:54:22 
- The function 'MockCodeClient' isn't defined. Try importing the library that 
defines 'MockCodeClient', correcting the name to the name of an existing 
function, or defining a function named 'MockCodeClient'. - undefined_function
     error - 
test/modules/editor/repository/code_repository/code_repository_test.dart:87:22 
- The function 'MockCodeClient' isn't defined. Try importing the library that 
defines 'MockCodeClient', correcting the name to the name of an existing 
function, or defining a function named 'MockCodeClient'. - undefined_function
     error - 
test/modules/editor/repository/code_repository/code_repository_test.dart:121:22 
- The function 'MockCodeClient' isn't defined. Try importing the library that 
defines 'MockCodeClient', correcting the name to the name of an existing 
function, or defining a function named 'MockCodeClient'. - undefined_function
   
   13 issues found.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 667930)
    Time Spent: 1h 40m  (was: 1.5h)

> [Playground] Add build.gradle.kts
> ---------------------------------
>
>                 Key: BEAM-13008
>                 URL: https://issues.apache.org/jira/browse/BEAM-13008
>             Project: Beam
>          Issue Type: Sub-task
>          Components: beam-playground
>            Reporter: Damon Douglas
>            Assignee: Damon Douglas
>            Priority: P3
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> The purpose of this task is to establish a build.gradle.kts in the playground 
> directory and related sub-directories where needed.  This will enable the 
> playground project to be consistent with the rest of the Apache Beam project.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to