Skip to content

ci: fix pipelines on first run with apps-externa submodule change #228

Merged
printminion-co merged 3 commits intorc/ncw-4from
mk/dev/fix_external_app_rebuild_pipeline
Feb 10, 2026
Merged

ci: fix pipelines on first run with apps-externa submodule change #228
printminion-co merged 3 commits intorc/ncw-4from
mk/dev/fix_external_app_rebuild_pipeline

Conversation

@printminion-co
Copy link

@printminion-co printminion-co commented Feb 6, 2026

Summary

This pull request refactors and simplifies the app restoration process in the build-artifact.yml GitHub Actions workflow. The main improvements include consolidating the app restoration logic into a single step, switching from artifact downloads to direct JFrog downloads for newly built apps, and expanding the conditions for uploading artifacts to Artifactory. These changes streamline the workflow, reduce complexity, and improve reliability.

App restoration process simplification:

  • Consolidated the restoration of cached and newly built apps into a single script step, replacing multiple steps and artifact downloads with direct JFrog downloads for newly built apps. This removes the need for reorganizing downloaded artifacts and verifying their structure, making the process more efficient. [1] [2]
  • The restoration logic now checks for both cached apps and newly built apps, downloading and extracting them directly from JFrog based on the matrix output.

Workflow condition improvements:

  • Expanded the condition for uploading artifacts to Artifactory to include manual workflow_dispatch events, in addition to PRs and branch pushes. This allows for more flexible triggering of uploads.

Minor workflow adjustments:

  • Removed the conditional setup of JFrog CLI, making it unconditional to ensure it's available for all restoration scenarios.

Test

Screenshot from 2026-02-10 11-03-30

Checklist

@printminion-co printminion-co changed the base branch from ionos-dev to rc/ncw-4 February 9, 2026 13:05
@printminion-co printminion-co added this to the ncw-4 milestone Feb 9, 2026
@printminion-co printminion-co self-assigned this Feb 9, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes CI cache restoration so cached app tarballs don’t extract into pre-existing git submodule directories, preventing misplaced files during the first pipeline run.

Changes:

  • Remove existing $APP_PATH directory before extracting/restoring cached app artifacts from JFrog cache.
  • Remove existing $APP_PATH directory before restoring cached app artifacts from GitHub cache.

@printminion-co
Copy link
Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link

Copilot AI commented Feb 9, 2026

@printminion-co I've opened a new pull request, #230, to work on those changes. Once the pull request is ready, I'll request review from you.

…he and JFrog

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
@printminion-co printminion-co force-pushed the mk/dev/fix_external_app_rebuild_pipeline branch from 10310f7 to bc7ad3f Compare February 9, 2026 14:25
@printminion-co printminion-co changed the title fix(ci): remove existing app directories before cache restoration ci: fix pipelines on first run with apps-externa submodule change Feb 10, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

.github/workflows/build-artifact.yml:1

  • Making JFrog CLI setup unconditional can break workflow runs where secrets.* are unavailable (notably pull_request runs from forks), because the action and subsequent jf rt ping will likely fail with empty credentials. Consider restoring a conditional guard (e.g., only run when has_apps_to_restore or has_apps_to_build is true), and/or gating on events where secrets are guaranteed to be present.
name: Build Nextcloud Workspace artifact (Optimized)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Misha M.-Kupriyanov <145785698+printminion-co@users.noreply.github.com>
@printminion-co printminion-co marked this pull request as ready for review February 10, 2026 11:00
@printminion-co printminion-co merged commit ad69668 into rc/ncw-4 Feb 10, 2026
11 of 13 checks passed
@printminion-co printminion-co deleted the mk/dev/fix_external_app_rebuild_pipeline branch February 10, 2026 11:01
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