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

Add Ubuntu Jammy CI #864

Merged
merged 6 commits into from
Mar 9, 2022
Merged

Add Ubuntu Jammy CI #864

merged 6 commits into from
Mar 9, 2022

Conversation

scpeters
Copy link
Member

🦟 Bug fix

Part of gazebo-tooling/release-tools#566

Summary

Enable CI for Ubuntu 22.04 (Jammy)

Summary

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Signed-off-by: Steve Peters <[email protected]>
@scpeters
Copy link
Member Author

this needs libignition-common4-dev debs on jammy

@codecov-commenter
Copy link

codecov-commenter commented Feb 26, 2022

Codecov Report

Merging #864 (3f1470a) into sdf12 (41c4920) will not change coverage.
The diff coverage is n/a.

❗ Current head 3f1470a differs from pull request most recent head d31c4dc. Consider uploading reports for the commit d31c4dc to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##            sdf12     gazebosim/sdformat#864   +/-   ##
=======================================
  Coverage   88.65%   88.65%           
=======================================
  Files          92       92           
  Lines       14221    14221           
=======================================
  Hits        12607    12607           
  Misses       1614     1614           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41c4920...d31c4dc. Read the comment docs.

@scpeters scpeters added the needs upstream release Blocked by a release of an upstream library label Feb 28, 2022
@scpeters
Copy link
Member Author

scpeters commented Mar 4, 2022

pxr fails to build on Ubuntu 22.04 (jammy). Perhaps we should limit pxr testing to 20.04 (focal) for now?

cc @adlarkin @ahcorde

@adlarkin
Copy link
Contributor

adlarkin commented Mar 4, 2022

pxr fails to build on Ubuntu 22.04 (jammy). Perhaps we should limit pxr testing to 20.04 (focal) for now?

That sounds good to me 👍

@scpeters
Copy link
Member Author

scpeters commented Mar 5, 2022

pxr fails to build on Ubuntu 22.04 (jammy). Perhaps we should limit pxr testing to 20.04 (focal) for now?

That sounds good to me 👍

done in 990d548

@@ -7,12 +7,16 @@ BUILD_DIR=`pwd`
cd /tmp

# check that we can compile USD from sources (only Focal)
return_code=0
if [ "$(lsb_release -r -s)" != "20.04" ]; then
return_code=$(($return_code + 1))
Copy link
Contributor

Choose a reason for hiding this comment

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

since return_code is initialized to 0 above, can this be simplified to return_code=1?

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 it's easier to add new code and move things around in its current form.

@adlarkin
Copy link
Contributor

adlarkin commented Mar 7, 2022

pxr fails to build on Ubuntu 22.04 (jammy). Perhaps we should limit pxr testing to 20.04 (focal) for now?

Looking at this more closely, I believe it could be because you need to set certain environment variables to build pxr from source. Here are the environment variables set on Focal: https://github.com/ignitionrobotics/sdformat/blob/2a517d1bc563a831c68f9456897659ed054243e6/.github/workflows/ci.yml#L21-L23

@scpeters have you tried setting these environment variables on Jammy to see if it fixes the Jammy build?

@scpeters
Copy link
Member Author

scpeters commented Mar 7, 2022

pxr fails to build on Ubuntu 22.04 (jammy). Perhaps we should limit pxr testing to 20.04 (focal) for now?

Looking at this more closely, I believe it could be because you need to set certain environment variables to build pxr from source. Here are the environment variables set on Focal:

https://github.com/ignitionrobotics/sdformat/blob/2a517d1bc563a831c68f9456897659ed054243e6/.github/workflows/ci.yml#L21-L23

@scpeters have you tried setting these environment variables on Jammy to see if it fixes the Jammy build?

I had not tried this, but I just did in bd0ab93

it is still failing:

