Skip to content

Commit 3627484

Browse files
authored
Merge branch 'main' into dependabot/cargo/lazy_static-1.5.0
2 parents 092dbbe + 50be037 commit 3627484

45 files changed

Lines changed: 611 additions & 557 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ const validateBodyMaxLengthIgnoringDeps = async (parsedCommit) => {
88
&& body != null
99
&& body.includes('Updates the requirements on');
1010

11-
const bodyMaxLineLength = 100;
11+
const bodyMaxLineLength = 1000;
1212

1313
return [
1414
isDepsCommit || !body || maxLineLength(body, bodyMaxLineLength),
1515
`body's lines must not be longer than ${bodyMaxLineLength}`,
1616
]
1717
}
1818

19-
module.exports = {
19+
export default {
2020
extends: ['@commitlint/config-conventional'],
2121
plugins: ['commitlint-plugin-function-rules'],
2222
rules: {

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ updates:
77
commit-message:
88
prefix: "chore: "
99
reviewers:
10-
- "fedora-iot/fdo-rs-maintainers"
10+
- "fdo-rs/fdo-team"
1111
- package-ecosystem: "github-actions"
1212
directory: "/"
1313
schedule:
1414
interval: "daily"
1515
commit-message:
1616
prefix: "chore: "
1717
reviewers:
18-
- "fedora-iot/fdo-rs-maintainers"
18+
- "fdo-rs/fdo-team"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
env:
164164
NODE_PATH: ${{ github.workspace }}/node_modules
165165
with:
166-
configFile: .github.qkg1.topmitlint.config.js
166+
configFile: .github.qkg1.topmitlint.config.mjs
167167
failOnWarnings: true
168168

169169
manpages:

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,12 @@
1111
/docs/_site/
1212
/docs/.jekyll-cache/
1313
/docs/Gemfile.lock
14+
# RPM build directory
1415
/rpmbuild
16+
17+
# Vendor directory
18+
/vendor
19+
20+
# Source and vendor tar files
21+
fido-device-onboard-rs-*.tar.gz
22+
fido-device-onboard-rs-*-vendor-patched.tar.xz

.packit.yaml

Lines changed: 85 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
specfile_path: fido-device-onboard.spec
55

66
files_to_sync:
7-
- fido-device-onboard.spec
8-
- .packit.yaml
7+
- src:
8+
- ".packit.yaml"
9+
- "fido-device-onboard.spec"
10+
- "fido-device-onboard-rs-*-vendor-patched.tar.xz"
11+
- "patches/0001-use-released-aws-nitro-enclaves-cose-version.patch"
12+
dest: .
913

1014
upstream_package_name: fido-device-onboard
1115
downstream_package_name: fido-device-onboard
@@ -14,66 +18,86 @@ upstream_tag_template: v{version}
1418
copy_upstream_release_description: true
1519

1620
srpm_build_deps:
17-
- cargo
18-
- openssl-devel
21+
- cargo
22+
- openssl-devel
23+
24+
packages:
25+
fido-device-onboard-fedora:
26+
downstream_package_name: fido-device-onboard
27+
upstream_package_name: fido-device-onboard
28+
fido-device-onboard-centos:
29+
downstream_package_name: fido-device-onboard
30+
upstream_package_name: fido-device-onboard
31+
pkg_tool: centpkg
1932

2033
actions:
21-
create-archive:
22-
- bash -c "cp ./patches/0001-Revert-chore-use-git-fork-for-aws-nitro-enclaves-cos.patch ."
23-
- bash -c "git archive --prefix=fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}/ --format=tar HEAD > fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar"
24-
- bash -c "./make-vendored-tarfile.sh ${PACKIT_PROJECT_VERSION}"
25-
- bash -c "tar -xvf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar"
26-
- bash -c "ls -1 ./fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar"
34+
# for the propose-downstream CLI command
35+
pre-sync:
36+
- bash -c "make vendor-tarball VERSION=${PACKIT_PROJECT_VERSION}"
37+
# for the srpm and copr builds
38+
create-archive:
39+
- bash -c "make packit-create-archive VERSION=${PACKIT_PROJECT_VERSION}"
2740

2841
jobs:
29-
- &fdo_copr_build
30-
job: copr_build
31-
trigger: pull_request
32-
targets:
33-
centos-stream-9: {}
34-
fedora-latest-stable: {}
35-
fedora-latest: {}
36-
fedora-rawhide: {}
37-
# fedora-eln:
38-
# additional_repos:
39-
# - https://kojipkgs.fedoraproject.org/repos/eln-build/latest/$basearch/
40-
41-
- job: tests
42-
trigger: pull_request
43-
identifier: onboarding
44-
fmf_path: test/fmf
45-
tmt_plan: plans/onboarding
46-
targets:
47-
centos-stream-9: {}
48-
fedora-latest-stable: {}
49-
fedora-latest: {}
50-
fedora-rawhide: {}
51-
# fedora-eln: {}
52-
53-
- job: sync_from_downstream
54-
trigger: commit
55-
56-
- job: propose_downstream
57-
trigger: release
58-
dist_git_branches:
59-
- fedora-development
60-
- fedora-latest-stable
61-
62-
- job: koji_build
63-
trigger: commit
64-
dist_git_branches:
65-
- fedora-development
66-
- fedora-latest-stable
67-
68-
- job: bodhi_update
69-
trigger: commit
70-
dist_git_branches:
71-
- fedora-development
72-
- fedora-latest-stable
73-
74-
- <<: *fdo_copr_build
75-
trigger: commit
76-
branch: main
77-
owner: "@fedora-iot" # copr repo namespace
78-
project: fedora-iot # copr repo name so you can consume the builds
79-
...
42+
43+
# Fedora jobs
44+
45+
- &fdo_copr_build_fedora
46+
job: copr_build
47+
packages: [fido-device-onboard-fedora]
48+
trigger: pull_request
49+
targets: ["fedora-latest-stable", "fedora-latest", "fedora-rawhide"]
50+
51+
- <<: *fdo_copr_build_fedora
52+
trigger: commit
53+
branch: main
54+
owner: "@fedora-iot"
55+
project: fedora-iot
56+
57+
- job: tests
58+
trigger: pull_request
59+
identifier: onboarding-fedora
60+
fmf_path: test/fmf
61+
tmt_plan: plans/onboarding
62+
packages: [fido-device-onboard-fedora]
63+
targets: ["fedora-latest-stable", "fedora-latest", "fedora-rawhide"]
64+
65+
- job: sync_from_downstream
66+
trigger: commit
67+
68+
- job: propose_downstream
69+
trigger: release
70+
packages: [fido-device-onboard-fedora]
71+
dist_git_branches: ["fedora-development", "fedora-latest-stable"]
72+
73+
- job: koji_build
74+
trigger: commit
75+
allowed_pr_authors: [all_committers]
76+
dist_git_branches: ["fedora-development", "fedora-latest-stable"]
77+
78+
- job: bodhi_update
79+
trigger: commit
80+
allowed_builders: [all_committers]
81+
dist_git_branches: ["fedora-development", "fedora-latest-stable"]
82+
83+
# CentOS jobs
84+
85+
- &fdo_copr_build_centos
86+
job: copr_build
87+
packages: [fido-device-onboard-centos]
88+
trigger: pull_request
89+
targets: ["centos-stream-9", "centos-stream-10"]
90+
91+
- <<: *fdo_copr_build_centos
92+
trigger: commit
93+
branch: main
94+
owner: "@fedora-iot"
95+
project: fedora-iot
96+
97+
- job: tests
98+
trigger: pull_request
99+
identifier: onboarding-centos
100+
fmf_path: test/fmf
101+
tmt_plan: plans/onboarding
102+
packages: [fido-device-onboard-centos]
103+
targets: ["centos-stream-9", "centos-stream-10"]

CONTRIBUTING.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If you want to suggest any changes to the process, please feel free to open a Pu
99

1010
### Developing / building
1111

12-
There are a number of ways in which you can set up development environments for working on FDO (FIDO Device Onboarding).
12+
There are a number of ways in which you can set up development environments for working on FDO (FIDO Device Onboarding).
1313

1414
#### On Fedora host system
1515

@@ -19,7 +19,7 @@ Previous Fedora releases *might* need a different set of dependencies than the o
1919
In order to make a test build of this crate, when using Fedora, you can run:
2020

2121
``` bash
22-
sudo yum install -y cargo rust rust-src git-core openssl-devel clippy rustfmt golang tpm2-tss-devel clevis clevis-luks cryptsetup cryptsetup-devel clang-devel cracklib-dicts
22+
sudo yum install -y cargo rust rust-src git-core openssl-devel clippy rustfmt golang tpm2-tss-devel clevis clevis-luks cryptsetup cryptsetup-devel clang-devel cracklib-dicts sqlite-devel libpq-devel
2323
git clone https://github.com/fedora-iot/fido-device-onboard-rs.git
2424
cd fido-device-onboard-rs
2525
cargo build --release
@@ -32,26 +32,26 @@ After making changes, you can use `cargo test` to run the test suite, `cargo fmt
3232

3333
If your host operating system is other than Fedora, following two ways are suggested for devlopement setup.
3434
1.VSCODE remote containers
35-
2.Toolbox
35+
2.Toolbox
3636

3737
##### 1. VSCODE remote container setup:
3838

3939
Pre-requisites:
40-
- Install VSCODE for your host operating system.
40+
- Install VSCODE for your host operating system.
4141
- Install ‘Remote-containers’ extension OR you can also install the ‘Remote Development’ extension which contains three extensions useful for remote container development.
4242
- Download and install Docker Desktop for your operating system. You need to keep running docker desktop to use VSCODE container feature. Check docker status by running ‘docker info’ on command line.
4343

4444
Setup:
4545
- Open VSCODE and enter ‘Remote-Containers: Clone Repository in Container Volume...’.
46-
- Select ‘Github’ then enter the repository name and finally the branch name to be cloned. Make sure you clone repo in remote-containers option and not ‘Git clone repository’ which will clone locally and have your host system’ filesystem.
46+
- Select ‘Github’ then enter the repository name and finally the branch name to be cloned. Make sure you clone repo in remote-containers option and not ‘Git clone repository’ which will clone locally and have your host system’ filesystem.
4747
Repo name : fedora-iot/fido-device-onboard-rs or your forked fido repo name
4848
Branch: main
4949
- Once the repo is cloned ,it can be accessed via terminal/cmd line in the VSCODE debug console. (It might take a bit longer to download everything at first).
5050
- Inside terminal, /workspaces/fido-device-onboard-rs (default directory) run following commands to build and run test suite after successful build:
5151
``` bash
5252
cargo build
53-
cargo test
54-
```
53+
cargo test
54+
```
5555

5656
##### 2. ToolBox
5757

@@ -67,9 +67,9 @@ You can find the name of the container using : 'toolbox list' command.
6767
Once you enter tool , download required packages for fdo:
6868

6969
``` bash
70-
sudo yum install -y cargo rust rust-src git-core openssl-devel clippy rustfmt golang tpm2-tss-devel clevis clevis-luks cryptsetup cryptsetup-devel clang-devel
70+
sudo yum install -y cargo rust rust-src git-core openssl-devel clippy rustfmt golang tpm2-tss-devel clevis clevis-luks cryptsetup cryptsetup-devel clang-devel cracklib-dicts sqlite-devel libpq-devel
7171
git clone git@github.com:fedora-iot/fido-device-onboard-rs.git
72-
cd fido-device-onboard-rs
72+
cd fido-device-onboard-rs
7373
cargo build
7474
cargo test
7575
```

0 commit comments

Comments
 (0)