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

[BE] github actions migration #2422

Merged
merged 86 commits into from
Nov 25, 2024
Merged

[BE] github actions migration #2422

merged 86 commits into from
Nov 25, 2024

Conversation

aclegg3
Copy link
Contributor

@aclegg3 aclegg3 commented Jul 2, 2024

Motivation and Context

Working branch to test migration to github actions. Do not merge.

How Has This Been Tested

CI

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@aclegg3 aclegg3 added the do not merge Not ready to merge. This label should block merging. label Jul 2, 2024
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jul 2, 2024
@0mdc 0mdc self-requested a review November 13, 2024 16:02
@0mdc 0mdc mentioned this pull request Nov 15, 2024
11 tasks
@0mdc
Copy link
Contributor

0mdc commented Nov 18, 2024

@aclegg3 EGL initialization on the Actions runner now works correctly. You may still have issues with the CUDA build - let me know if that happens.

Copy link
Contributor

@0mdc 0mdc left a comment

Choose a reason for hiding this comment

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

Added some high-level comments.

- name: setup
run: |-
pip install -U pip
pip install -U --prefer-binary \
Copy link
Contributor

Choose a reason for hiding this comment

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

We should pin all dependencies here, especially complex ones like numpy.
This could be done from a requirements_ci.txt file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed

# Disable clone protection for git lfs
export GIT_CLONE_PROTECTION_ACTIVE=false

sudo apt install git-lfs
Copy link
Contributor

Choose a reason for hiding this comment

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

I would move LFS installation to a separate actions.yml workflow, along with all other basic setup steps.

python src_python/habitat_sim/utils/datasets_download.py --uids ci_test_assets ycb rearrange_dataset_v2 --replace --data-path data/ --no-prune
ls -la data/scene_datasets/habitat-test-scenes/
- name: Debugging with tmate
uses: mxschmitt/[email protected]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is really handy!

Copy link
Contributor

@0mdc 0mdc left a comment

Choose a reason for hiding this comment

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

LGTM! Good job figuring this out!

sudo mkdir /opt/cmake312
sudo sh ./cmake-3.12.4-Linux-x86_64.sh --prefix=/opt/cmake312 --skip-license
sudo ln -s /opt/cmake312/bin/cmake /usr/local/bin/cmake
sudo ln -s /opt/cmake312/bin/ctest /usr/local/bin/ctest
Copy link
Contributor

Choose a reason for hiding this comment

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

I would simplify this with sudo apt install -y cmake.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can try this and see if it works. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nah, cmake isn't available on apt. I think that's the reason for this installation method initially.
Anyway, feel free to fiddle with it as a follow-up.

.github/actions/install_ubuntu_deps/action.yml Outdated Show resolved Hide resolved
tags: [ "v*" ]
schedule:
- cron: "0 5 * * *"
#this is 9PM PST
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

assert not config.has_value("test")
# TODO: this line segfaults on some platforms, investigate
# config.remove("test")
# assert not config.has_value("test")
Copy link
Contributor

Choose a reason for hiding this comment

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

This is pretty strange. Do you have an idea of what could be going on here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have this issue on my local platform (Fedora 40) also. I spoke to John about it. His guess is that the more recent compilers may be treating some C++ code differently in the Configuration string manipulation system. E.g. I have gcc 14 here. He's looking into it, but for now we'll disable this one line. It really only hits when trying to remove a string key from a Configuration which I don't think we ever do anywhere downstream.

Copy link
Contributor

Choose a reason for hiding this comment

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

(Putting this here for posterity) Yeah, specifically removing a string key to a string field in a raw configuration only.

@aclegg3 aclegg3 changed the title [WIP] github actions migration [BE] github actions migration Nov 25, 2024
@aclegg3 aclegg3 merged commit 26e44cb into main Nov 25, 2024
15 checks passed
@aclegg3 aclegg3 deleted the alex-07_02-github_actions_setup branch November 25, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. do not merge Not ready to merge. This label should block merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants