Skip to content

dev-v2.0.0 -> staging for 2.0.0-SNAPSHOT#28

Merged
emdobrin merged 27 commits intostagingfrom
dev-v2.0.0
Jan 18, 2023
Merged

dev-v2.0.0 -> staging for 2.0.0-SNAPSHOT#28
emdobrin merged 27 commits intostagingfrom
dev-v2.0.0

Conversation

@emdobrin
Copy link
Copy Markdown
Contributor

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

kevinlind and others added 27 commits November 14, 2022 12:41
* Store lint report in CI

* Include Node.js in Android Docker image used to run unit tests.
Node.js is required to run Spotless.

* Add step to run 'sdkmanager --list' for debugging

* Clean build when creating 'ci' directory in Makefile steps

* Use Android 29 x86 system image for functional tests

* Fix coverage file location

* Specify specific codecov file to upload

* Add codecov.yml configuration

* Remove duplcate restore/save gradle cache tasks when running functional tests

* Try running CI functional tests with Android 33 x86_64 image

* Use 'system-images;android-29;default;x86' image for functional-tests.
A recent post by CircleCI suggests that higher API levels and/or system images with Google APIs 'have been observed to be less stable'. It is suggested to use a lower system image if failures are reported.

* Add comment and fix typo
* Update Gradle settings for :edge module to use Core 2.0

* First pass at updating EdgeExtension for 2.0

* Remove class EdgeExtensionListener

* Update EdgeState for Core 2.0

* Add readForEvent and remove event queue in EdgeExtension

* Update Edge public APIs to Core 2.0

* Remove unused EventUtils methods

* Set execute permission to pre-commit Git Hook

* Apply format fixes

* Update EdgeProperties for Core 2.0

* Fix log message

* Fix uses of Log and StringUtils to get code to compile

* Fix retrieval of assurance id to use new shared state and data reader apis

* Simplify EventUtils.getEdgeConfiguration

* Update version to 2.0.0 and dependent Core and Identity versions to 2.0.0

* Add javadoc for onRegistered

* Update :app build.gradle for core 2.0

* Update JavaDoc comments for EdgeSharedStateCallback

* Update ImplementationDetails for Core 2.0

* Move public variables above private variables

* Set public API timeout to 5 sec to match existing 1.0 timeout

* Clarify comment in bootupIfNeeded on use of Hub shared state

* Move API timeout variable to constants class

* Fix wording in sendEvent log messages

* Use public EventSource instead of constant

* Rename EdgeSharedStateCallback setSharedState to createSharedState

* Cleanup functions used to retrieve configuration and identity shared states

* Cleanup EventUtils by using NonNull annotation and using public EventType/EventSource

* Rename EdgeExtension method to processAndQueueEvent

* Fix wording in comment
* Use event type/source from core

* Remove getName, use base string value
* [MOB-17672] Update log usages for 2.x

* More log updates

Co-authored-by: Kevin Lind <40409666+kevinlind@users.noreply.github.com>
* More logging updates for 2.x - test code

* Finaling

* More logging and lambdas
* Implement new processHit, fix HitProcessor tests

* EdgeDataEntity consolidation

* Review impl, fixes
* Implement new processHit, fix HitProcessor tests

* EdgeDataEntity consolidation

* Migrate unit tests to mockito

* Migrate NetworkResponseHandlerTest to mockito

* never, never enough

* Update EdgePublicAPITests for mockito, use eventType/source from core

* Fix EdgeStateTests and add new tests for bootup

* Initial setup on EdgeExtensionTest

* Update log assertions to verify on the new services Log

* just mockitoVersion
* Implement new processHit, fix HitProcessor tests

* EdgeDataEntity consolidation

* Migrate unit tests to mockito

* Migrate NetworkResponseHandlerTest to mockito

* never, never enough

* Update EdgePublicAPITests for mockito, use eventType/source from core

* Fix EdgeStateTests and add new tests for bootup

* Initial setup on EdgeExtensionTest

* Update log assertions to verify on the new services Log

* Update EdgeExtension unit tests, fixes for empty event data handling and data unwrapping

* Update set/getLocationHint unit tests

* Update unit tests for bootup

* Remove MockHitQueue, using mockito

* docs on test utility methods
[MOB-17093] Part3 - re-enable functional tests
* Clean-up and DataReader usages

* Fix check for identityMap

* Increase coverage for RequestBuilder

* Format
* Use JSONUtils, StringUtils from core

* Revert changes

* Clean up the cleanup

* Utils cov++
* Update dependencies

* Update workflows to java 11
* Close hit queue on Edge extension onUnregistered
For restart tests, reset the ServiceProvider to create new instance of DataQueue. Clear database after functional tests.

* Reword method comment for FunctionalTestHelper.resetCoreHelper

* Rename ServiceProviderHelper resetServiceProvider to resetServices
@emdobrin emdobrin requested a review from kevinlind January 18, 2023 22:42
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 18, 2023

Codecov Report

❗ No coverage uploaded for pull request base (staging@64a25ca). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             staging      #28   +/-   ##
==========================================
  Coverage           ?   83.17%           
  Complexity         ?      380           
==========================================
  Files              ?       29           
  Lines              ?     1545           
  Branches           ?      219           
==========================================
  Hits               ?     1285           
  Misses             ?      161           
  Partials           ?       99           
Flag Coverage Δ
functional-tests 66.15% <0.00%> (?)
unit-tests 79.22% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@emdobrin emdobrin merged commit 63703d0 into staging Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants