1
0
mirror of https://github.com/coreos/ignition.git synced 2026-02-07 03:47:55 +01:00
Commit Graph

44 Commits

Author SHA1 Message Date
CoreOS Bot
d6716b8cb5 Sync repo templates ⚙
Sync with coreos/repo-templates@feda6e6e1f.
2025-09-08 22:51:20 +00:00
dependabot[bot]
763eada7a3 build(deps): bump actions/setup-go from 5 to 6
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 12:31:48 +00:00
dependabot[bot]
8c70e77430 build(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 19:48:33 +00:00
CoreOS Bot
c03548e250 Sync repo templates ⚙
Sync with coreos/repo-templates@fa7c939275.
2025-07-14 18:45:41 +00:00
Tiago Bueno
93ff3d3d9d Fix TMT workflow to respect use_built_from_src
closes #2084

Signed-off-by: Tiago Bueno <tiago.bueno@gmail.com>
2025-05-22 11:31:00 -03:00
Tiago Bueno
e4b62af541 Add initial tmt test and CI workflow
This commit introduces a new TMT tests and a GitHub Actions workflow to
run it.

TMT (Test Management Tool) is a tool for managing and executing tests
in a structured and efficient manner. It allows users to define test
plans, organize test cases, and execute them in a consistent manner. TMT is
particularly useful for testing software projects, as it provides a
framework for managing the entire testing process, from planning to
execution and reporting.

The workflow is set up to run on every push to the main branch and on
pull requests, providing continuous integration for the project.

The core test added is designed to verify the basic functionality of
the application using TMT, ensuring that it can successfully execute a
simple test case.

The smoke plan is defined in the `tests/tmt/plans/smoke.fmf` file and
is configure to run all tests with smoke tag.

The `tests/tmt/plans/main.fmf` file is the main plan that includes
common configurations and settings for the plans. Currently, it prepare
the test environment.

The workflow is defined in the `.github/workflows/tmt-tests.yml` file
and includes steps to set up the environment, install dependencies, and
run tests. It is allowed to execute on pull requests, pushes to the
main branch, and on demand. By default all tests are executed, but it
can be executed on demand with a TMT plan filter. As part of the
workflow, TMT will be executed inside a container.

JIRA: https://issues.redhat.com/browse/COS-2284

Signed-off-by: Tiago Bueno <tiago.bueno@gmail.com>
2025-05-16 19:31:50 -03:00
CoreOS Bot
7010763198 Sync repo templates ⚙
Sync with coreos/repo-templates@383da18150.
2025-03-26 20:14:52 +00:00
CoreOS Bot
fba1c4ee75 Sync repo templates ⚙
Sync with coreos/repo-templates@b2512a40d1.
2024-11-25 16:35:14 +00:00
CoreOS Bot
ae7f91681e Sync repo templates ⚙
Sync with coreos/repo-templates@9066203af1.
2024-11-18 14:29:52 +00:00
CoreOS Bot
2f23c0bd75 Sync repo templates ⚙
Sync with coreos/repo-templates@91391bc863.
2024-10-11 14:59:52 +00:00
CoreOS Bot
b661f5bd57 Sync repo templates ⚙
Sync with coreos/repo-templates@7e30893b88.
2024-01-03 21:12:05 +00:00
CoreOS Bot
4449a619fa Sync repo templates ⚙
Sync with coreos/repo-templates@90904e8f37.
2023-11-01 19:42:00 +00:00
CoreOS Bot
fe05edeac0 Sync repo templates ⚙
Sync with coreos/repo-templates@5421136952.
2023-05-31 02:14:38 +00:00
CoreOS Bot
0fd0b51620 Sync repo templates ⚙
Sync with coreos/repo-templates@c3705ccc33.
2023-05-30 19:36:52 +00:00
Benjamin Gilbert
1989f24491 Initial support for automatic spec doc generation
Move all field descriptions to a single YAML file and generate version-
specific spec docs from that.  Use reflection to walk the config
structs for each version and omit fields which don't exist in a
particular spec version.

We don't do this at a JSON Schema level because e.g. Resource is
referenced in multiple places with different semantics and different
doc strings.

For now, keep the code out of the external API.  The plan is to add
functionality to support Butane docs generation, at which point
internal/doc/generate will move to config/doc.

Update the stabilization checklist to remove manual tweaking of
spec docs.
2023-03-27 19:26:00 -04:00
Benjamin Gilbert
6de727aa86 workflows: switch to setup-go v4
Cache dependencies and build outputs by default.
2023-03-24 19:06:56 -04:00
Benjamin Gilbert
47c4aa1cde workflows: add job to check whether generated schema is current
We don't want to add this directly to ./test because that would create a
schematyper dependency.

Based on the Rust Docs job from coreos-installer.
2023-03-24 15:50:37 -04:00
CoreOS Bot
bbd1e1648e Sync repo templates ⚙
Sync with coreos/repo-templates@71058122bf.
2023-03-06 17:39:54 +00:00
Benjamin Gilbert
97a9c85c1a workflows: add Go 1.20 2023-02-08 13:39:50 -05:00
Benjamin Gilbert
4a42f0a211 workflows: update golangci-lint 2023-02-08 13:39:36 -05:00
Benjamin Gilbert
39757316eb Bump minimum Go version to 1.18
Go 1.17 is EOL.
2023-01-30 19:59:06 -05:00
CoreOS Bot
9db439ea19 Sync repo templates ⚙
Sync with coreos/repo-templates@30f9d7fc37.
2022-11-08 03:21:34 +00:00
CoreOS Bot
57e4818ba7 Sync repo templates ⚙
Sync with coreos/repo-templates@35df04960d.
2022-11-05 17:09:36 +00:00
Benjamin Gilbert
0a55617855 workflows: add Go 1.19 2022-08-09 19:04:31 -04:00
Benjamin Gilbert
08e6109516 workflows: update action versions 2022-08-09 19:04:31 -04:00
CoreOS Bot
c3430427a0 Sync repo templates ⚙
Sync with coreos/repo-templates@3fdce66bcc.
2022-08-04 17:03:06 +00:00
CoreOS Bot
b3a4602307 Sync repo templates ⚙
Sync with coreos/repo-templates@a5a8fe977d.
2022-08-02 15:08:22 +00:00
Benjamin Gilbert
f7ed8f6a77 Bump minimum Go version to 1.17
Go 1.15 and 1.16 are EOL.
2022-07-20 12:24:20 -04:00
Benjamin Gilbert
d202795a86 workflows: include Git tag in container --version
Fetch Git tags so the output of --version for the ignition-validate
container isn't just a commit hash.
2022-03-23 07:01:56 -04:00
Benjamin Gilbert
6e5de2dcc2 workflows: build and push ignition-validate container from GH Actions
Quay builds are amd64-only and haven't been especially reliable.  Use
GitHub Actions to build both amd64 and arm64 containers for the main
branch and for tags, and push them to Quay.  Continue building but not
pushing containers on PR.  Requires the QUAY_AUTH repo secret to be set
to a Docker credential.

Ideally we would cross-build the arm64 container by having the Dockerfile
specify FROM --platform=$BUILDPLATFORM for the builder container and set
GOARCH=$TARGETARCH.  However, Buildah < 1.24.1 doesn't support --platform
in FROM.  Build in emulation for now, and skip arm64 in PRs to speed up CI.

Fixes https://github.com/coreos/ignition/issues/1321.
2022-03-21 13:29:00 -04:00
Benjamin Gilbert
915ec39462 Merge pull request #1330 from miabbott/1.18
ci: add testing with Go 1.18
2022-03-21 13:28:41 -04:00
Micah Abbott
32e64da53d ci: add testing with Go 1.18
Update `golangci-lint` to version v1.45.0 which has support for go 1.18
2022-03-18 12:13:53 -04:00
Benjamin Gilbert
a489464397 workflows: apt-get update before installing packages
Old package versions can be removed from the mirror, which could cause
job failures.
2022-03-16 16:33:09 -04:00
Benjamin Gilbert
6cbd27ba51 Merge pull request #1312 from bgilbert/os
workflows: build and test ignition-validate on macOS and Windows
2022-01-28 14:03:16 -05:00
Benjamin Gilbert
8abf8b29a0 workflows: move container build to dedicated job
The container build doesn't care about the selected version of Go in the
host, so there's no point in running it three times.  Move the container
build to a separate job, matching Butane CI.

Also switch from docker to podman.
2022-01-28 04:09:50 -05:00
Benjamin Gilbert
be5e9948d1 workflows: build and test ignition-validate on macOS and Windows
We ship ignition-validate for macOS and Windows, so let's test that in
CI.  Ignition contains a lot of Linux-specific code, so it's not practical
to run through the entire ./build and ./test flow.  Instead, create a
parallel job that builds ignition-validate and runs only those tests that
are pertinent to it.
2022-01-28 04:05:33 -05:00
Benjamin Gilbert
91641ce700 workflows: bump Go and golangci-lint 2021-08-31 17:43:20 -04:00
Benjamin Gilbert
cb35213f53 workflows: limit permissions to reading repo contents 2021-07-28 16:27:07 -04:00
Benjamin Gilbert
b785a266bb workflows: bump linter version 2021-07-28 16:27:07 -04:00
Benjamin Gilbert
3202a27458 Drop EOL Go versions 2021-07-28 16:16:06 -04:00
Benjamin Gilbert
9fad023907 Merge pull request #1202 from bgilbert/rename
*: rename master branch to main
2021-05-11 11:56:15 -04:00
Benjamin Gilbert
a108792948 workflows: test on Go 1.16 2021-05-05 12:38:56 -04:00
Benjamin Gilbert
3c23a6617e *: rename master branch to main 2021-05-05 02:10:56 -04:00
Sohan Kunkerkar
a43ee36f41 ci: move Travis jobs to GitHub actions 2020-12-21 17:12:58 -05:00