Skip to content

fix: Attempt to cut down start up time for downloaded files - #1616

Closed
dxh9845 wants to merge 1 commit into
firecow:masterfrom
dxh9845:dherzig/fix-include-parsing
Closed

fix: Attempt to cut down start up time for downloaded files#1616
dxh9845 wants to merge 1 commit into
firecow:masterfrom
dxh9845:dherzig/fix-include-parsing

Conversation

@dxh9845

@dxh9845 dxh9845 commented Jul 26, 2025

Copy link
Copy Markdown

In debugging the startup times for gitlab-ci-local, I noticed that remote includes were being downloaded everytime despite being already downloaded. Afaict this stops the downloads from happening, though I don't have confidence that the changes will work as expected.

@firecow

firecow commented Jul 28, 2025

Copy link
Copy Markdown
Owner

@dxh9845 Have you timed that these changes are actually faster than current version?

Also, jest and eslint jobs are failing.

Comment thread src/parser-includes.ts
// Check remotely only if the file does not exist locally
const remoteFileExists = await Utils.remoteFileExist(cwd, f, ref, domain, projectPath, gitData.remote.schema, gitData.remote.port);
if (!remoteFileExists) {
continue

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
continue
continue;

Comment thread src/parser-includes.ts

// Check remotely only if the file does not exist locally
const remoteFileExists = await Utils.remoteFileExist(cwd, f, ref, domain, projectPath, gitData.remote.schema, gitData.remote.port);
if (!remoteFileExists) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (!remoteFileExists) {
if (!remoteFileExists) {

@firecow

firecow commented Feb 17, 2026

Copy link
Copy Markdown
Owner

Feel free to reopen if you manage to provide some performance timings that shows an impact.

@firecow firecow closed this Feb 17, 2026
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