[ https://issues.apache.org/jira/browse/BEAM-9056?focusedWorklogId=393876&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-393876 ]
ASF GitHub Bot logged work on BEAM-9056: ---------------------------------------- Author: ASF GitHub Bot Created on: 27/Feb/20 00:47 Start Date: 27/Feb/20 00:47 Worklog Time Spent: 10m Work Description: robertwb commented on pull request #10621: [BEAM-9056] Staging artifacts from environment URL: https://github.com/apache/beam/pull/10621#discussion_r384850669 ########## File path: runners/core-construction-java/src/main/java/org/apache/beam/runners/core/construction/SdkComponents.java ########## @@ -88,11 +88,13 @@ public static SdkComponents create(RunnerApi.Components components) { public static SdkComponents create(PipelineOptions options) { SdkComponents sdkComponents = new SdkComponents(RunnerApi.Components.getDefaultInstance(), ""); PortablePipelineOptions portablePipelineOptions = options.as(PortablePipelineOptions.class); - sdkComponents.defaultEnvironmentId = - sdkComponents.registerEnvironment( - Environments.createOrGetDefaultEnvironment( + sdkComponents.registerEnvironment( + Environments.createOrGetDefaultEnvironment( portablePipelineOptions.getDefaultEnvironmentType(), - portablePipelineOptions.getDefaultEnvironmentConfig())); + portablePipelineOptions.getDefaultEnvironmentConfig()) + .toBuilder() + .addAllDependencies(Environments.getArtifacts(options)) Review comment: Would this be better placed in createOrGetDefaultEnvironment? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 393876) Time Spent: 3h 10m (was: 3h) > Staging artifacts from environment > ---------------------------------- > > Key: BEAM-9056 > URL: https://issues.apache.org/jira/browse/BEAM-9056 > Project: Beam > Issue Type: Sub-task > Components: java-fn-execution > Reporter: Heejong Lee > Assignee: Heejong Lee > Priority: Major > Time Spent: 3h 10m > Remaining Estimate: 0h > > staging artifacts from artifact information embedded in environment proto. > detail: > https://docs.google.com/document/d/1L7MJcfyy9mg2Ahfw5XPhUeBe-dyvAPMOYOiFA1-kAog -- This message was sent by Atlassian Jira (v8.3.4#803005)