Skip to content

feat(ci): dynamic SUSFS version extraction#38

Draft
luigimak wants to merge 2 commits intofatalcoder524:mainfrom
luigimak:main_susfsv
Draft

feat(ci): dynamic SUSFS version extraction#38
luigimak wants to merge 2 commits intofatalcoder524:mainfrom
luigimak:main_susfsv

Conversation

@luigimak
Copy link
Copy Markdown
Contributor

@luigimak luigimak commented Apr 4, 2026

  • Migrate GitLab SUSFS API calls from REST to GraphQL
  • Fetch SUSFS_VERSION from susfs.h inside the existing hash resolution loop using the same ref
  • Retry logic (3 attempts, 5s delay) covers both hash and version extraction in the same loop
  • Warn if version cannot be extracted after retries
  • Expose susfs_base_version as output from set-op-model job
  • Set susfs_base_version=unknown when SUSFS is disabled for the device

Source: WildKernels/OnePlus_KernelSU_SUSFS#166

@luigimak luigimak marked this pull request as draft April 5, 2026 10:01
- Extract SUSFS_BASE_VERSION at runtime from susfs4ksu GitLab repo via raw file API (kernel_patches/include/linux/susfs.h), fetched inside the existing hash resolution loop
- Retry version fetch up to 3 times with 5s delay, consistent with hash resolution retry strategy already in place
- Warn if version cannot be extracted after retries
- Expose susfs_base_version as output from set-op-model job
- Set susfs_base_version=unknown when SUSFS is disabled for the device

Source: WildKernels/OnePlus_KernelSU_SUSFS#166
- Replace two separate REST calls (commit hash + file content) with a single GraphQL query fetching both SHA and susfs.h blob in one call
- Replace PROJECT_ID (REST URL-encoded) with GITLAB_PROJECT_PATH (GraphQL full path)
- Consistent with main repo GraphQL approach
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