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

Sync fix bookmarks object id duplication (uplift to 1.6.x) #4781

Merged
merged 1 commit into from
Mar 3, 2020

Conversation

AlexeyBarabash
Copy link
Contributor

@AlexeyBarabash AlexeyBarabash commented Feb 27, 2020

Sync fix bookmarks object id duplication

Uplift of #4710, created manually because had conflicts.

Fixes brave/brave-browser#8325

Approved, please ensure that before merging:

  • You have checked CI and the builds, lint, and tests all pass or are not related to your PR.
  • You have tested your change on Nightly.
  • The PR milestones match the branch they are landing to.

After you merge:

  • The associated issue milestone is set to the smallest version that the changes is landed on.

@kjozwiak
Copy link
Member

@kjozwiak kjozwiak added CI/skip-android Do not run CI builds for Android CI/skip-ios Do not run CI builds for iOS CI/skip-windows labels Feb 29, 2020
@AlexeyBarabash
Copy link
Contributor Author

fails unit test

18:20:13  ../../brave/components/brave_sync/brave_sync_service_unittest.cc:1320:3: error: use of undeclared identifier 'AsMutable'
18:20:13    AsMutable(bookmark_a1)->SetMetaInfo("object_id", "object_id_value");
18:20:13    ^
18:20:13  ../../brave/components/brave_sync/brave_sync_service_unittest.cc:1321:3: error: use of undeclared identifier 'AsMutable'
18:20:13    AsMutable(bookmark_a1)->SetMetaInfo("order", "order_value");
18:20:13    ^
18:20:13  ../../brave/components/brave_sync/brave_sync_service_unittest.cc:1322:3: error: use of undeclared identifier 'AsMutable'
18:20:13    AsMutable(bookmark_a1)->SetMetaInfo("sync_timestamp", "sync_timestamp_value");
18:20:13    ^
18:20:13  ../../brave/components/brave_sync/brave_sync_service_unittest.cc:1323:3: error: use of undeclared identifier 'AsMutable'
18:20:13    AsMutable(bookmark_a1)->SetMetaInfo("version", "version_value");
18:20:13    ^
18:20:13  4 errors generated.

I must pickup 1.6.x and pull AsMutable function because master change were not uplifted yet

@bsclifton bsclifton changed the title Merge pull request #4710 from brave/sync_fix_obj_id_dup Sync fix bookmarks object id duplication (uplift to 1.6.x) Mar 2, 2020
@bsclifton bsclifton requested review from a team and removed request for kjozwiak, bsclifton, rebron and srirambv March 2, 2020 06:34
@AlexeyBarabash AlexeyBarabash force-pushed the pr4710_sync_fix_obj_id_dup_1.6.x branch from 5a58f5c to f3d327a Compare March 2, 2020 12:16
Sync fix bookmarks object id duplication
@AlexeyBarabash AlexeyBarabash force-pushed the pr4710_sync_fix_obj_id_dup_1.6.x branch from f3d327a to fb13138 Compare March 2, 2020 16:34
@AlexeyBarabash
Copy link
Contributor Author

there were issues with build, lint and tests caused by some stuff from master hasn't been uplifted into 1.6.x, so I remove skip_xxxxx labels

@AlexeyBarabash AlexeyBarabash removed CI/skip-android Do not run CI builds for Android CI/skip-ios Do not run CI builds for iOS CI/skip-windows labels Mar 2, 2020
@AlexeyBarabash
Copy link
Contributor Author

CI succeeded for all platforms except macOS

18:41:01  ERROR at //build/timestamp.gni:31:19: Script returned non-zero exit code.
18:41:01  build_timestamp = exec_script(compute_build_timestamp,
18:41:01                    ^----------
18:41:01  Current dir: /Users/jenkins/jenkins/workspace/pr4710_sync_fix_obj_id_dup_1.6.x/src/out/Release/
18:41:01  Command: python /Users/jenkins/jenkins/workspace/pr4710_sync_fix_obj_id_dup_1.6.x/src/build/compute_build_timestamp.py official
18:41:01  Returned 1.
18:41:01  stderr:
18:41:01  
18:41:01  Traceback (most recent call last):
18:41:01    File "/Users/jenkins/jenkins/workspace/pr4710_sync_fix_obj_id_dup_1.6.x/src/build/compute_build_timestamp.py", line 127, in <module>
18:41:01      sys.exit(main())
18:41:01    File "/Users/jenkins/jenkins/workspace/pr4710_sync_fix_obj_id_dup_1.6.x/src/build/compute_build_timestamp.py", line 113, in main
18:41:01      last_commit_timestamp = int(open(lastchange_file).read())
18:41:01  IOError: [Errno 2] No such file or directory: '/Users/jenkins/jenkins/workspace/pr4710_sync_fix_obj_id_dup_1.6.x/src/build/util/LASTCHANGE.committime'
18:41:01  
18:41:01  See //base/BUILD.gn:34:1: whence it was imported.
18:41:01  import("//build/timestamp.gni")
18:41:01  ^-----------------------------
18:41:01  See //BUILD.gn:70:5: which caused the file to be included.
18:41:01      "//base:base_perftests",
18:41:01      ^----------------------
18:41:01  null
18:41:01  null
18:41:01  npm ERR! code ELIFECYCLE

Marking to skip all except macOS and restarting.

@AlexeyBarabash AlexeyBarabash added CI/skip-android Do not run CI builds for Android CI/skip-ios Do not run CI builds for iOS CI/skip-linux labels Mar 2, 2020
Copy link
Member

@kjozwiak kjozwiak left a comment

Choose a reason for hiding this comment

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

Uplift into 1.6.x approved after deliberating with @brave/uplift-approvers. Both CI/Jenkins and CI/Travis passed without any failures after several restarts. QA also went through the original PR on Nightly via #4710 (comment).

Please make sure that the correct labels are being used and the associated issue is moved into the correct milestone.

@kjozwiak kjozwiak merged commit 46e9c47 into 1.6.x Mar 3, 2020
@kjozwiak kjozwiak deleted the pr4710_sync_fix_obj_id_dup_1.6.x branch March 3, 2020 21:43
@kjozwiak kjozwiak added this to the 1.6.x - Dev milestone Mar 3, 2020
@bbondy bbondy modified the milestones: 1.6.x - Beta, 1.7.x - Dev Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-android Do not run CI builds for Android CI/skip-ios Do not run CI builds for iOS feature/sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants