Skip to content

Continuous integration for FreeBSD#3031

Closed
pkonkol wants to merge 4 commits intofwupd:masterfrom
3mdeb:wip_bsd_ci
Closed

Continuous integration for FreeBSD#3031
pkonkol wants to merge 4 commits intofwupd:masterfrom
3mdeb:wip_bsd_ci

Conversation

@pkonkol
Copy link
Copy Markdown

@pkonkol pkonkol commented Mar 15, 2021

Type of pull request:

pkg install -y libtasn1
pkg upgrade -y libtasn1
cd /usr
git clone https://github.com/3mdeb/freebsd-ports.git --depth 1 -b fwupd-port ports
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few comments I notice about this:

  1. It seems like sysutils/fwupd/files/patch-libfwupd_meson.build should be submitted to apply upstream. The other ones too for #ifdef should each be reviewed too.
  2. DISTVERSION I doubt you want to hardcode. For the purpose of CI you should probably be passing this in as an environment variable or with sed or something.
  3. Overall I think it would be more flexible if we could keep an "upstream" copy of this BSD Makefile in the fwupd tree and you regularly sync it with the downstream tree. Otherwise we may end up with a situation that we break the BSD build by hard bumping some dep but not being able to get the downstream BSD Makefile updated. If we can keep it (or a template of it) upstream then we can just submit the changes to make sure CI keeps working for BSD..

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

  1. @Asiderr was the patch finally merged into fwupd/fwupd? By my understanding, the patches were for development purposes and now should be upstreamed.
  2. I will update that to use current tag as DISTVERSION
  3. My idea was that the CI would use the official freebsd-ports set to specific release (eg. 2020Q4) which would be updated manually. @Asiderr is working on upstreaming fwupd Makefile to freebsd/freebsd-ports and AFAIK it should be done soon.

Comment on lines +4 to +6
branches: [ master, 1_4_X, wip_bsd_ci ]
pull_request:
branches: [ master, 1_4_X ]
branches: [ master, 1_4_X, wip_bsd_ci ]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

obviously this is for POC, and after you've got it working this goes away and we only do it on master.

run: ./contrib/ci/generate_dependencies.py | sudo xargs apt install -y
- name: Check ABI
run: ./contrib/ci/check-abi $(git describe --abbrev=0 --tags) $(git rev-parse HEAD)
# abi:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

also, obviously we wouldn't turn off other Github actions jobs.

@hughsie
Copy link
Copy Markdown
Member

hughsie commented Apr 12, 2021

@pkonkol is this somethingyou still want upstream? There's quite some work to do :)

@pkonkol
Copy link
Copy Markdown
Author

pkonkol commented Apr 15, 2021

@hughsie Yes. It's still work in progress, not yet ready for upstreaming but I will update that. This PR is directly related to @Asiderr previous work on moving fwupd to BSD systems.

pkg install -y libtasn1
pkg upgrade -y libtasn1
cd /usr
git clone https://github.com/3mdeb/freebsd-ports.git --depth 1 -b fwupd-port ports
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@superm1 @hughsie @SergiiDmytruk We should push this forward in the near future. More and more FreeBSD-related changes are coming to fwupd, so a proper CI would be really useful. The upstream of the fwupd port will take some more time, so at the start we should base CI on the freebsd-ports fork, which will contain the fwupd package.
The FreeBSD related patches are already merged in the fwupd, so this PR needs significant changes. I will address this in the coming days.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Asiderr can you create a wip/freebsd branch on the upstream fwupd repo please, and then we can all just commit fixes on before we squash everything up for commit. If you just add the freesbd CI job there we can see what's left to upstream.

@Asiderr Asiderr mentioned this pull request May 20, 2021
4 tasks
@Asiderr
Copy link
Copy Markdown
Collaborator

Asiderr commented May 20, 2021

@superm1 @hughsie Moved to #3274

@Asiderr Asiderr closed this May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants