Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further improvements to CI test pipeline #3682

Merged
merged 16 commits into from
Jul 16, 2024
Merged

Further improvements to CI test pipeline #3682

merged 16 commits into from
Jul 16, 2024

Conversation

busma13
Copy link
Contributor

@busma13 busma13 commented Jul 12, 2024

This PR makes the following changes:

  • Run verify-build and cache-docker-images jobs in parallel in test.yml workflow. E2e tests now await both.
  • Remove node 20 from e2e k8s jobs matrices
  • Move saveAndZip function from images to scripts
  • Add JSDoc style comments to functions
  • Add tests for images command and loadOrPullServiceImages function
  • Load kind image at proper time and load service images directly into kind correctly.
  • Change error handling on kindLoadImages so errors aren't swallowed.

@busma13 busma13 marked this pull request as ready for review July 16, 2024 17:35
@busma13 busma13 requested review from godber and sotojn July 16, 2024 17:35
subprocess = await execa.command(`gunzip -d ${filePath}`);
signale.info(`${subprocess.command}: successful`);
subprocess = await execa.command(`kind load --name ${this.clusterName} image-archive ${tarPath}`);
fs.rmSync(tarPath);
Copy link
Member

Choose a reason for hiding this comment

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

Was the one step process not working? Is that why you're going to this two step process?

Copy link
Member

Choose a reason for hiding this comment

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

Oh,

subprocess = await execa.command(`kind --name ${this.clusterName} load image-archive <(gunzip -c ${filePath})`);

Doesn't have the shell=true.

@godber godber merged commit 060b336 into master Jul 16, 2024
62 checks passed
@godber godber deleted the ci-improvements branch July 16, 2024 22:25
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.

2 participants