Code Monkey home page Code Monkey logo

helix-code-bus's Introduction

Helix Code Bus

Service that syncs github with the helix code bus storage

Status

codecov CircleCI GitHub license GitHub issues LGTM Code Quality Grade: JavaScript semantic-release

Installation

Usage

curl https://helix-pages.anywhere.run/helix-services/code-bus@v1

Initial Sync

An initial sync of repository can be done using the aws cli:

$ cd my-git-checkout
$ git pull origin main
$ aws --profile adobe s3 sync  --exclude ".git/*" --exclude ".github/*" . s3://helix-code-bus/<owner>/<repo>/main 

Development

Deploying Helix Code Bus

All commits to main that pass the testing will be deployed automatically. All commits to branches that will pass the testing will get commited as /helix-services/code-bus@ci<num> and tagged with the CI build number.

helix-code-bus's People

Contributors

adobe-bot avatar renovate-bot avatar renovate[bot] avatar rofe avatar semantic-release-bot avatar trieloff avatar tripodsan avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ghas-results

helix-code-bus's Issues

if base ref is missing for branch creation

when the branch is missing for a new branch, use the default branch.

adobe/spark-website#lighthouse-finetuning branch created.
adobe/spark-website#lighthouse-finetuning is missing baseRef for branch created. fetching more commit info
adobe/spark-website#lighthouse-finetuning retrieving branch information for parent: cf6f149d8f37408a77d6c0641e3b3c8610980506
adobe/spark-website#lighthouse-finetuning head branches of cf6f149d8f37408a77d6c0641e3b3c8610980506 are []
adobe/spark-website#lighthouse-finetuning modification { type: 'github', owner: 'adobe', repo: 'spark-website', ref: 'lighthouse-finetuning', baseRef: undefined, changes: [ { path: '*', time: '2021-06-02T14:28:15-06:00', commit: '0a6cb58f9f23374934bfa4ae40ce55e45c1d7706', type: 'added' } ], installationId: 464577 }

add support for creating branches

when new branches are created, the code bus should either

a) traverse github and upload the objects or
b) copy the base ref into the branch

a) has the advantage that it uploads a fresh copy of github, but might be slow
b) has the advantage that it is potentially faster but might copy an outdated version of the base ref

Purge live cache on code update

When adding/updating a file in preview, its live URL remains cached with the old version.

Workaround: manual curl -X PURGE <url>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.