-
Notifications
You must be signed in to change notification settings - Fork 987
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
ci: enable sentry for releases #21766
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (16)
|
058f244
to
132432f
Compare
nix/mobile/android/build.nix
Outdated
@@ -109,6 +109,10 @@ in stdenv.mkDerivation rec { | |||
export ANDROID_NDK_ROOT="${androidPkgs.ndk}" | |||
|
|||
export STATUS_NIX_MAVEN_REPO="${deps.gradle}" | |||
|
|||
# Sentry vars relevant for release | |||
export SENTRY_CONTEXT_NAME="status-mobile" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also export vars for iOS builds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is not required, you may revert changes to this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markoburcul : adding SENTRY_CONTEXT_NAME
and SENTRY_CONTEXT_VERSION
in nix/mobile/android/build.nix
will make those vars available for both debug
and release
builds in Android.
On Android If you wish to add any secret which is only available to release then status-jenkins-lib
is the correct place.
specifically here https://github.com/status-im/status-jenkins-lib/blob/1b075b8a2f8240c34ba1ad3969582fcaf92c2fb9/vars/android.groovy#L22-L28
For the mobile app to take notice of these variables then linking them in shadow-cljs
config is also required here
Lines 68 to 90 in 1391c48
{status-im.config/POKT_TOKEN #shadow/env "POKT_TOKEN" | |
status-im.config/INFURA_TOKEN #shadow/env "INFURA_TOKEN" | |
status-im.config/STATUS_BUILD_PROXY_USER #shadow/env "STATUS_BUILD_PROXY_USER" | |
status-im.config/STATUS_BUILD_PROXY_PASSWORD #shadow/env "STATUS_BUILD_PROXY_PASSWORD" | |
status-im.config/STATUS_BACKEND_SERVER_ENABLED #shadow/env "STATUS_BACKEND_SERVER_ENABLED" | |
status-im.config/STATUS_BACKEND_SERVER_HOST #shadow/env "STATUS_BACKEND_SERVER_HOST" | |
status-im.config/STATUS_BACKEND_SERVER_MEDIA_SERVER_ENABLE_TLS | |
#shadow/env "STATUS_BACKEND_SERVER_MEDIA_SERVER_ENABLE_TLS" | |
status-im.config/STATUS_BACKEND_SERVER_IMAGE_SERVER_URI_PREFIX | |
#shadow/env "STATUS_BACKEND_SERVER_IMAGE_SERVER_URI_PREFIX" | |
status-im.config/STATUS_BACKEND_SERVER_ROOT_DATA_DIR #shadow/env | |
"STATUS_BACKEND_SERVER_ROOT_DATA_DIR" | |
status-im.config/MIXPANEL_APP_ID #shadow/env "MIXPANEL_APP_ID" | |
status-im.config/MIXPANEL_TOKEN #shadow/env "MIXPANEL_TOKEN" | |
status-im.config/OPENSEA_API_KEY #shadow/env "OPENSEA_API_KEY" | |
status-im.config/RARIBLE_MAINNET_API_KEY #shadow/env "RARIBLE_MAINNET_API_KEY" | |
status-im.config/RARIBLE_TESTNET_API_KEY #shadow/env "RARIBLE_TESTNET_API_KEY" | |
status-im.config/ALCHEMY_ETHEREUM_MAINNET_TOKEN #shadow/env "ALCHEMY_ETHEREUM_MAINNET_TOKEN" | |
status-im.config/ALCHEMY_ETHEREUM_SEPOLIA_TOKEN #shadow/env "ALCHEMY_ETHEREUM_SEPOLIA_TOKEN" | |
status-im.config/ALCHEMY_ARBITRUM_MAINNET_TOKEN #shadow/env "ALCHEMY_ARBITRUM_MAINNET_TOKEN" | |
status-im.config/ALCHEMY_ARBITRUM_SEPOLIA_TOKEN #shadow/env "ALCHEMY_ARBITRUM_SEPOLIA_TOKEN" | |
status-im.config/ALCHEMY_OPTIMISM_MAINNET_TOKEN #shadow/env "ALCHEMY_OPTIMISM_MAINNET_TOKEN" | |
status-im.config/ALCHEMY_OPTIMISM_SEPOLIA_TOKEN #shadow/env "ALCHEMY_OPTIMISM_SEPOLIA_TOKEN"} |
f502597
to
10c1f3f
Compare
@siddarthkay @markoburcul what do you say I change my PR to branch off of this PR and then we can check everything works while you inject the env var values in Jenkins? I'm suggesting this so we avoid merging PRs that are not fully working, which could be the case with this PR until we see the error appear in Sentry. |
@ilmotta : sure go ahead |
10c1f3f
to
b62ae9e
Compare
nix/status-go/mobile/build.nix
Outdated
@@ -46,6 +46,10 @@ in buildGoPackage rec { | |||
# TODO: try removing when go is upgraded to 1.22 | |||
GODEBUG = "netdns=cgo+2"; | |||
|
|||
# Sentry for status-go | |||
SENTRY_CONTEXT_NAME = "status-mobile"; | |||
SENTRY_CONTEXT_VERSION = fileContents ../../../VERSION; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary. Just use the version we already have.
SENTRY_CONTEXT_VERSION = fileContents ../../../VERSION; | |
SENTRY_CONTEXT_VERSION = version; |
referenced issue: #21706 Signed-off-by: markoburcul <[email protected]>
b62ae9e
to
166394c
Compare
referenced issue: #21706