datadog-ci icon indicating copy to clipboard operation
datadog-ci copied to clipboard

Task :app:uploadReleaseSourcemaps FAILED

Open manojs2022 opened this issue 1 year ago • 6 comments

Bug description

Here is the error:

> Task :app:uploadReleaseSourcemaps FAILED
Exception raised during command execution, stderr=, stdout=
> Task :expo-modules-core:buildCMakeRelWithDebInfo[arm64-v8a]
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
935 actionable tasks: 935 executed
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:uploadReleaseSourcemaps'.
> A problem occurred starting process 'command '../..//node_modules/.bin/datadog-ci''
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

Describe what you expected

Android build

Steps to reproduce the issue

eas build --platform android --profile xxxx --clear-cache

Additional context

{
  "name": "xxxxx",
  "private": true,
  "version": "1.0.0",
  "engines": {
    "node": ">=18 <19",
    "npm": ">=9 <10"
  },
  "scripts": {
    "start": "expo start --dev-client",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "eject": "expo eject",
    "strictlint": "eslint src/ --ext 'js,ts,tsx' --max-warnings 0 --cache",
    "prepublish": "npm run transpile",
    "transpile": "npm run transpile:type-declarations",
    "transpile:type-declarations": "tsc",
    "watch": "npm transpile:build --watch",
    "postinstall": "patch-package"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged",
      "pre-push": "npm run transpile && npm run strictlint"
    }
  },
  "lint-staged": {
    "src/**/*.tsx": [
      "eslint --cache --fix",
      "git add"
    ]
  },
  "eslintConfig": {
    "extends": "react-native-app"
  },
  "dependencies": {
    "2": "^2.0.0",
    "@datadog/mobile-react-native": "^1.1.5",
    "@react-native-community/netinfo": "9.3.5",
    "axios": "^0.27.2",
    "deprecated-react-native-prop-types": "^2.3.0",
    "expo": "^47.0.14",
    "expo-asset": "~8.7.0",
    "expo-av": "~13.0.3",
    "expo-barcode-scanner": "~12.1.0",
    "expo-camera": "~13.1.0",
    "expo-constants": "~14.0.2",
    "expo-datadog": "^47.0.0",
    "expo-device": "~5.0.0",
    "expo-font": "~11.0.1",
    "expo-gl": "~12.0.1",
    "expo-image-manipulator": "~11.0.0",
    "expo-linear-gradient": "~12.0.1",
    "expo-location": "~15.0.1",
    "expo-modules-core": "~1.0.4 || ~1.1.1",
    "expo-permissions": "~14.0.0",
    "expo-pixi": "^2.0.0",
    "expo-splash-screen": "~0.17.5",
    "expo-sqlite": "~11.0.0",
    "expo-status-bar": "~1.4.0",
    "expo-updates": "~0.15.6",
    "image-base64": "^1.0.2",
    "jwt-decode": "^3.1.2",
    "moment": "^2.24.0",
    "moment-timezone": "^0.5.25",
    "react": "18.1.0",
    "react-dom": "18.1.0",
    "react-error-boundary": "^4.0.12",
    "react-native": "0.70.8",
    "react-native-auth0": "^2.17.4",
    "react-native-check-box": "^2.1.7",
    "react-native-datepicker": "^1.7.2",
    "react-native-dropdown-select-list": "^2.0.4",
    "react-native-elements": "^3.4.2",
    "react-native-gesture-handler": "~2.8.0",
    "react-native-grid-component": "^2.0.0",
    "react-native-modal-overlay": "^1.3.1",
    "react-native-paper": "^2.4.0",
    "react-native-reanimated": "~2.12.0",
    "react-native-render-html": "^6.3.4",
    "react-native-svg": "13.4.0",
    "react-native-svg-transformer": "^1.0.0",
    "react-native-toast-notifications": "^3.3.1",
    "react-native-web": "~0.18.7",
    "react-native-webview": "11.23.1",
    "react-navigation": "^4.0.10",
    "react-navigation-stack": "^1.10.3",
    "sentry-expo": "~4.2.0",
    "zustand": "^3.5.10"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/preset-typescript": "^7.3.3",
    "@datadog/datadog-ci": "^2.30.1",
    "@pixi/core": "^7.0.4",
    "@pixi/filter-alpha": "^7.0.4",
    "@pixi/filter-blur": "^7.0.4",
    "@types/node": "^18.11.9",
    "@types/react": "~18.0.0",
    "@types/react-dom": "~18.0.0",
    "@types/react-native-auth0": "^2.17.5",
    "@types/react-navigation": "^3.0.8",
    "@types/uuid": "^3.4.0",
    "@types/websql": "^0.0.27",
    "@typescript-eslint/eslint-plugin": "2.6.1",
    "@typescript-eslint/parser": "2.6.1",
    "babel-eslint": "^10.0.3",
    "babel-jest": "^24.5.0",
    "babel-preset-expo": "~9.2.0",
    "eslint": "^6.6.0",
    "eslint-config-prettier": "^6.5.0",
    "eslint-plugin-babel": "^5.3.0",
    "eslint-plugin-prettier": "^3.1.1",
    "eslint-plugin-react": "^7.16.0",
    "eslint-plugin-react-native": "^3.8.1",
    "eslint-plugin-sort-keys-fix": "^1.0.1",
    "husky": "^1.2.1",
    "jest": "^26.6.3",
    "jest-expo": "^46.0.0",
    "lint-staged": "^8.1.0",
    "metro-react-native-babel-preset": "0.50.0",
    "patch-package": "^6.5.0",
    "prettier": "^1.19.1",
    "react-test-renderer": "18.0.0",
    "typescript": "^4.6.3"
  },
  "overrides": {
    "expo-file-system": "~14.1.0",
    "react": "$react",
    "react-native": "$react-native",
    "react-native-gesture-handler": "$react-native-gesture-handler"
  }
}

Command

None

manojs2022 avatar Jun 29 '24 17:06 manojs2022

Hi @Drarig29 , DataDog Team,

Could you please take a look at priority? My team stuck here.

manojs2022 avatar Jul 04 '24 08:07 manojs2022

Hi @Drarig29 Any update??

manojs2022 avatar Jul 15 '24 06:07 manojs2022

Hi @manojs2022,

Run with --info or --debug option to get more log output

Can you try to run with --info and send the logs?

Drarig29 avatar Jul 15 '24 09:07 Drarig29

Hi @Drarig29, thank you for reaching out. We have recently improved how datadog-ci path is resolved from our scripts.

The fix is in v2.3.6 of our RN SDK and v51.0.1 of our Expo Plugin.

We suggest updating our plugins to the latest version.

React Native SDK:

- "@datadog/mobile-react-native": "^1.1.5",
+ "@datadog/mobile-react-native": "^2.4.1",

Expo Plugin:

- "expo-datadog": "^47.0.0",
+ "expo-datadog": "51.0.1"

marco-saia-datadog avatar Jul 15 '24 11:07 marco-saia-datadog

@manojs2022 The issue is still there. its not working with expo 51

nguyenkhatran avatar Dec 17 '24 13:12 nguyenkhatran

Hi @CarlosKhaTran, can you send your logs to make sure it's the same issue? Thanks!

cc. @marco-saia-datadog

Drarig29 avatar Dec 17 '24 13:12 Drarig29