2022-03-07T23:36:40.2577991Z [ 60%] Building CXX object pxr/base/work/CMakeFiles/work.dir/singularTask.cpp.o
2022-03-07T23:36:40.3566396Z In file included from /tmp/usd_binaries/USD-21.11/pxr/base/work/singularTask.cpp:24:
2022-03-07T23:36:40.3567151Z /tmp/usd_binaries/USD-21.11/pxr/base/work/singularTask.h: In lambda function:
2022-03-07T23:36:40.3568067Z /tmp/usd_binaries/USD-21.11/pxr/base/work/singularTask.h:111:21: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
2022-03-07T23:36:40.3568421Z   111 |                     size_t old = count;
2022-03-07T23:36:40.3568644Z       |                     ^~~~~~
2022-03-07T23:36:40.3568845Z       |                     std::size_t
2022-03-07T23:36:40.3569371Z In file included from /usr/include/c++/11/bits/atomic_base.h:35,
2022-03-07T23:36:40.3569771Z                  from /usr/include/c++/11/atomic:41,
2022-03-07T23:36:40.3570258Z                  from /tmp/usd_binaries/USD-21.11/pxr/base/work/singularTask.h:31,
2022-03-07T23:36:40.3570810Z                  from /tmp/usd_binaries/USD-21.11/pxr/base/work/singularTask.cpp:24:
2022-03-07T23:36:40.3571440Z /usr/include/x86_64-linux-gnu/c++/11/bits/c++config.h:280:33: note: 'std::size_t' declared here
2022-03-07T23:36:40.3571824Z   280 |   typedef __SIZE_TYPE__         size_t;
2022-03-07T23:36:40.3572133Z       |                                 ^~~~~~
2022-03-07T23:36:40.3585857Z In file included from /tmp/usd_binaries/USD-21.11/pxr/base/work/singularTask.cpp:24:
2022-03-07T23:36:40.3586408Z /tmp/usd_binaries/USD-21.11/pxr/base/work/singularTask.h:113:56: error: 'old' was not declared in this scope
2022-03-07T23:36:40.3586778Z   113 |                         !count.compare_exchange_strong(old, 0));
2022-03-07T23:36:40.3587036Z       |                                                        ^~~
2022-03-07T23:36:40.3630030Z make[2]: *** [pxr/base/work/CMakeFiles/work.dir/build.make:177: pxr/base/work/CMakeFiles/work.dir/singularTask.cpp.o] Error 1

I noticed tbb deprecation warnings, so I'm wondering if it's related to PixarAnimationStudios/OpenUSD#1471

@adlarkin
Copy link
Contributor

adlarkin commented Mar 8, 2022

I had not tried this, but I just did in bd0ab93

it is still failing:

...

I noticed tbb deprecation warnings, so I'm wondering if it's related to PixarAnimationStudios/USD#1471

Okay, thanks for checking. Since there seem to be upstream issues on Jammy, I think we can stick with the approach of disabling pxr on Jammy for now. Would you mind leaving a comment after this line that references the upstream issues on Jammy? That way, we can re-visit this later on and try to re-enable pxr on Jammy whenever things are fixed upstream.

@scpeters
Copy link
Member Author

scpeters commented Mar 8, 2022

I had not tried this, but I just did in bd0ab93
it is still failing:
...
I noticed tbb deprecation warnings, so I'm wondering if it's related to PixarAnimationStudios/USD#1471

Okay, thanks for checking. Since there seem to be upstream issues on Jammy, I think we can stick with the approach of disabling pxr on Jammy for now. Would you mind leaving a comment after this line that references the upstream issues on Jammy? That way, we can re-visit this later on and try to re-enable pxr on Jammy whenever things are fixed upstream.

I opened gazebosim/gz-usd#2 to track this and added a comment in ed62202

@scpeters scpeters merged commit 41d370d into gazebosim:sdf12 Mar 9, 2022
@scpeters scpeters deleted the jammy_ci branch March 9, 2022 04:49
@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-ignition-releases-2022-04-13-fortress-edifice/1367/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress needs upstream release Blocked by a release of an upstream library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants