Commit Graph

402 Commits

Author SHA1 Message Date
Manu Gupta
89d7b35ccd remove opentracing stuff from the code (#652) 2018-09-13 13:24:04 -04:00
Manu Gupta
57b11e8489 Shorten op names and remove spans from handlers (#647) 2018-09-11 23:20:32 -04:00
Rohan Chakravarthy
0e470d0294 Plumb config - Latest (#627)
* switch proxy to config file

pull in single flight changes

* changes for single-flight

* intermediate stage. All tests passing. pkg still has env refs

* remove all env references

* delete config/env entirely

* fix failing tests

* create the config.toml file as part of dev setup

* create config file only if it doesn't exist

* update Dockerfiles to use config file

* move composing elements to the top

* verbose parameter naming

* newline

* add flag for config file path

* update docs with config file flag

* remove unnecessary nil check

* use filepath.join

* rename redis port to address

* fix path.join

* fix issues after merge

* add vendor dir
2018-09-11 15:04:20 -07:00
Manu Gupta
bb250437da Instrumenting observability with opencensus (#604)
* Initial chanages for observability

* Fix some panics to start testing

* Export tracing properly

* First example of child spans using opencensus

* Add spans to download protocol

* Add url to traces

* Remove opentracing

* Remove gopkg.* files

* Start deprecating opentracing

* Resolve stupid build errors

* Use observability package

* Fix test errors

* Convert buffalo spans to observercontext

* change package name

* defer flush to the end of the app execution

* Change op names to the correct package

* Rename pkg/observability to pkg/observ

* Show traces for the package

* Keep tracing in the earlier way

* Add info from request headers

* Remove whitespace

* Move exporter url to env var

* Add to env file for documentation

* Remove opentracing stuff

* Use stdlib

* Shorten service name

* Add a service name to olympus as well

* Add test to test if there is a recursion or not

* Add Ops Suite

* Move around code

* Make sure the service is not instantiated if the exporter is not found
2018-09-11 10:31:20 -07:00
Jayakrishna Sahit
a076b0c4d8 fix for #626 (#629)
* fix for #626

* Added pid method
2018-09-10 14:16:14 -07:00
marpio
a21bba3059 rm drone.yml (#639) 2018-09-09 08:55:44 +02:00
Brent Pendergraft
a400d16674 remove buffalo dev in favor of go build in e2e test script (#636)
* remove buffalo dev in favor of go build in e2e test script

* re-write comment for clarity
2018-09-07 08:51:20 +02:00
Tobias Klauser
ec2748ecc3 Remove unused file in pkg/module and clean up dependencies (#625)
* pkg/module: Remove unused file parser.go

PR #618 removed the last remaining user of the functions/types defined
in parser.go

* go.mod: update

The last user of github.com/sabhiram/go-gitignore was removed. Run 'go
mod tidy' to remove the dependency.

* vendor: remove unused dependency

The last user of github.com/sabhiram/go-gitignore was removed. Remove
the vendored copy as well by running 'go mod vendor'.
2018-09-07 02:04:23 -04:00
Marwan Sulaiman
ea96158f8f Athens: introduce Single Flight (#573)
* Athens: introduce singleflight

* fix ci

* small fixes

* Remove unnecessary method

* simplify folder structure

* dcoument stasher iface

* fixes

* Fix olympus

* Remove Version from Download Protocol

* fix olympus

* refactor fetcher

* consolodate wrapping styles

* fix olympus

* Further refactoring

* fix typo
2018-09-03 16:31:13 -04:00
Aaron Schlesinger
da34539226 Making port configurable for the proxy (#596)
* Making port configurable for the proxy

Fixes https://github.com/gomods/athens/issues/595

* simple is good
2018-09-03 08:38:30 +02:00
Komu Wairagu
748ed7dda9 Remove dep files (#378)
* remove vendor directory
athens will be using Go modules for dependency management

* remove Gopkg.* files. athens will be using Go modules for dependency management

* add note about Go version required for developing on Athens
To use Go modules for dep management, you require atleast Go version 1.11

* update documentation regarding supported version of Go

* dont install dep

* re-add vendor directory
go mod vendor

* use vendored directory to carry out Go commands

* remove the use of -mod=vendor
this is necessary because;
1. we are running ci in a travis with a matrix of GO111MODULE=on & GO111MODULE=auto
and -mod=vendor is not available as an option in GO111MODULE=auto(inside GOPATH)

* rm vendor

* run go mod tidy
this is beacuse the master branch had changes to Gopkg.lock

* match gopkg.in/go-playground/validator.v9 version
with master branhc

* go mod tidy

* go mod vendor
so as to vendor the new changes that were added in master

* set GO111MODULE=on globally in ci

* build with -mod=vendor when building docker image

* use -mod=vendor to avoid getting deps from vcs in ci

* use -mod=vendor in .drone.yml

* use go1.11 in drone.yml
2018-09-02 11:54:42 -04:00
Rob j Loranger
29cb5c9561 change go releaser to create draft releases (#621) 2018-09-02 07:49:01 +02:00
marpio
6bf0de7b3c binary release (#620)
* release to github on tags

* add new line
2018-09-01 16:39:30 -07:00
Rob j Loranger
fe63c38e15 Goreleaser (#616) (#619)
* Goreleaser (#616)

* add goreleaser

* incl readme and license

* rm unnesesary license refs

* enable to test

* few changes to travis.yml to test goreleaser

* switch back to master

* try separate conditions
2018-09-01 12:40:46 -07:00
Marwan Sulaiman
249a1a6e4e Remove unused stuff (#618) 2018-09-01 14:34:21 -04:00
Aaron Schlesinger
a89552ff5d Tiny start to the codeowners file (#468)
* Tiny start to the codeowners file

Fixes #466

* fix up CODEOWERS

* codeowners require write access
2018-09-01 10:33:29 -07:00
lpdyck
c4417371ef Fix powershell scripts (#615)
* add check_deps.ps1

* fix check_gofmt select-string regex pattern

* capitalize JoinPath

* fix typo

* fail check_deps.ps1 on error
2018-09-01 11:59:55 +02:00
lpdyck
a2a2d93a9e [walkthrough]: add powershell walkthrough (#598)
* add powershell commands

* split the semicolon onto two lines instead

* split another semicolon onto two lines instead

* remove does not work on windows warning

* fix powershell typo

* fix type in modules enables not supported notification

* use start-process instead of start
2018-09-01 11:53:30 +02:00
Marwan Sulaiman
5bb28a91f7 update go.mod file (#611) 2018-08-31 16:15:16 -04:00
Rohan Chakravarthy
7c745fb3d9 add a configuration file (#453)
* complete updated config package

* use envconfig+toml instead of viper. Add descriptions in example config file

* add unit tests

* debug gofmt on build server

* force dummy commit

* skip gofmt to validate other tests are passing

* unset env vars for example file parsing test

* cleanup tests

* test improvements

* re-enable gofmt

* naming

* PR comments

* fix failing test after olympus default endpoint change

* remove rdbms config

* set defaults in code

* add support for proxyfilteroff

* add basic auth params

* update gopkg.lock

* undo gopkg.lock changes made during merge

* remove defaults

* explicitly specify all env variables

* remove rdbms from example

* remove user and pass to disable basic auth by default

* switch to memory by default for the proxy

* fix tests after config file change
2018-08-31 14:23:41 -04:00
Jayakrishna Sahit
df14f2b691 Added ISSUE and PR Templates (#585)
* Added templates

* made minor changes

* Modified temps

* made requested changes

* Added requested changes 2

* Made requested changes 3

* Added final changes
2018-08-31 09:34:31 -07:00
Michael Cook
ea1503f071 minor spelling fix (#603) 2018-08-30 17:26:03 -06:00
dapchen
f96d1f838b [protocol]: update examples to use working links (#599)
* [protocol]: update examples to use working links

* Change to use $HOST and $PORT as placeholders.
2018-08-30 16:50:10 -06:00
Kent Rancourt
992ee933eb [walkthrough]: adjust instructions to clone athens on gopath (#593)
* [walkthrough]: adjust instructions to clone athens on gopath

* Update walkthrough.md
2018-08-30 16:27:22 -06:00
Kent Rancourt
3a76afb6a6 [walkthrough]: Fix errant reference to (no used) vendor directory (#591) 2018-08-30 16:05:45 -06:00
Kent Rancourt
0e411d77e3 [walkthrough]: fix incorrect env var (#592) 2018-08-30 15:58:05 -06:00
Marwan Sulaiman
e2cd124816 Update modules to be correct (#589) 2018-08-30 04:52:20 -04:00
Rohan Chakravarthy
697a7a5073 remove olympus storage implementation and proxy worker (#513)
* remove olympus storage implementation and proxy worker

* cleanup after merge conflicts

* remove newline
2018-08-30 03:47:04 -04:00
Nedim Dedic
7af04ff405 Update PHILOSOPHY.md (#582) 2018-08-28 14:16:36 -07:00
Arthur Mello
0b9624afbf Update documentation about running unit tests (#576) 2018-08-28 18:27:50 +02:00
Arthur Mello
e5ce3f7c6e Set a default value for ATHENS_MONGO_CONNECTION_STRING env var (#580)
* Set a default value for ATHENS_MONGO_CONNECTION_STRING env var

- ATHENS_MONGO_CONNECTION_STRING will default to mongodb://127.0.0.1:27017 if not set

* Fix Get function call

* Update user of env.MongoConnectionString
2018-08-28 11:56:15 +02:00
Komu Wairagu
69a5340c91 update to go1.11 (#563)
* update travis to Go 1.11

* update check_deps ci script
ci for checking dependencies should now check Go module files and use go mod verify

* remove uneeded comment

* set GO111MODULE

* debug GO111MODULE propagation

* rm dep installation

* debug GO111MODULE propagation

* rm debug statements

* use Go point releases in ci

* remove references to Go1.11 RCs

* run ci with GO111MODULE auto and also on

* use matrix
2018-08-28 08:46:12 +02:00
marpio
b62ebddb1b fix mongo env var name after rename (#578) 2018-08-27 14:11:32 -07:00
Rob j Loranger
37f0687761 No conflicts (#569)
* add script and step to verify stage of makefile

* this commit should fail the build

* build should now pass

* fix typo in excludes for grep

* better output on failure

also removes tilde from initial regex, git does not use tilde in diffs
adds output of filenames with detected regex on failure
2018-08-27 10:48:24 -06:00
Tobias Klauser
5c3af51a1d README.md: various fixes (#575)
* fix some typos

* make the markdown links in the "Coding Guidlines" render correctly

* remove stray newlines between project status badges
2018-08-27 10:01:58 -06:00
Jeremy Rickard
a953f1121b Finishing up the helm chart (#547)
* chart skeleton

* doing more stuff on templates

* Adding disk storage root env var

In case you set the storage type to disk, then you can set the storage root

* Defaulting disk storage root location

* defaulting to go binary path as installed in dockerfile

* Adding Adding Service and Ingress to Chart

* In sync with newer docker image, added the ability to use a PVC!

* Refactored charts, added skeleton install

Co-authored-by: Aaron Schlesinger <arschles@gmail.com>

* Adding more documentation

* Adding newlines

* Updated to v0.1.0 !!!

* Updated repo to gomods/proxy
2018-08-27 09:55:38 -06:00
Jeremy Rickard
7962cac0c2 How to install a shared dev team instance with persistent storage (#543)
* WIP "installation" guide

This PR adds an installation guide with instructions on how to use
disk storage to achieve persistent storage.

Closes #533

* Formatting cleanup

* Swapped to Docker based instructions

* Moved install into "install" directory, added PowerShell commands

* Fixed wording about running container and environment variables

* Fixed a type-o

* Code review comments, cleaned up PowerShell commands

* Updated docker run commands

* WIP "installation" guide

This PR adds an installation guide with instructions on how to use
disk storage to achieve persistent storage.

Closes #533

* Formatting cleanup

* Swapped to Docker based instructions

* Moved install into "install" directory, added PowerShell commands

* Fixed wording about running container and environment variables

* Fixed a type-o

* Code review comments, cleaned up PowerShell commands

* Updated docker run commands

* Update to gomods/proxy:latest
2018-08-27 09:20:41 -06:00
Rob j Loranger
0f218d0347 disable inline copy to clipboard (#565) 2018-08-27 09:10:52 -06:00
Carolyn Van Slyck
d66b481d11 Publish to gomods Docker registry (#574) v0.1.0 2018-08-27 08:23:41 -05:00
Marwan Sulaiman
9860bd51e7 Proxy: return 200 on / regardless of prefix (#572) 2018-08-26 22:11:04 -04:00
Aaron Schlesinger
53f457e0b8 Rough description of community roles (#444)
* Rough description of community roles

and how to move to new roles

* add mention of CoC

* fixing typo

* adding link to past dev meetings

* moving "core maintainer" alias text

* calling out specifically that contributors have read access

* formatting

* Addressed previous concerns.

Broke all markdown lines on or under 80 chars because vim, also the
majority of the doc was formatted that way.

* link to slack re: missing meetings

* use emphasis instead of single quote for 'don't know enough'

* use code element in html

* expand on CoC duty

co-authored-by: Aaron Schlesinger <arschles@gmail.com>
co-authored-by: robjloranger <robjloranger@protonmail.com>
2018-08-26 19:07:22 -05:00
marpio
1de9ea4c2a Powershell - clean up ENV after tests (#568)
* clean up ENV after tests
2018-08-26 22:40:28 +02:00
Komu Wairagu
f2047cfa79 Add support for Go Modules (#371)
* add go.sum file
added .sum file via, go mod -sync

* update go modules deps

* mod init with Go version 1.11

* update github.com/gobuffalo/uuid
The update is necessary because Gopkg.lock has uuid at v2.0.1 however, that version no longer
exists in th gobuffalo/uuid repo

* add gobuffalo/plush

* ran tests

* ran go mod tidy
2018-08-25 09:16:22 -07:00
Aaron Schlesinger
87f65bac7a adding document that explains how reviews happen on PRs (#470)
* WIP: adding document that explains how reviews happen on PRs

Fixes https://github.com/gomods/athens/issues/467

* adding more steps

* Incorporate review feedback

co-authored-by: Carolyn Van Slyck <carolyn.vanslyck@microsoft.com>
co-authored-by: Aaron Schlesinger <arschles@gmail.com>

* Fix verify your work to specify what the CI runs

co-authored-by: Carolyn Van Slyck <carolyn.vanslyck@microsoft.com>
co-authored-by: Aaron Schlesinger <arschles@gmail.com>

* Keep important PRs open longer

co-authored-by: Carolyn Van Slyck <carolyn.vanslyck@microsoft.com>
co-authored-by: Aaron Schlesinger <arschles@gmail.com>
2018-08-24 15:34:49 -07:00
Michal Pristas
539700e598 KindNotFound for all storages (#560)
* all exc mongo

* module, version associated with each storage error

* remove confusion

* removed formatted error in favor of raw flavor

* once more
2018-08-24 20:00:00 +02:00
marpio
fa16c6950b Powershell scripts (#525)
* port scripts to ps

* remove ps core features

* init script

* make it work on ps 5.0

* sync with make file

* cleanup

* cleanup

* review feedback

* newline
2018-08-24 19:44:36 +02:00
Carolyn Van Slyck
7c137a736b Document proxy authentication in the FAQ (#541)
* Document proxy authentication in the FAQ

* Fix typo
2018-08-24 11:04:06 -05:00
Carolyn Van Slyck
26e8197b82 Publish docker images during CI builds (#544)
master builds publish using the git describe output  as the immutable tag and
canary for the mutable tag. Examples:

  gomods/proxy:abc1234
  gomods/proxy:canary

tagged builds publish using the tag as the immutable tag, which is
usually going to be a semver value and with latest for the mutable tag.
Examples:

  gomods/proxy:v1.0.0
  gomods/proxy:latest

branch builds publish using the git describe output as the immutable tag and the
branch name for the mutable tag. Examples:

  gomods/proxy:def4567
  gomods/proxy:beta-1
2018-08-24 10:36:42 -05:00
Marwan Sulaiman
4a618990a2 pkg/download/goget: ensure each List func gets its own GOPATH (#559)
* pkg/download/goget: ensure each List func gets its own GOPATH

* Add list tests

* fix diskref tests
2018-08-24 10:19:17 -04:00
Marwan Sulaiman
fc581c3784 pkg/storage: ensure mongo returns KindNotFound (#558) 2018-08-24 02:13:09 -04:00