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

GH-35056: [Python][CI] Don't install gdb on Windows #35057

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

kou
Copy link
Member

@kou kou commented Apr 11, 2023

Because it's not available on Windows.

Rationale for this change

The gdb conda package isn't available on Windows:

https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/46748401#L266

C:\projects\arrow>mamba create -n arrow -y -c conda-forge   --file=ci\conda_env_python.txt    --file=ci\conda_env_gandiva_win.txt --file=ci\conda_env_cpp.txt    "ccache"   "cmake"   "ninja"   "nomkl"   "pandas"   "fsspec"   "python=3.10"     || exit /B 
conda-forge/win-64                                          Using cache
conda-forge/noarch                                          Using cache
Looking for: ['boto3', 'cffi', 'cython', 'cloudpickle', 'fsspec', 'gdb', 'hypothesis', "numpy[version='>=1.16.6']", 'pytest', 'pytest-faulthandler', 'pytest-lazy-fixture', "s3fs[version='>=2021.8.0']", 'setuptools', 'setuptools_scm', "clangdev[version='<15']", "llvmdev[version='<15']", 'aws-sdk-cpp==1.10.13', "benchmark[version='>=1.6.0']", "boost-cpp[version='>=1.68.0']", 'brotli', 'bzip2', 'c-ares', 'cmake', 'flatbuffers', 'gflags', 'glog', "gmock[version='>=1.10.0']", "google-cloud-cpp[version='>=1.34.0']", 'grpc-cpp', "gtest[version='>=1.10.0']", 'libprotobuf', 'libutf8proc', 'lz4-c', 'make', 'ninja', 'orc', 'pkg-config', 'python', 'rapidjson', 're2', 'snappy', "thrift-cpp[version='>=0.11.0']", 'xsimd', 'zlib', 'zstd', 'ccache', 'cmake', 'ninja', 'nomkl', 'pandas', 'fsspec', 'python=3.10']
Could not solve for environment specs
The following package could not be installed
└─ gdb   does not exist (perhaps a typo or a missing channel).
C:\projects\arrow>set lastexitcode=1 

What changes are included in this PR?

Don't install gdb on Windows.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Because it's not available on Windows.
@github-actions
Copy link

⚠️ GitHub issue #35056 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added the awaiting committer review Awaiting committer review label Apr 11, 2023
@westonpace
Copy link
Member

Do we want to add gdb to conda_env_unix to keep the number of conda files down? It may be a little imprecise.

Copy link
Member

@assignUser assignUser left a comment

Choose a reason for hiding this comment

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

I agree with @westonpace but I think the solution is easier :)

ci/conda_env_sphinx.txt \
/arrow/ci/
RUN mamba install -q -y \
--file arrow/ci/conda_env_python.txt \
--file arrow/ci/conda_env_python_unix.txt \
Copy link
Member

Choose a reason for hiding this comment

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

Maybe just add gdb directly here as it is not used anywhere else? Should we add more packages/use them in multiple location we can always refactor into a new file.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that this approach is better. See also: #35024 (comment)

But it's not a strong opinion because I'm not a conda user. I follow opinions from developers who use conda.

@kou
Copy link
Member Author

kou commented Apr 12, 2023

Do we want to add gdb to conda_env_unix to keep the number of conda files down? It may be a little imprecise.

gdb is only needed for conda-python images. conda-cpp images don't need it.

But I don't have strong opinion for this. Should I use ci/conda_env_unix.txt?

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Apr 12, 2023
@jorisvandenbossche
Copy link
Member

It's all not too important to bikeshed over, but I agree with Jacob and Weston that I find it not really worth it to create a new file for this (also as a user of those files for my local development, that makes the command to create your conda environment quite a bit longer).
gdb is also useful for C++ developers, so moving it the base conda_env_unix.txt makes sense to me (and that ensures developers get this if they use conda to setup their environment). If we don't want to do that because we would then unnecessarily install it on CI, then I would just add it to the mamba install command in the dockerfile as Jacob mentioned (and in #35024 (comment))

@kou
Copy link
Member Author

kou commented Apr 12, 2023

OK. I've moved gdb to conda_env_unix.txt.

@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Apr 12, 2023
@kou
Copy link
Member Author

kou commented Apr 12, 2023

@github-actions crossbow submit test-conda-python-3.10

@github-actions
Copy link

Revision: d1fb68a

Submitted crossbow builds: ursacomputing/crossbow @ actions-d86b248eae

Task Status
test-conda-python-3.10 Github Actions

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Thanks!

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting change review Awaiting change review labels Apr 12, 2023
@jorisvandenbossche
Copy link
Member

Appveyor is still failing, but now it's an issue in the tests (not in setting up the env). Seems to be hanging / taking too much time.

@jorisvandenbossche jorisvandenbossche merged commit 6120345 into apache:main Apr 12, 2023
11 of 12 checks passed
@kou kou deleted the python-conda-gdb-windows branch April 12, 2023 09:00
@ursabot
Copy link

