Skip to content

cbsbuild run local#33

Open
uw-sc wants to merge 6 commits into
clyso:mainfrom
uw-sc:wip-cbsbuild-run-local
Open

cbsbuild run local#33
uw-sc wants to merge 6 commits into
clyso:mainfrom
uw-sc:wip-cbsbuild-run-local

Conversation

@uw-sc

@uw-sc uw-sc commented Feb 23, 2026

Copy link
Copy Markdown
Collaborator
  • what:
    bypass the s3 upload and use the local filesystem as a repository instead.

  • why:
    to support test cases and local builds intended solely for testing purposes.

@uw-sc
uw-sc force-pushed the wip-cbsbuild-run-local branch 14 times, most recently from c0d732e to 2c4535f Compare March 9, 2026 08:07
@uw-sc
uw-sc force-pushed the wip-cbsbuild-run-local branch 2 times, most recently from e176984 to 6e1ee5b Compare March 16, 2026 09:22
@uw-sc
uw-sc requested a review from jecluis March 16, 2026 11:06
@uw-sc

uw-sc commented Mar 18, 2026

Copy link
Copy Markdown
Collaborator Author

i will mark as draft need ot check integration tests

@uw-sc
uw-sc marked this pull request as draft March 18, 2026 13:46
@uw-sc
uw-sc force-pushed the wip-cbsbuild-run-local branch 2 times, most recently from 33d9ada to 1a8a63d Compare March 18, 2026 15:27
@uw-sc
uw-sc force-pushed the wip-cbsbuild-run-local branch 2 times, most recently from 4221c11 to 187b156 Compare April 1, 2026 07:46
@uw-sc
uw-sc marked this pull request as ready for review April 1, 2026 07:47
@uw-sc
uw-sc force-pushed the wip-cbsbuild-run-local branch from 187b156 to 06f8ce7 Compare April 27, 2026 08:22
uw-sc added 5 commits May 21, 2026 12:00
* what:
  if the return code of the rpm process is 2, check if the failure
  reason is that the package is already installed.

* why:
  when reusing a container, the package might already be present.
  this occurs when a build runner job must be debugged.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
* what:
  add option --tls-verify to subcommands build and runner build.
  pass the tls-verify flag to skopeo when querying the registry.
  check if the return value from skopeo inspect equals
  "not found" (exit code 2).

* why:
  if the image is pushed to a local container registry with a
  self-signed certificate, skopeo must not verify the certificate
  to avoid errors. current versions of skopeo (1.20.0) return exit
  code 2 if an image is not found.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
* what:
  pass the tls-verify flag to buildah when pushing to the registry.

* why:
  if the image is pushed to a local container registry with a
  self-signed certificate, buildah must skip certificate verification
  to avoid errors

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
* what
  pass base_url (schema + authority) and gpg signing options to the build
  script.
  replace base_url in container.yaml with the local url or the s3 url.
  mount the folders containing the rpms using buildah when building
  locally.

* why
  to build an image for testing purposes without deploying rpms to the
  production environment, it is necessary to mock the remote storage.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
* what:
  add a --dev flag, which can also be set via an environment variable,
  to allow http git urls.

* why:
  during development and testing, the bootstrapped gitea server does not
  have a trusted certificate, making http necessary.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
* what:
  add an integration test structure to the root project.
  add a resources folder inside the test directory.
  add an integration test for the cbscore build.

* why:
  integration tests should be kept as global as possible.
  the test ensures the build process works correctly for local builds.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
@uw-sc
uw-sc force-pushed the wip-cbsbuild-run-local branch from 90c1573 to 9296db3 Compare May 21, 2026 10:00
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.

1 participant