Commit graph

26 commits

Author SHA1 Message Date
Ben Schwartz
41ae0f6dbb Restructure per PR suggestions 2022-05-11 12:46:06 -04:00
Vinicius Fortuna
7389ce724f Migrate to eslint 2022-03-10 01:50:59 +00:00
Vinicius Fortuna
0f5bf1f89a Reformat connection_metrics 2022-03-09 23:31:41 +00:00
Vinicius Fortuna
737b6255b8 Fix lint error 2022-03-09 23:24:39 +00:00
Vinicius Fortuna
3034e59f9f Fix lint 2022-03-09 23:10:15 +00:00
Daniel LaCosse
9d80b6d448
Migrate from Yarn to Node lts/gallium (#1004)
* attempt upgrade over CI

update shadowbox build node version

wild guess

try other image, not holding my breath

switch image back, try no --upgrade? lol

whoops wrong SHA

trying this tip out of hand - will make platform a env var next

apparently buildx is supposed to detect the platform - lets see

find replace yarn w/ npm

fix git hook

cache npm deps

proper lock and enforce engine

licenses are... generated by yarn lmao

some weird leftovers

explode out test workflow jobs

Title Case and check for cache hit

upgrade NPM

check version...

eh, worth a try

reinstall deps for now so we can debug downstream issues

use root bin

fix npm workspace, merge lint w/ setup

HMMM

attempt cache load

fix keys

remove restore-keys

regular install

attempt more "correct" npm approach

annoyingly caching ~/.npm doesn't cache the global npm version

less correct node_module cache, will roll back if doesn't work

er... node 15 :/, restore keys

changing key...?

permission setting so cache can properly hit

separate dependecy permission task

verbose chmod

fix sentry webhook

consistency thing

* print architecture

* attempt amd64-explicit node image

* attempt nodev16 upgrade

* ah, okay, let's try picking this hash

* fix node version reference and npm run clean

* revert untouched files caught in squash

* remove yarn from travis.yml

* testing ci

* npmrc comment, revert one of cis

* Update src/server_manager/web_app/run_gallery_action.sh

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* Update src/server_manager/web_app/run_action.sh

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* licenses change

* fix package-lock regression

* fix webpack-dev-server properly

* set install to ci in Dockerfile

* forgot to include the README

* add ci where it makes sense

* delete this part of the README

* missed one

* testing sub-node_modules

* better chmod

* prefer glob

* reset .github/workflows/test.yml

* oops, yarn in ci

* rename everything (#1006)

* Update test.yml

* check_requirements (#1008)

* reqcheck draft

* finish drafting script - need to test and add to hooks

* attempt to roll our own setup...

* remove setup script and rename a couple things

* remove this nightmare lol

* Update release_manager.yml

* Update test.yml

* 'do' -> 'action'

* run -> start

* Update src/shadowbox/docker/build.action.sh

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* Update README.md

* Update README.md

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* rename 'action' to action

* add action list to run action itself

* Update src/shadowbox/README.md

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update README.md

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update scripts/run_action.sh

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update src/server_manager/scripts/fill_packaging_opts.sh

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* style guide fixes

* lower case fixes

* enforce major version

* Update scripts/run_action.sh

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update package.json

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>
2021-11-05 16:40:34 -04:00
Ben Schwartz
5f95925378 Update to electron-13
This change updates the electron version, and other dependency versions
that needed to be updated due to compatibility or deprecation.
2021-06-15 09:56:06 -04:00
Ben Schwartz
7d1fe0205c Require scripts to be shellcheck-compliant 2021-02-17 11:57:32 -05:00
Ben Schwartz
fe037ec726 Remove CONNECTIONS_PATH and FEATURES_PATH 2021-02-12 14:27:41 -05:00
Ben Schwartz
abc4ae8772 Substantive shell script cleanups
Running "shellcheck", and attempting to comply with the shell script
style guide, required hundreds of trivial changes, and a small number of
nontrivial ones.  For ease of review, this PR includes only the
nontrivial changes.
2021-02-12 11:48:18 -05:00
Jonathan Cohen
cf355a6fee
Per-Key Data Limits in Shadowbox (#769)
* s/AccessKeyDataLimit/DefaultDataLimit/g for shadowbox

* Implement per-key custom data limits in shadowbox

* Shadowbox integration test

* Fix the manager service test to maintain backwards compatibility with
the GET /server response

* Fix integration test for Travis

* Fix lint errors

* Implement removal of access key data limits

* Persist custom data limits

* Bump Shadowbox version number

* Add a per key dat alimit count to the feature metrics endpoint

This also involved modifying the schema of
uproxysite:uproxy_metrics_dev.feature_metrics to include the new field.
See https://cloud.google.com/bigquery/docs/managing-table-schemas#bq_1
for how this was accomplished

Tested:
  yarn do metrics_server/test && yarn do metrics_server/test_integration

* Collect usage metrics for per-key data limits

* API documentation and cleanup

* Respond to review comments

* Respond to review comments

* Don't encode the data limit in the access key url

This should have been caught in the integration test, but the
integration test was miswritten with "echo" instead of "fail", cause the
test to mistakenly pass.

Fixing this exposed other errors in the test, which were fixed.  The
test has been confirmed to both pass and fail successfully.

* Fix the manager service unit test

* Remove stray files

* Split integration test into individual functions

* Clarify comment in the AccessKey interface

* Be more explicit about behavior when no data limits are set

* Remove spuriosu import added by vscode

* DOn't bump shadowbox version number yet

* Rename to accessKeyToApiJson

* Don't export AccessKeyJson and use "StorageJson"

* Don't await data limit enforcement

* Rename the defaultDataLimit getter

* Make dataLimit in the accesskey model readonly

* Use nullish coalescing operator
2020-12-23 13:52:50 -05:00
alalamav
2790202627
Fix unit tests (#693) 2020-06-22 16:32:48 -04:00
alalamav
ed9fdd3819
Update @types/express (#602) 2020-03-09 16:06:23 -04:00
Jonathan Cohen
c6435feae5
Select newly added keys (#601)
* Select newly added keys

* Add a comment about force rendering

* Use the newest types for express and remove a conflict between multiple
versions of express between the top level node modules and the
metrics_server node modules.  Also fix node typing at major version 12
to avoid issues with typing in node 13.
2020-03-06 18:33:07 -05:00
alalamav
578d44baa9
Feature metrics (#577) 2020-02-26 12:49:52 -05:00
Trevor Johnston
3c54284732 tighten docs 2018-12-11 14:48:49 -05:00
Trevor Johnston
b3ab9c9962 upgrade to latest bigquery client library, remove now-unnecessary typings 2018-12-11 14:33:08 -05:00
Trevor Johnston
21b763e3c4 update metrics deploy scripts and instructions 2018-12-10 17:25:18 -05:00
Trevor Johnston
59c8e40750 require cloud emulator to be installed globally to work around node 6.x weirdness, update instructions 2018-12-10 16:48:45 -05:00
Trevor Johnston
23ccafc3bd make metrics server build script an action, update docs 2018-12-10 14:22:47 -05:00
fortuna
9bbe489785 Remote set -x 2018-10-25 14:55:06 -04:00
fortuna
9fc8cb034a Specify GCP project for deployment 2018-05-17 16:36:04 -04:00
fortuna
a9ef2b7b09 Fix DO wording 2018-05-16 17:50:15 -04:00
fortuna
1263f3bfa9 Update documentation 2018-04-06 16:47:49 -04:00
fortuna
d22cbaed8d Use yarn workspaces 2018-04-06 16:29:25 -04:00
Trevor Johnston
c44d9f2fb9 import code 2018-03-14 17:52:39 -04:00