ursabot commented Apr 13, 2023

Benchmark runs are scheduled for baseline = b8427d3 and contender = 6120345. 6120345 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Failed] test-mac-arm
[Finished ⬇️0.77% ⬆️0.26%] ursa-i9-9960x
[Finished ⬇️0.28% ⬆️0.03%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] 61203456 ec2-t3-xlarge-us-east-2
[Failed] 61203456 test-mac-arm
[Finished] 61203456 ursa-i9-9960x
[Finished] 61203456 ursa-thinkcentre-m75q
[Finished] b8427d39 ec2-t3-xlarge-us-east-2
[Failed] b8427d39 test-mac-arm
[Finished] b8427d39 ursa-i9-9960x
[Finished] b8427d39 ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

@ursabot
Copy link

ursabot commented Apr 13, 2023

['Python', 'R'] benchmarks have high level of regressions.
ursa-i9-9960x

kou pushed a commit that referenced this pull request Apr 27, 2023
### Rationale for this change
Similar to the issue with windows in #35057 gdb is also not available for arm64, causing benchmarks to fail.

This moves gdb into the dockerfile that actually needs it to prevent further changes. An alternative would be to use multi-arch-gdb but that is only available in `-c memfault` and adding on an entire new channel will only increase solve times and potentially cause problems.

* Closes: #35346

Authored-by: Jacob Wujciak-Jens <jacob@wujciak.de>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
liujiacheng777 pushed a commit to LoongArch-Python/arrow that referenced this pull request May 11, 2023
Because it's not available on Windows.

### Rationale for this change

The gdb conda package isn't available on Windows:

https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/46748401#L266

```text
C:\projects\arrow>mamba create -n arrow -y -c conda-forge   --file=ci\conda_env_python.txt    --file=ci\conda_env_gandiva_win.txt --file=ci\conda_env_cpp.txt    "ccache"   "cmake"   "ninja"   "nomkl"   "pandas"   "fsspec"   "python=3.10"     || exit /B 
conda-forge/win-64                                          Using cache
conda-forge/noarch                                          Using cache
Looking for: ['boto3', 'cffi', 'cython', 'cloudpickle', 'fsspec', 'gdb', 'hypothesis', "numpy[version='>=1.16.6']", 'pytest', 'pytest-faulthandler', 'pytest-lazy-fixture', "s3fs[version='>=2021.8.0']", 'setuptools', 'setuptools_scm', "clangdev[version='<15']", "llvmdev[version='<15']", 'aws-sdk-cpp==1.10.13', "benchmark[version='>=1.6.0']", "boost-cpp[version='>=1.68.0']", 'brotli', 'bzip2', 'c-ares', 'cmake', 'flatbuffers', 'gflags', 'glog', "gmock[version='>=1.10.0']", "google-cloud-cpp[version='>=1.34.0']", 'grpc-cpp', "gtest[version='>=1.10.0']", 'libprotobuf', 'libutf8proc', 'lz4-c', 'make', 'ninja', 'orc', 'pkg-config', 'python', 'rapidjson', 're2', 'snappy', "thrift-cpp[version='>=0.11.0']", 'xsimd', 'zlib', 'zstd', 'ccache', 'cmake', 'ninja', 'nomkl', 'pandas', 'fsspec', 'python=3.10']
Could not solve for environment specs
The following package could not be installed
└─ gdb   does not exist (perhaps a typo or a missing channel).
C:\projects\arrow>set lastexitcode=1 
```

### What changes are included in this PR?

Don't install gdb on Windows.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: apache#35056

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
liujiacheng777 pushed a commit to LoongArch-Python/arrow that referenced this pull request May 11, 2023
…ache#35348)

### Rationale for this change
Similar to the issue with windows in apache#35057 gdb is also not available for arm64, causing benchmarks to fail.

This moves gdb into the dockerfile that actually needs it to prevent further changes. An alternative would be to use multi-arch-gdb but that is only available in `-c memfault` and adding on an entire new channel will only increase solve times and potentially cause problems.

* Closes: apache#35346

Authored-by: Jacob Wujciak-Jens <jacob@wujciak.de>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
ArgusLi pushed a commit to Bit-Quill/arrow that referenced this pull request May 15, 2023
Because it's not available on Windows.

### Rationale for this change

The gdb conda package isn't available on Windows:

https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/46748401#L266

