Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORC-1618: Disable building tests for snappy #1792

Closed
wants to merge 1 commit into from

Conversation

douardda
Copy link
Contributor

@douardda douardda commented Feb 9, 2024

Disabling the building of tests is a workaround for issue #1791 and is probably not an issue since snappy tests are not executed as part of the build process of orc c++ libs.

Note that snappy 1.1.9 and 1.1.10 cannot be used as is because source assets on snappy's gh page are not buildable out of the box, so stick to 1.1.8 for now.

What changes were proposed in this pull request?

Disable building snappy tests as a workaround for issue #1791.

Why are the changes needed?

compilation broken in some situations otherwise (see issue)

How was this patch tested?

compile & unit tests

Was this patch authored or co-authored using generative AI tooling?

no

@github-actions github-actions bot added the BUILD label Feb 9, 2024
@@ -99,7 +99,7 @@ else ()

ExternalProject_Add (snappy_ep
URL "https://github.com/google/snappy/archive/${SNAPPY_VERSION}.tar.gz"
CMAKE_ARGS ${SNAPPY_CMAKE_ARGS}
CMAKE_ARGS ${SNAPPY_CMAKE_ARGS} -DSNAPPY_BUILD_TESTS=OFF
Copy link
Member

@dongjoon-hyun dongjoon-hyun Feb 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for suggestion, but may I ask why we need to upgrade to 1.1.8 when we disable like this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question here.

Copy link
Contributor Author

@douardda douardda Feb 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it because it seems not to have negative impact, but I don't think it's needed to fix the issue. I can change the PR not to include this version bump if you prefer.

TBF, I started by trying to update this dep to see if it would fix the actual issue. It did not (and even worse, versions > 1.1.8 do not work at all with the actual build system) but I've let this minor update because it was the state of the repo when I made my tests and so.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation! Do you mind creating a JIRA for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't have a Jira account (and I'd rather not have to create one just for this very simple MR).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. Let me do that for you, @douardda .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Disabling the building of tests is a workaround for issue apache#1791 and is
probably not an issue since snappy tests are not executed as part of the
build process of orc c++ libs.
@douardda
Copy link
Contributor Author

I've updated the PR to only keep the 'disable build tests' part.

@dongjoon-hyun
Copy link
Member

I've updated the PR to only keep the 'disable build tests' part.

Thank you for update, @douardda . Please update the PR title and description accordingly.

@douardda douardda changed the title Update snappy to 1.1.8 and disable building tests for it Disable building tests for snappy Feb 14, 2024
@dongjoon-hyun dongjoon-hyun changed the title Disable building tests for snappy ORC-1618: Disable building tests for snappy Feb 14, 2024
@dongjoon-hyun dongjoon-hyun added this to the 1.9.3 milestone Feb 14, 2024
dongjoon-hyun pushed a commit that referenced this pull request Feb 14, 2024
Disabling the building of tests is a workaround for issue #1791 and is probably not an issue since snappy tests are not executed as part of the build process of orc c++ libs.

Note that snappy 1.1.9 and 1.1.10 cannot be used as is because source assets on snappy's gh page are not buildable out of the box, so stick to 1.1.8 for now.

### What changes were proposed in this pull request?
Disable  building snappy tests as a workaround for issue #1791.

### Why are the changes needed?
compilation broken in some situations otherwise (see issue)

### How was this patch tested?
compile & unit tests

### Was this patch authored or co-authored using generative AI tooling?
no

Closes #1792 from douardda/fix-snappy.

Authored-by: David Douard <david.douard@sdfa3.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 9627a24)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun pushed a commit that referenced this pull request Feb 14, 2024
Disabling the building of tests is a workaround for issue #1791 and is probably not an issue since snappy tests are not executed as part of the build process of orc c++ libs.

Note that snappy 1.1.9 and 1.1.10 cannot be used as is because source assets on snappy's gh page are not buildable out of the box, so stick to 1.1.8 for now.

### What changes were proposed in this pull request?
Disable  building snappy tests as a workaround for issue #1791.

### Why are the changes needed?
compilation broken in some situations otherwise (see issue)

### How was this patch tested?
compile & unit tests

### Was this patch authored or co-authored using generative AI tooling?
no

Closes #1792 from douardda/fix-snappy.

Authored-by: David Douard <david.douard@sdfa3.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 9627a24)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun
Copy link
Member

Merged to main/2.0/1.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants