You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Michael Smith (Code Review)" <ge...@cloudera.org> on 2023/07/25 18:36:30 UTC

[Impala-ASF-CR] [tools] Simplify local toolchain development

Michael Smith has uploaded this change for review. ( http://gerrit.cloudera.org:8080/20267


Change subject: [tools] Simplify local toolchain development
......................................................................

[tools] Simplify local toolchain development

Overrides IMPALA_TOOLCHAIN_PACKAGES_HOME and sets
SKIP_TOOLCHAIN_BOOTSTRAP=true if toolchain-local exists to simplify
building against a local toolchain. Also skips downloading Kudu if
SKIP_TOOLCHAIN_BOOTSTRAP is true as Kudu is built from native-toolchain.
Test a local native-toolchain build with

    mkdir toolchain/toolchain-local
    source bin/impala-config.sh
    ln -s ~/native-toolchain/build/* $IMPALA_TOOLCHAIN_PACKAGES_HOME
    ./buildall.sh ...

Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
---
M bin/bootstrap_toolchain.py
M bin/impala-config.sh
2 files changed, 10 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/67/20267/1
-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: [tools] Simplify local toolchain development
......................................................................


Patch Set 2:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13636/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 2
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 25 Jul 2023 19:07:28 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Hello Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20267

to look at the new patch set (#2).

Change subject: [tools] Simplify local toolchain development
......................................................................

[tools] Simplify local toolchain development

Overrides IMPALA_TOOLCHAIN_PACKAGES_HOME and sets
SKIP_TOOLCHAIN_BOOTSTRAP=true if toolchain-local exists to simplify
building against a local toolchain. Also skips downloading Kudu if
SKIP_TOOLCHAIN_BOOTSTRAP is true as Kudu is built from native-toolchain.
Test a local native-toolchain build with

    mkdir toolchain/toolchain-local
    source bin/impala-config.sh
    ln -s ~/native-toolchain/build/* $IMPALA_TOOLCHAIN_PACKAGES_HOME
    ./buildall.sh ...

Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
---
M bin/bootstrap_toolchain.py
M bin/impala-config.sh
2 files changed, 10 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/67/20267/2
-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 2
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 7:

Running an ARM build at https://jenkins.impala.io/job/ubuntu-20.04-from-scratch-ARM/35/ to make sure I didn't break them.


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 7
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Sep 2023 04:12:23 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Laszlo Gaal (Code Review)" <ge...@cloudera.org>.
Laszlo Gaal has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: [tools] Simplify local toolchain development
......................................................................


Patch Set 3: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 16 Aug 2023 15:30:15 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 9:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20267/7/bin/impala-config.sh
File bin/impala-config.sh:

http://gerrit.cloudera.org:8080/#/c/20267/7/bin/impala-config.sh@327
PS7, Line 327:   IMPALA_TOOLCHAIN_PACKAGES_HOME=$(realpath ${NATIVE_TOOLCHAIN_HOME})/build
> ARM test build: https://jenkins.impala.io/job/ubuntu-20.04-from-scratch-ARM
ARM built successfully. Had a few test failures that I believe to be unrelated.



-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 9
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Sep 2023 16:36:41 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 7: Verified+1

Overriding failure due to https://issues.apache.org/jira/browse/IMPALA-12266.


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 7
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Sep 2023 04:09:11 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Hello Laszlo Gaal, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20267

to look at the new patch set (#6).

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................

IMPALA-12441: Simplify local toolchain development

If NATIVE_TOOLCHAIN_HOME is set, that will be used to provide the native
toolchain instead of the default in IMPALA_TOOLCHAIN. Overrides
IMPALA_TOOLCHAIN_PACKAGES_HOME and sets SKIP_TOOLCHAIN_BOOTSTRAP=true.

Adds IMPALA_TOOLCHAIN_REPO, IMPALA_TOOLCHAIN_BRANCH, and
IMPALA_TOOLCHAIN_COMMIT_HASH so everything is clear about what toolchain
is used for this Impala commit.

Also skips downloading Kudu if SKIP_TOOLCHAIN_BOOTSTRAP is true as Kudu
is built from native-toolchain. Normalizes aarch64 logic, which skipped
Kudu because it would always build native-toolchain locally.

Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
---
M bin/bootstrap_system.sh
M bin/bootstrap_toolchain.py
M bin/impala-config.sh
M buildall.sh
4 files changed, 40 insertions(+), 28 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/67/20267/6
-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 6
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: [tools] Simplify local toolchain development
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20267/1/bin/impala-config.sh
File bin/impala-config.sh:

http://gerrit.cloudera.org:8080/#/c/20267/1/bin/impala-config.sh@323
PS1, Line 323:   IMPALA_TOOLCHAIN_PACKAGES_HOME=${IMPALA_TOOLCHAIN}/toolchain-packages-gcc${IMPALA_GCC_VERSION}
line too long (96 > 90)



-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Tue, 25 Jul 2023 18:37:35 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 7: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 7
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Mon, 11 Sep 2023 19:49:52 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 9:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9709/ DRY_RUN=true


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 9
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Sep 2023 17:02:23 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: [tools] Simplify local toolchain development
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20267/3/bin/impala-config.sh
File bin/impala-config.sh:

http://gerrit.cloudera.org:8080/#/c/20267/3/bin/impala-config.sh@319
PS3, Line 319: IMPALA_TOOLCHAIN_PACKAGES_HOME=${IMPALA_TOOLCHAIN}/toolchain-local
I was thinking it might be nice to combine this with some of the logic for aarch64 that automatically symlinks from NATIVE_TOOLCHAIN_HOME. So set an environment variable for the native toolchain repo and Impala takes care of the rest.



-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 16 Aug 2023 15:46:31 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: [tools] Simplify local toolchain development
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20267/3/bin/impala-config.sh
File bin/impala-config.sh:

http://gerrit.cloudera.org:8080/#/c/20267/3/bin/impala-config.sh@319
PS3, Line 319: fi
> I was thinking it might be nice to combine this with some of the logic for 
Done. I also rolled in https://gerrit.cloudera.org/c/19885/ as part of setting up NATIVE_TOOLCHAIN_HOME with the correct ref.



-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Fri, 18 Aug 2023 21:12:54 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Hello Laszlo Gaal, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20267

to look at the new patch set (#8).

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................

IMPALA-12441: Simplify local toolchain development

If NATIVE_TOOLCHAIN_HOME is set, that will be used to provide the native
toolchain instead of the default in IMPALA_TOOLCHAIN. Overrides
IMPALA_TOOLCHAIN_PACKAGES_HOME and sets SKIP_TOOLCHAIN_BOOTSTRAP=true.

Adds IMPALA_TOOLCHAIN_REPO, IMPALA_TOOLCHAIN_BRANCH, and
IMPALA_TOOLCHAIN_COMMIT_HASH so everything is clear about what toolchain
is used for this Impala commit.

Also skips downloading Kudu if SKIP_TOOLCHAIN_BOOTSTRAP is true as Kudu
is built from native-toolchain. Normalizes aarch64 logic, which skipped
Kudu because it would always build native-toolchain locally.

Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
---
M bin/bootstrap_system.sh
M bin/bootstrap_toolchain.py
M bin/impala-config.sh
M buildall.sh
4 files changed, 40 insertions(+), 28 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/67/20267/8
-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 8
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: [tools] Simplify local toolchain development
......................................................................


Patch Set 3:

One minor thing: Some developers use a single $IMPALA_TOOLCHAIN location for multiple Impala checkouts. If we add toolchain-local in that shared directory, then other checkouts could be impacted (if they have this code). This is easy to workaround (set IMPALA_TOOLCHAIN to not use the shared location), so it isn't a big deal.

I like the idea of a mode that points to a toolchain and builds it. I think it would be useful for non-aarch64 circumstances as well. Being able to set an env var that says "build the toolchain from scratch" and corresponding vars to customize a native-toolchain checkout location / toolchain storage location would be nice.


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 16 Aug 2023 16:00:00 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 7: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/9700/


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 7
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Sep 2023 00:14:32 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 8:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20267/7/bin/impala-config.sh
File bin/impala-config.sh:

http://gerrit.cloudera.org:8080/#/c/20267/7/bin/impala-config.sh@327
PS7, Line 327:   IMPALA_TOOLCHAIN_PACKAGES_HOME=$(realpath ${NATIVE_TOOLCHAIN_HOME})/build
> This fails if NATIVE_TOOLCHAIN_HOME does not yet exist.
Done



-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 8
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Sep 2023 16:57:10 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................

IMPALA-12441: Simplify local toolchain development

If NATIVE_TOOLCHAIN_HOME is set, that will be used to provide the native
toolchain instead of the default in IMPALA_TOOLCHAIN. Overrides
IMPALA_TOOLCHAIN_PACKAGES_HOME and sets SKIP_TOOLCHAIN_BOOTSTRAP=true.

Adds IMPALA_TOOLCHAIN_REPO, IMPALA_TOOLCHAIN_BRANCH, and
IMPALA_TOOLCHAIN_COMMIT_HASH so everything is clear about what toolchain
is used for this Impala commit.

If NATIVE_TOOLCHAIN_HOME does not yet exist, buildall.sh will clone the
repo and checkout the commit hash mentioned above before building.

Also skips downloading Kudu if SKIP_TOOLCHAIN_BOOTSTRAP is true as Kudu
is built from native-toolchain. Normalizes aarch64 logic, which skipped
Kudu because it would always build native-toolchain locally.

Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Reviewed-on: http://gerrit.cloudera.org:8080/20267
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Michael Smith <mi...@cloudera.com>
---
M bin/bootstrap_system.sh
M bin/bootstrap_toolchain.py
M bin/impala-config.sh
M buildall.sh
4 files changed, 40 insertions(+), 28 deletions(-)

Approvals:
  Impala Public Jenkins: Verified
  Michael Smith: Looks good to me, approved

-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 11
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 7:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20267/7/bin/impala-config.sh
File bin/impala-config.sh:

http://gerrit.cloudera.org:8080/#/c/20267/7/bin/impala-config.sh@327
PS7, Line 327:   IMPALA_TOOLCHAIN_PACKAGES_HOME=$(realpath ${NATIVE_TOOLCHAIN_HOME}/build)
This fails if NATIVE_TOOLCHAIN_HOME does not yet exist.



-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 7
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Sep 2023 16:52:44 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 10: Verified+1


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 10
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Sep 2023 21:02:07 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has removed a vote on this change.

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Removed Verified-1 by Impala Public Jenkins <im...@cloudera.com>
-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 9
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 6:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13971/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 6
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Mon, 11 Sep 2023 18:54:56 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 7:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9700/ DRY_RUN=false


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 7
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Mon, 11 Sep 2023 19:49:53 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 8:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9708/ DRY_RUN=true


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 8
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Sep 2023 16:57:36 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 8:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13989/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 8
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Sep 2023 17:23:29 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: [tools] Simplify local toolchain development
......................................................................


Patch Set 5:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13939/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 5
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Thu, 07 Sep 2023 17:01:11 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Hello Laszlo Gaal, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20267

to look at the new patch set (#5).

Change subject: [tools] Simplify local toolchain development
......................................................................

[tools] Simplify local toolchain development

If NATIVE_TOOLCHAIN_HOME is set, that will be used to provide the native
toolchain instead of the default in IMPALA_TOOLCHAIN. Overrides
IMPALA_TOOLCHAIN_PACKAGES_HOME and sets SKIP_TOOLCHAIN_BOOTSTRAP=true.

Adds IMPALA_TOOLCHAIN_REPO, IMPALA_TOOLCHAIN_BRANCH, and
IMPALA_TOOLCHAIN_COMMIT_HASH so everything is clear about what toolchain
is used for this Impala commit.

Also skips downloading Kudu if SKIP_TOOLCHAIN_BOOTSTRAP is true as Kudu
is built from native-toolchain. Normalizes aarch64 logic, which skipped
Kudu because it would always build native-toolchain locally.

Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
---
M bin/bootstrap_system.sh
M bin/bootstrap_toolchain.py
M bin/impala-config.sh
M buildall.sh
4 files changed, 40 insertions(+), 28 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/67/20267/5
-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 5
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 6: Code-Review+2

This looks good to me


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 6
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Mon, 11 Sep 2023 19:15:05 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 5:

(2 comments)

> Patch Set 5:
> 
> (2 comments)
> 
> Please file a JIRA.

Done.

> 
> This simplifies the case where someone wants to         
> modify the toolchain. It can be checked out to the 
> appropriate hash, and then any future modifications
> will take effect through buildall.sh. I think this
> looks good.
> 
> What this doesn't do is deal with this local
> toolchain consistently if you switch branches. If
> the IMPALA_TOOLCHAIN_COMMIT_HASH goes from x to y,
> the toolchain checkout isn't touched and stays at x.
> This is a use case we don't currently care about
> much, so we could do that separately. Heading in
> that direction gets us closer to Kudu's thirdparty
> model where it just gets triggered and kept up to
> date as part of the build.

There are two conflict workflows here:
- make local changes in native-toolchain that you want to test. There would be no remote branch to fetch and buildall would get in the way if it tried to switch to another commit hash.
- switching branches, when you want to use a different toolchain commit. Most of the time if I switch branches I probably want to go back to using prebuilt toolchains, so you'd want to clear NATIVE_TOOLCHAIN_HOME and re-source impala-config.sh.

I don't have a clear idea how to resolve those, so going to leave it alone.

> 
> We also have a new toolchain since this upload.

I believe I already resolved that conflict.

http://gerrit.cloudera.org:8080/#/c/20267/5/buildall.sh
File buildall.sh:

http://gerrit.cloudera.org:8080/#/c/20267/5/buildall.sh@433
PS5, Line 433: cd -
> To make it explicit, should we use pushd/popd?
Sure, this is the only place that used the 'cd -' pattern.


http://gerrit.cloudera.org:8080/#/c/20267/5/buildall.sh@452
PS5, Line 452: cp $IMPALA_HOME/../hadoopAarch64NativeLibs/lib*  $HADOOP_HOME/lib/native/
> A theory I have is that this can create problems for a running cluster. If 
Ack



-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 5
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Mon, 11 Sep 2023 18:28:17 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 9: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/9709/


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 9
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Sep 2023 21:24:04 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: [tools] Simplify local toolchain development
......................................................................


Patch Set 4:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13783/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Fri, 18 Aug 2023 21:37:30 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 10: Code-Review+2

Carrying the +2.


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 10
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Thu, 14 Sep 2023 17:46:33 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 10:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9712/ DRY_RUN=false


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 10
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Sep 2023 16:36:55 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Patch Set 9:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20267/7/bin/impala-config.sh
File bin/impala-config.sh:

http://gerrit.cloudera.org:8080/#/c/20267/7/bin/impala-config.sh@327
PS7, Line 327:   IMPALA_TOOLCHAIN_PACKAGES_HOME=$(realpath ${NATIVE_TOOLCHAIN_HOME})/build
> Done
ARM test build: https://jenkins.impala.io/job/ubuntu-20.04-from-scratch-ARM/37



-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 9
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Sep 2023 17:12:05 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Hello Laszlo Gaal, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20267

to look at the new patch set (#9).

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................

IMPALA-12441: Simplify local toolchain development

If NATIVE_TOOLCHAIN_HOME is set, that will be used to provide the native
toolchain instead of the default in IMPALA_TOOLCHAIN. Overrides
IMPALA_TOOLCHAIN_PACKAGES_HOME and sets SKIP_TOOLCHAIN_BOOTSTRAP=true.

Adds IMPALA_TOOLCHAIN_REPO, IMPALA_TOOLCHAIN_BRANCH, and
IMPALA_TOOLCHAIN_COMMIT_HASH so everything is clear about what toolchain
is used for this Impala commit.

If NATIVE_TOOLCHAIN_HOME does not yet exist, buildall.sh will clone the
repo and checkout the commit hash mentioned above before building.

Also skips downloading Kudu if SKIP_TOOLCHAIN_BOOTSTRAP is true as Kudu
is built from native-toolchain. Normalizes aarch64 logic, which skipped
Kudu because it would always build native-toolchain locally.

Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
---
M bin/bootstrap_system.sh
M bin/bootstrap_toolchain.py
M bin/impala-config.sh
M buildall.sh
4 files changed, 40 insertions(+), 28 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/67/20267/9
-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 9
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has removed a vote on this change.

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Removed Verified+1 by Michael Smith <mi...@cloudera.com>
-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 7
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-12441: Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has removed a vote on this change.

Change subject: IMPALA-12441: Simplify local toolchain development
......................................................................


Removed Verified-1 by Impala Public Jenkins <im...@cloudera.com>
-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 7
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: [tools] Simplify local toolchain development
......................................................................


Patch Set 5:

(2 comments)

Please file a JIRA.

This simplifies the case where someone wants to         
modify the toolchain. It can be checked out to the 
appropriate hash, and then any future modifications
will take effect through buildall.sh. I think this
looks good.

What this doesn't do is deal with this local
toolchain consistently if you switch branches. If
the IMPALA_TOOLCHAIN_COMMIT_HASH goes from x to y,
the toolchain checkout isn't touched and stays at x.
This is a use case we don't currently care about
much, so we could do that separately. Heading in
that direction gets us closer to Kudu's thirdparty
model where it just gets triggered and kept up to
date as part of the build.

We also have a new toolchain since this upload.

http://gerrit.cloudera.org:8080/#/c/20267/5/buildall.sh
File buildall.sh:

http://gerrit.cloudera.org:8080/#/c/20267/5/buildall.sh@433
PS5, Line 433: cd -
To make it explicit, should we use pushd/popd?


http://gerrit.cloudera.org:8080/#/c/20267/5/buildall.sh@452
PS5, Line 452: cp $IMPALA_HOME/../hadoopAarch64NativeLibs/lib*  $HADOOP_HOME/lib/native/
A theory I have is that this can create problems for a running cluster. If something is running and occasionally accessing these native libraries, this creates a window where they are being overwritten/modified.

Not your change, so we can think about this separately.



-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 5
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Mon, 11 Sep 2023 17:28:42 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20267 )

Change subject: [tools] Simplify local toolchain development
......................................................................


Patch Set 1:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13635/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 25 Jul 2023 19:00:10 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] [tools] Simplify local toolchain development

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Hello Laszlo Gaal, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20267

to look at the new patch set (#4).

Change subject: [tools] Simplify local toolchain development
......................................................................

[tools] Simplify local toolchain development

If NATIVE_TOOLCHAIN_HOME is set, that will be used to provide the native
toolchain instead of the default in IMPALA_TOOLCHAIN. Overrides
IMPALA_TOOLCHAIN_PACKAGES_HOME and sets SKIP_TOOLCHAIN_BOOTSTRAP=true.

Adds IMPALA_TOOLCHAIN_REPO, IMPALA_TOOLCHAIN_BRANCH, and
IMPALA_TOOLCHAIN_COMMIT_HASH so everything is clear about what toolchain
is used for this Impala commit.

Also skips downloading Kudu if SKIP_TOOLCHAIN_BOOTSTRAP is true as Kudu
is built from native-toolchain. Normalizes aarch64 logic, which skipped
Kudu because it would always build native-toolchain locally.

Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
---
M bin/bootstrap_system.sh
M bin/bootstrap_toolchain.py
M bin/impala-config.sh
M buildall.sh
4 files changed, 40 insertions(+), 28 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/67/20267/4
-- 
To view, visit http://gerrit.cloudera.org:8080/20267
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3a9e51b7f54c738d8cc01b32428ac88a344de376
Gerrit-Change-Number: 20267
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>