GitHub Actions for Python projects using poetry
This file contains hidden or 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
| time="2020-10-13T12:08:28Z" level=info msg="Started syncing rollout at (2020-10-13 12:08:28.976596472 +0000 UTC m=+0.127703923)" namespace=default rollout=nginx | |
| time="2020-10-13T12:08:28Z" level=warning msg="Assuming 7b54fb9677 for new replicaset pod hash" namespace=default rollout=nginx | |
| time="2020-10-13T12:08:28Z" level=info msg="Patched: {\"status\":{\"conditions\":[{\"lastTransitionTime\":\"2020-10-13T12:08:28Z\",\"lastUpdateTime\":\"2020-10-13T12:08:28Z\",\"message\":\"Rollout \\\"nginx\\\" is progressing.\",\"reason\":\"ReplicaSetUpdated\",\"status\":\"True\",\"type\":\"Progressing\"},{\"lastTransitionTime\":\"2020-10-13T12:08:28Z\",\"lastUpdateTime\":\"2020-10-13T12:08:28Z\",\"message\":\"Rollout does not have minimum availability\",\"reason\":\"AvailableReason\",\"status\":\"False\",\"type\":\"Available\"}],\"currentPodHash\":\"7b54fb9677\",\"currentStepHash\":\"8cd479c8f\",\"currentStepIndex\":0,\"observedGeneration\":\"58c975674b\",\"selector\":\"app=nginx\"}}" namespace=default rollout=nginx | |
| time="2 |
This file contains hidden or 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
| time="2020-10-13T12:08:28Z" level=info msg="Creating event broadcaster" | |
| time="2020-10-13T12:08:28Z" level=info msg="Setting up event handlers" | |
| time="2020-10-13T12:08:28Z" level=info msg="Setting up experiments event handlers" | |
| time="2020-10-13T12:08:28Z" level=info msg="Setting up analysis event handlers" | |
| time="2020-10-13T12:08:28Z" level=info msg="Waiting for controller's informer caches to sync" | |
| time="2020-10-13T12:08:28Z" level=info msg="Starting Controllers" | |
| time="2020-10-13T12:08:28Z" level=info msg="Started controller" | |
| time="2020-10-13T12:08:28Z" level=info msg="Starting Metric Server at 0.0.0.0:8090" | |
| time="2020-10-13T12:08:28Z" level=info msg="Starting Rollout workers" | |
| time="2020-10-13T12:08:28Z" level=info msg="Starting Experiment workers" |
This file contains hidden or 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
| --- | |
| apiVersion: argoproj.io/v1alpha1 | |
| kind: AnalysisTemplate | |
| metadata: | |
| name: integrationtests | |
| spec: | |
| metrics: | |
| - name: integrationtests | |
| failureLimit: 0 | |
| provider: |
This file contains hidden or 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
| FROM golang:1.14-alpine as backend | |
| # Precompile standard library | |
| RUN CGO_ENABLED=0 GOOS=linux go install -v -a std | |
| # Install dependencies | |
| WORKDIR /go/src/cache-failure | |
| COPY ./go.mod ./go.sum ./ | |
| SHELL ["/bin/ash", "-o", "pipefail", "-c"] | |
| RUN go mod graph | awk '{if ($1 !~ "@") print $2}' | xargs go get -v |
This file contains hidden or 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
| readinessProbe: | |
| exec: | |
| command: ["/root/grpc_health_probe", "-addr=:6666"] | |
| initialDelaySeconds: 1 | |
| livenessProbe: | |
| exec: | |
| command: ["/root/grpc_health_probe", "-addr=:6666"] | |
| initialDelaySeconds: 2 | |
| imagePullPolicy: IfNotPresent |
This file contains hidden or 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
| resource "aws_vpc_endpoint" "s3" { | |
| vpc_id = "${aws_vpc.main.id}" | |
| service_name = "com.amazonaws.us-west-2.s3" | |
| tags = { | |
| Environment = "test" | |
| } | |
| } |
This file contains hidden or 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
| import random | |
| from datetime import datetime, timezone | |
| BASE62 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
| def encode(num, alphabet=BASE62): | |
| """Encode a positive number in Base X | |
| Arguments: | |
| - `num`: The number to encode | |
| - `alphabet`: The alphabet to use for encoding |
This file contains hidden or 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
| import asyncio | |
| from aiohttp import ClientSession | |
| async def fetch(url, session): | |
| async with session.get(url) as response: | |
| return await response.json() | |
| async def main(): | |
| url = 'http://localhost:8000' |
This file contains hidden or 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
| #!/bin/sh | |
| date -u +"%a, %Y-%m-%d" | xclip -sel clip | |
| echo "Evernote header date has been copied to your clipboard" |