-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add script to parse coverage profile and flag uncovered code * include coverage profile in artifacts * better output * revert addition of analysis script * rm obsolete message * more coverage improvements, misc code cleanup * use new coverage tool * rm unused * fix to capture HTML coverage reports * exclude sharedtest package from coverage * misc makefile improvements * fill in test coverage for everything except StreamProcessor and databases; move some things to internal * can't rely on a specific error message due to platform differences * fix flaky test * full test coverage of database integrations * lint * add godoc badge * formatting * formatting * better badge * minor CI cleanup: use newer images, drop Go 1.12 build (#239) * make the SDK a module * go mod tidy * fix bug where nil references are passed to persistent stores (#241) * remove support for indirect patch in stream * (5.0) complete test coverage for StreamProcessor * turn on coverage enforcement * fix logic for disabling db packages in coverage * move some internal code around for clearer organization * make sharedtest package internal, put public test helpers in new package * DRY * comment about data store tests * use latest public go-sdk-common, go-sdk-events, go-server-sdk-evaluation * remove unused polling logic for indirect/patch * update go-server-sdk-evaluation for data model changes * rm unnecessary type aliases that broke tests * fix test that used an overly sensitive equality test for a flag without variations * another test issue just like the previous commit * move more test helpers + misc fixes * test coverage * move data store test suite to subpackage * (5.0) fix bug in deleted item serialization * more test coverage * (5.0) interface cleanup: move data store types out of the way * dependency fixes * (5.0 - #7) updates for go-sdk-events API changes (#251) * (5.0) miscellaneous doc comment improvements * fix remaining godoc.org links * custom badge for pkg.go.dev * fix go.dev badge * add API docs link under Learn More * update dependencies * use test sandboxing to validate persistent store test failure modes * lint (use more general interface) * (5.0) specify proxy URL as a string * fix test * fix test * fix another test * 5.0.0-beta.1 * add client decorator that temporarily disables events * add scoped evaluation without events * remove all database subpackages (being moved to separate projects) (#256) * bump dependency versions and use ldlogtest package * lint * code example * move AllFlagsState-related types out of main package, add builder * rm obsolete references to HTTPOptions setter * minor Makefile fix * add clientSideAvailability to flag model * prepare 4.17.3 release (#36) * Releasing version 4.17.3 * (v5) use new client-side availability fields (#262) * ensure SDK non-test code has no module-only dependencies (#263) * 5.0.0-beta.6 * update redis repo name in comments * use optional int type * misc cleanup * update dependencies * add Go 1.15 CI job, use newer CircleCI images * typo * fix CI working directory * fix CI syntax * update readme to mention Go 1.15 * drop Go 1.13 build * use go-server-sdk-evaluation 1.0.0-beta.5 * (#2) add test data source (#266) * logging fixes/standardization * use non-beta packages, remove prerelease info * update release metadata * make Releaser create release tags with and without the "v" prefix * update to go-server-sdk-evaluation 1.0.1 for "less omitempty in flag JSON" fix (#272) * fix comment typos * serialize deleted item placeholders with full set of properties (#274) * update go-sdk-common to 2.0.1 * bump eventsource to 1.6.2 for ch95617 logging fix (#275) * use new jsonstream API (#277) * don't require path property in put event * update alpha dependencies * update for go-jsonstream API changes * build in Windows with Go 1.14 * bump go-sdk-common version to get user JSON parsing fix * remove excessive logging in ldfilewatch, add log message for reloading file * fail fast if SDK key has invalid characters, don't log the key * bump go-server-sdk-evaluation to get semver parsing fix * remove spurious logging of stream data * merge in alias event support * Removed the guides link * update to go-server-sdk-evaluation 1.1.2 for ch100737 fix * (#1) add unbounded segments interfaces, status provider, test suite (#288) * add unbounded segments interfaces, status provider, test suite * lint * add package comment * better component organization * rename cache time to poll interval, improve tests * rename segment keys to segment refs in unbounded segments API * fix naming some more * (#2) simplify(?) broadcasters using reflection (#289) * (#3) misc cleanup of data store test suites (#290) * (#4) finish adding support for big ("unbounded") segment in evaluations (#291) * (#5) change "unbounded segments" to "big segments" + use latest prerelease packages (#293) * fix segment ref string format in tests, update evaluator version * Point at exp-alloc feature branch of -common and -evaluation (#297) This just repoints the Go SDK at the exp-alloc feature branch of the go-sdk-common-private and go-server-sdk-evaluation-private repos. * expose big segment store wrapper component for reuse by Relay * lint * add DuplicateKeysHandling option to ldfiledata (#299) * use latest prerelease tags of go-sdk-common, go-server-sdk-evaluation * use prerelease tags of go-sdk-common and go-server-sdk-evaluation * update dependencies for JSON number parsing bugfix * use go-sdk-common 2.3.0, go-server-sdk-evaluation 1.3.0 * add big segments control methods for use by Relay * rm unused * update go-server-sdk-evaluation to 1.4.1 for big segments bugfix * use Releaser v2 config, add Go 1.16 CI * rename big segments to Big Segments * remove "non-module-build" CI test which can no longer be run * add CI job for Go 1.17; update linter & test coverage script * Update pull request template to correct CONTRIBUTING.md link * Remove reference to dep in CONTRIBUTING.md (#310) * SC-128558: Allow users to set custom headers on requests (#308) * Add ability to set custom headers via Headers method * better tests for simple proxy configuration (#311) * update evaluation engine to fix circular prereqs issue, add more eval error logging * add ServiceEndpoints to configuration API (#314) * fix setting of trackEvents/trackReason in AllFlagsState data when there's an experiment (#315) * Go SDK test service for use with the SDK test harness (#312) * fix AllFlagsState DetailsOnlyForTrackedFlags behavior * fix reason logic * enable big segments contract tests (#317) * implement tags * update doc comments to match latest spec * more doc comment updates Co-authored-by: Eli Bishop <eli@launchdarkly.com> Co-authored-by: LaunchDarklyCI <LaunchDarklyCI@users.noreply.github.com> Co-authored-by: LaunchDarklyCI <dev@launchdarkly.com> Co-authored-by: Harpo Roeder <hroeder@launchdarkly.com> Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> Co-authored-by: Sam Stokes <sstokes@launchdarkly.com> Co-authored-by: LaunchDarklyReleaseBot <launchdarklyreleasebot@launchdarkly.com> Co-authored-by: Casey Waldren <cwaldren@launchdarkly.com>
- Loading branch information
1 parent
380b7f4
commit 7f1cce2
Showing
25 changed files
with
1,088 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ build/ | |
go-server-sdk.test | ||
allocations.out | ||
.idea | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package interfaces | ||
|
||
// ApplicationInfo allows configuration of application metadata. | ||
// | ||
// Application metadata may be used in LaunchDarkly analytics or other product features, but does not | ||
// affect feature flag evaluations. | ||
// | ||
// If you want to set non-default values for any of these fields, set the ApplicationInfo field | ||
// in the SDK's Config struct. | ||
type ApplicationInfo struct { | ||
// ApplicationID is a unique identifier representing the application where the LaunchDarkly SDK is | ||
// running. | ||
// | ||
// This can be specified as any string value as long as it only uses the following characters: ASCII | ||
// letters, ASCII digits, period, hyphen, underscore. A string containing any other characters will be | ||
// ignored. | ||
ApplicationID string | ||
|
||
// ApplicationVersion is a unique identifier representing the version of the application where the | ||
// LaunchDarkly SDK is running. | ||
// | ||
// This can be specified as any string value as long as it only uses the following characters: ASCII | ||
// letters, ASCII digits, period, hyphen, underscore. A string containing any other characters will be | ||
// ignored. | ||
ApplicationVersion string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
testservice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# SDK contract test service | ||
|
||
This directory contains an implementation of the cross-platform SDK testing protocol defined by https://github.com/launchdarkly/sdk-test-harness. See that project's `README` for details of this protocol, and the kinds of SDK capabilities that are relevant to the contract tests. This code should not need to be updated unless the SDK has added or removed such capabilities. | ||
|
||
To run these tests locally, run `make contract-tests` from the SDK project root directory. This downloads the correct version of the test harness tool automatically. | ||
|
||
Or, to test against an in-progress local version of the test harness, run `make start-contract-test-service` from the SDK project root directory; then, in the root directory of the `sdk-test-harness` project, build the test harness and run it from the command line. |
Oops, something went wrong.