Skip to content

feat: new update-ui command#37

Merged
altaua merged 1 commit intomainfrom
mira/update-ui
Jun 19, 2023
Merged

feat: new update-ui command#37
altaua merged 1 commit intomainfrom
mira/update-ui

Conversation

@altaua
Copy link
Contributor

@altaua altaua commented Jun 19, 2023

This command updates substrate's UI tests, which is a routine step we have to perform during every rust toolchain upgrade.

This command updates substrate's UI tests, which is a routine step we
have to perform during every rust toolchain upgrade.
@altaua altaua added the enhancement New feature or request label Jun 19, 2023
@altaua altaua requested a review from a team as a code owner June 19, 2023 11:35
@altaua altaua self-assigned this Jun 19, 2023
@altaua altaua merged commit 1e8a2e9 into main Jun 19, 2023
@altaua altaua deleted the mira/update-ui branch June 19, 2023 11:42

# This script uses rustup to install the required rust version.
# Doing that in CI feels rather ugly, but sadly there's currently no mechanism
# in command-bot to use a different CI image for individual jobs, so this is

Choose a reason for hiding this comment

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

This sounds like a nice feature to have.

@mordamax currently we're using paritytech/ci-linux:production, as far as I understand.
But does anything stop us from allowing that to be configured in the command scripts?

Copy link
Collaborator

Choose a reason for hiding this comment

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

sorry may be i don't get this question
isn't setting tag in .cmd.json linux-docker-vm-c2 to something else lets to change the image?

Choose a reason for hiding this comment

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

I thought it changes the machine to execute the job on, not the image...

Copy link
Collaborator

@mordamax mordamax Jun 19, 2023

Choose a reason for hiding this comment

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

yea while i thought different machine would have different image
but yea, you're right, now i paid attention that we have this configured on the app level

process.env.GITLAB_JOB_IMAGE ??= "paritytech/ci-linux:production"

yea, technically abs possible to make it as part of .cmd.json, but would that be ok overall? i mean secure etc

cc @altaua @alvicsam

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that'd be useful, and no particular security concern. (For example, the CI image for normal CI jobs is configured in the .gitlab-ci.yml of the repo being tested; being able to configure it here in command-bot-scripts is no worse than that.)

Copy link
Collaborator

Choose a reason for hiding this comment

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

yea i can add it then to a .cmd.json config

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants