Skip to content

refactor: unify build orchestration flows and fix runBuilds dry-run output - #126

Merged
ruocco-l merged 4 commits into
masterfrom
chore/refactor-local-testing
Aug 24, 2026
Merged

refactor: unify build orchestration flows and fix runBuilds dry-run output#126
ruocco-l merged 4 commits into
masterfrom
chore/refactor-local-testing

Conversation

@ruocco-l

Copy link
Copy Markdown
Contributor
  • Eliminated duplication caused by startActorBuild/startActorBuildFromLocal and runBuilds/runBuildsFromLocal
  • Fixed dryRun branch on build so now only returns BuildData (this can maybe be expanded by adding additional debug logs)
  • Replaced unnecessary ts-ignore inherited by old apify-client version

@metalwarrior665 metalwarrior665 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 think it is for the better but few small notes

Comment thread bin/build.ts Outdated
};

// Fixed version number used to build from local source files, since there is no real version to track.
export const ZIP_VERSION = '0.98';

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.

Suggested change
export const ZIP_VERSION = '0.98';
export const LOCAL_SOURCE_VERSION_NUM = '0.98';

Comment thread bin/build.ts

// Fixed version number used to build from local source files, since there is no real version to track.
export const ZIP_VERSION = '0.98';

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.

Since we are hoisting the version here, I would also move the 0.99 as TESTING_VERSION_NUM

Comment thread bin/build.ts Outdated
' same as the folder in the repository.',
);
}
startActorBuild = async ({

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.

There are so many similarly named functions which is really hard ot read, I would prefer to inline this and startActorBuildFromSourceFiles. It really just creates the version object and calls createVersionAndBuild. I think it would be cleaner that way.

@ruocco-l
ruocco-l merged commit 38e5c11 into master Aug 24, 2026
10 checks passed
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