Skip to content

Conversation

@olekoliinyk
Copy link
Contributor

@olekoliinyk olekoliinyk commented Dec 19, 2025

Problem

We have a race condition in scheduled github pipelines (which triggers gitlab pipelines).
In our trigger-gitlab-pipeline in gitlab_schedule.yml job we take triggered-ref from read_dotenv.yml file. It first checkouts the code to get this .env file. It should checkout the correct sha (recorded_sha from prepare-sha job) instead of the latest main.

Solution

  1. Expand read_dotenv.yml to checkout libtelio to recorded_sha
  2. If recorded_sha is not provided checkout to current branch

☑️ Definition of Done checklist

  • Commit history is clean (requirements)
  • README.md is updated
  • Functionality is covered by unit or integration tests

@asledzinskiy
Copy link
Contributor

+1

mathiaspeters
mathiaspeters previously approved these changes Dec 19, 2025
Copy link
Contributor

@mathiaspeters mathiaspeters left a comment

Choose a reason for hiding this comment

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

+1

@olekoliinyk olekoliinyk added this pull request to the merge queue Dec 19, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 19, 2025
…ded_sha_in_read_dotenv

[LLT-6924] Read .env for recorded git sha in scheduled runs
Merged via the queue into main with commit 602a423 Dec 19, 2025
58 checks passed
@olekoliinyk olekoliinyk deleted the LLT-6924_checkout_to_recorded_sha_in_read_dotenv branch December 19, 2025 14:56
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.

5 participants