在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mozilla/remote-settings开源软件地址:https://github.com/mozilla/remote-settings开源编程语言:Python 97.2%开源软件介绍:Remote SettingsRemote Settings is a Mozilla service that makes it easy to manage evergreen settings data in Firefox. A simple API is available in Firefox for accessing the synchronized data. https://remote-settings.readthedocs.ioContentThis Remote Settings repository contains the following:
RunYou need Docker and make start Your Remote Settings instance is now ready at http://localhost:8888. See the *Setup a Local Server* tutorial for more details. Test LocallyKinto Remote Settings Unit Tests To run unit tests, you need Postgres installed and a database make build-db After this setup is complete, tests can be run with make test Integration & Browser Tests With Docker and docker-compose, test that all components are working as expected with: make build
make integration-test
make browser-test Note The That will start When you're done running the above command, the individual servers will still be running and occupying those ports on your local network. When you're finished, run: make stop Test Remote ServerIntegration tests can be executed on a remote server. docker-compose build tests docker-compose run \
--env SERVER=https://settings.dev.mozaws.net/v1 \
--env MAIL_DIR="" `# disable tests about emails.` \
--env SKIP_SERVER_SETUP=true \
--env EDITOR_AUTH=editor:azerty123 \
--env REVIEWER_AUTH=reviwer:s3cr3t \
tests integration-test Debugging Locally (simple)The simplest form of debugging is to run a suite of tests against the kinto server: make integration-test
make browser-test Debugging Locally (advanced)Suppose you want to play with running the Kinto server, then go into
a docker-compose run --service-ports --user 0 web bash Now you're For example, instead of starting Kinto with kinto start --ini config/local.ini Another thing you might want to debug is the docker-compose run tests bash Now, from that curl http://autograph:8000/__heartbeat__
curl http://web:8888/v1/__heartbeat__ Upgrade ThingsMost common use-case is that you want to upgrade one of the dependencies. Top level dependencies are listed in We use pip-tools's pip-compile command to generate the exhaustive list of pinned dependencies with their hash. To upgrade a single package, run: pip-compile --upgrade-package kinto-attachment To test that this installs run: docker-compose build web About versioningWe respect SemVer here. However, the "public API" of this package is not the user-facing API of the service itself, but is considered to be the set of configuration and services that this package and its dependencies use. Accordingly, follow these rules:
In other words, minor and patch versions are uncomplicated and can be deployed automatically, and major releases are very likely to require specific actions somewhere in the architecture. ReleasingFirst:
git checkout -b prepare-X.Y.Z
prerelease
git commit -a --amend
git push
git checkout main
git pull
git tag -a X.Y.Z
git push origin X.Y.Z
git checkout -b start-X.Y.Z
git push
Note The Mozilla Jenkins job will catch the latest Docker container on Dockerhub
and immediately deploy it to Remote Settings DEV. It will deploy the latest tag
on Remote Settings STAGE.
Integration tests will be executed.
Results are reported in the Mozilla |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论