```text
C:\projects\arrow>mamba create -n arrow -y -c conda-forge   --file=ci\conda_env_python.txt    --file=ci\conda_env_gandiva_win.txt --file=ci\conda_env_cpp.txt    "ccache"   "cmake"   "ninja"   "nomkl"   "pandas"   "fsspec"   "python=3.10"     || exit /B 
conda-forge/win-64                                          Using cache
conda-forge/noarch                                          Using cache
Looking for: ['boto3', 'cffi', 'cython', 'cloudpickle', 'fsspec', 'gdb', 'hypothesis', "numpy[version='>=1.16.6']", 'pytest', 'pytest-faulthandler', 'pytest-lazy-fixture', "s3fs[version='>=2021.8.0']", 'setuptools', 'setuptools_scm', "clangdev[version='<15']", "llvmdev[version='<15']", 'aws-sdk-cpp==1.10.13', "benchmark[version='>=1.6.0']", "boost-cpp[version='>=1.68.0']", 'brotli', 'bzip2', 'c-ares', 'cmake', 'flatbuffers', 'gflags', 'glog', "gmock[version='>=1.10.0']", "google-cloud-cpp[version='>=1.34.0']", 'grpc-cpp', "gtest[version='>=1.10.0']", 'libprotobuf', 'libutf8proc', 'lz4-c', 'make', 'ninja', 'orc', 'pkg-config', 'python', 'rapidjson', 're2', 'snappy', "thrift-cpp[version='>=0.11.0']", 'xsimd', 'zlib', 'zstd', 'ccache', 'cmake', 'ninja', 'nomkl', 'pandas', 'fsspec', 'python=3.10']
Could not solve for environment specs
The following package could not be installed
└─ gdb   does not exist (perhaps a typo or a missing channel).
C:\projects\arrow>set lastexitcode=1 
```

### What changes are included in this PR?

Don't install gdb on Windows.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: apache#35056

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
ArgusLi pushed a commit to Bit-Quill/arrow that referenced this pull request May 15, 2023
…ache#35348)

### Rationale for this change
Similar to the issue with windows in apache#35057 gdb is also not available for arm64, causing benchmarks to fail.

This moves gdb into the dockerfile that actually needs it to prevent further changes. An alternative would be to use multi-arch-gdb but that is only available in `-c memfault` and adding on an entire new channel will only increase solve times and potentially cause problems.

* Closes: apache#35346

Authored-by: Jacob Wujciak-Jens <jacob@wujciak.de>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
rtpsw pushed a commit to rtpsw/arrow that referenced this pull request May 16, 2023
Because it's not available on Windows.

### Rationale for this change

The gdb conda package isn't available on Windows:

https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/46748401#L266

```text
C:\projects\arrow>mamba create -n arrow -y -c conda-forge   --file=ci\conda_env_python.txt    --file=ci\conda_env_gandiva_win.txt --file=ci\conda_env_cpp.txt    "ccache"   "cmake"   "ninja"   "nomkl"   "pandas"   "fsspec"   "python=3.10"     || exit /B 
conda-forge/win-64                                          Using cache
conda-forge/noarch                                          Using cache
Looking for: ['boto3', 'cffi', 'cython', 'cloudpickle', 'fsspec', 'gdb', 'hypothesis', "numpy[version='>=1.16.6']", 'pytest', 'pytest-faulthandler', 'pytest-lazy-fixture', "s3fs[version='>=2021.8.0']", 'setuptools', 'setuptools_scm', "clangdev[version='<15']", "llvmdev[version='<15']", 'aws-sdk-cpp==1.10.13', "benchmark[version='>=1.6.0']", "boost-cpp[version='>=1.68.0']", 'brotli', 'bzip2', 'c-ares', 'cmake', 'flatbuffers', 'gflags', 'glog', "gmock[version='>=1.10.0']", "google-cloud-cpp[version='>=1.34.0']", 'grpc-cpp', "gtest[version='>=1.10.0']", 'libprotobuf', 'libutf8proc', 'lz4-c', 'make', 'ninja', 'orc', 'pkg-config', 'python', 'rapidjson', 're2', 'snappy', "thrift-cpp[version='>=0.11.0']", 'xsimd', 'zlib', 'zstd', 'ccache', 'cmake', 'ninja', 'nomkl', 'pandas', 'fsspec', 'python=3.10']
Could not solve for environment specs
The following package could not be installed
└─ gdb   does not exist (perhaps a typo or a missing channel).
C:\projects\arrow>set lastexitcode=1 
```

### What changes are included in this PR?

Don't install gdb on Windows.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: apache#35056

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
rtpsw pushed a commit to rtpsw/arrow that referenced this pull request May 16, 2023
…ache#35348)

### Rationale for this change
Similar to the issue with windows in apache#35057 gdb is also not available for arm64, causing benchmarks to fail.

This moves gdb into the dockerfile that actually needs it to prevent further changes. An alternative would be to use multi-arch-gdb but that is only available in `-c memfault` and adding on an entire new channel will only increase solve times and potentially cause problems.

* Closes: apache#35346

Authored-by: Jacob Wujciak-Jens <jacob@wujciak.de>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge Awaiting merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Python][CI] AppVeyor job is failed because the gdb conda package isn't available on Windows
5 participants