Skip to content

[Backend] feat(git): software-core::git -- Git feature to handle ADJ updates - #654

Merged
JavierRibaldelRio merged 17 commits into
new-backendfrom
backend/git
Oct 20, 2026
Merged

JavierRibaldelRio merged 17 commits into
new-backendfrom
backend/git

Conversation

@pminmic

@pminmic pminmic commented Oct 11, 2026

Copy link
Copy Markdown
  • Add ADJ repository management behind the git feature using gix.
  • Shallow-clone the requested branch and replace the local cache after a successful checkout.
  • Preserve the existing cache if cloning fails, with rollback protection during replacement.
  • Support offline startup using cached ADJ, returning an error when no local repository is available.
  • Return the checked-out commit hash and message.
  • Add helpers for opening repositories and inspecting cached remote branches.
  • Include tracing logs, Rustdoc documentation, and an README.
  • Add local-repository tests for branch selection, cache replacement, and failure handling.

Comment thread backend/crates/core/src/git/README.md Outdated
Comment thread backend/crates/core/src/git.rs
Comment thread backend/crates/core/src/git.rs Outdated
Comment thread backend/crates/core/src/lib.rs

@JavierRibaldelRio JavierRibaldelRio left a comment

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.

I have not read all I will do a full review (probably also today but in the evening)

Comment thread backend/crates/core/src/adj.rs Outdated
Comment thread backend/crates/core/src/adj.rs

@JavierRibaldelRio JavierRibaldelRio left a comment

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.

Be careful if you have branch=="" do not use any github feature, just look for local and then if avaiable try to obtain commit hash (if status is up to date)

Comment thread backend/crates/core/Cargo.toml Outdated
@JavierRibaldelRio JavierRibaldelRio added Backend ADJ Related to Avionics Description Json labels Oct 18, 2026
@JavierRibaldelRio JavierRibaldelRio added this to the Alpha v12.0.0 milestone Oct 18, 2026
@JavierRibaldelRio JavierRibaldelRio linked an issue Oct 18, 2026 that may be closed by this pull request

@GaziH GaziH left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great work!

@JavierRibaldelRio JavierRibaldelRio left a comment

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.

Modify readme.md adding the what happens if branch==""

@JavierRibaldelRio
JavierRibaldelRio merged commit 04f3f4b into new-backend Oct 20, 2026
2 checks passed
@JavierRibaldelRio
JavierRibaldelRio deleted the backend/git branch October 20, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ADJ Related to Avionics Description Json Backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git module

3 participants