Skip to content

fix(ci): pin to noble for python-apt - #109

Merged
brianphaley merged 1 commit into
openstack-charmers:mainfrom
quanchobi:jacob/fix-ci
Nov 18, 2026
Merged

brianphaley merged 1 commit into
openstack-charmers:mainfrom
quanchobi:jacob/fix-ci

Conversation

@quanchobi

@quanchobi quanchobi commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

fix(ci): pin to noble for python-apt

test-requirements.txt declares python-apt be built from Felipe's
launchpad fork, which build with C++11. apt install libapt-pkg-dev
grabs the resolute source, which build using C++17 features:

/usr/include/apt-pkg/pkgcache.h:218:24: error: ‘std::string_view’ has not
been declared
note: ‘std::string_view’ is only available from C++17 onwards
/usr/include/apt-pkg/macros.h:113:41: error: expected constructor,
destructor, or type conversion before ‘;’ token
...
Failed to build python-apt

Pins the workflows to run on ubuntu-24.04 to allow python-apt to compile
cleanly.

Signed-off-by: Jacob Hanks jacob.hanks@canonical.com

`test-requirements.txt` declares `python-apt` be built from Felipe's
launchpad fork, which build with C++11. `apt install libapt-pkg-dev`
grabs the resolute source, which build using C++17 features:

```
/usr/include/apt-pkg/pkgcache.h:218:24: error: ‘std::string_view’ has not
been declared
note: ‘std::string_view’ is only available from C++17 onwards
/usr/include/apt-pkg/macros.h:113:41: error: expected constructor,
destructor, or type conversion before ‘;’ token
...
Failed to build python-apt
```

Pins the workflows to run on ubuntu-24.04 to allow python-apt to compile
cleanly.

Signed-off-by: Jacob Hanks <jacob.hanks@canonical.com>

@nicolasbock-canonical nicolasbock-canonical left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@brianphaley
brianphaley merged commit dcf6c35 into openstack-charmers:main Nov 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants