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

Add additional jenkins artefact for e2e tests for keycard on desktop #12412

Closed
anastasiyaig opened this issue Oct 11, 2023 · 5 comments
Closed
Assignees
Milestone

Comments

@anastasiyaig
Copy link
Contributor

anastasiyaig commented Oct 11, 2023

Description

In order to test mocked keycard lib provided by @saledjenic on desktop app , we need to have a special CI build that will include TEST_ENVIRONMENT variable set before we create a build, so the lib will be accessible using CI artefact

Values for TEST_ENVIRONMENT variable:

  • true
  • 1

This artefact is needed to be created for pull requests, master branch and release branch.

This build could be called somewhat %_e2e

This build is needed for all the platforms we build for, but in case the possibilities are limited, Mac x64 and Linux are preferable for now

@anastasiyaig
Copy link
Contributor Author

@Valentina1133 @StateOf-Vlado

@jakubgs
Copy link
Member

jakubgs commented Oct 11, 2023

Thanks.

@jakubgs
Copy link
Member

jakubgs commented Oct 11, 2023

Some questions:

  • Do we really want to essentially double the number of all builds?
  • Is there any good reason why this can't be the default setting for already existing builds?
  • What does this TEST_ENVIRONMENT variable affect? The client binary? How the app is packaged?

@jakubgs
Copy link
Member

jakubgs commented Oct 11, 2023

According to @anastasiyaig this change is related to Keycard mocking mechanism required for testing added here:

The key part is here:

status-desktop/Makefile

Lines 395 to 400 in 2c5039f

STATUSKEYCARDGO_RULE := build-lib
ifeq ($(TEST_ENVIRONMENT),true)
STATUSKEYCARDGO_RULE := build-mocked-lib
else ifeq ($(TEST_ENVIRONMENT),1)
STATUSKEYCARDGO_RULE := build-mocked-lib
endif

@jakubgs
Copy link
Member

jakubgs commented Oct 11, 2023

After talking to @jrainville and @saledjenic it turns out that TEST_ENVIRONMENT variable is used by the app at runtime.

The building of vendor/status-keycard-go library is affected by it by accident essentially, and should use a different variable.

I'm proposing:

  • Rename TEST_ENVIRONMENT to STATUS_RUNTIME_TEST_MODE because it needs to be clear this is runtime.
  • Add a USE_MOCKED_KEYCARD_LIB env variables to affect the use of build-mocked-lib target in the Makefile.

This should resolve at least some of the confusion here.

jakubgs added a commit that referenced this issue Oct 11, 2023
It will default to `true` for all builds except release ones.
This setting can always be overriden manually for any build.

Resolves:
#12412

Signed-off-by: Jakub Sokołowski <jakub@status.im>
jakubgs added a commit that referenced this issue Oct 11, 2023
It will default to `true` for all builds except release ones.
This setting can always be overriden manually for any build.

Resolves:
#12412

Signed-off-by: Jakub Sokołowski <jakub@status.im>
jakubgs added a commit that referenced this issue Oct 11, 2023
It will default to `true` for all builds except release ones.
This setting can always be overriden manually for any build.

Resolves:
#12412

Signed-off-by: Jakub Sokołowski <jakub@status.im>
jakubgs added a commit that referenced this issue Oct 11, 2023
It will default to `true` for all builds except release ones.
This setting can always be overriden manually for any build.

Resolves:
#12412

Signed-off-by: Jakub Sokołowski <jakub@status.im>
jakubgs added a commit that referenced this issue Oct 12, 2023
It will default to `true` for Linux builds except release ones.
This setting can always be overriden manually for any build.

Resolves:
#12412

Signed-off-by: Jakub Sokołowski <jakub@status.im>
jakubgs added a commit that referenced this issue Oct 12, 2023
It will default to `true` for Linux builds except release ones.
This setting can always be overriden manually for any build.

Resolves:
#12412

Signed-off-by: Jakub Sokołowski <jakub@status.im>
jakubgs added a commit that referenced this issue Oct 12, 2023
It will default to `true` for Linux builds except release ones.
This setting can always be overriden manually for any build.

Resolves:
#12412

Signed-off-by: Jakub Sokołowski <jakub@status.im>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants