#codefresh (2019-05)

codefresh

Archive: https://archive.sweetops.com/codefresh/

2019-05-01

btai avatar

whats the new unlimited builds pricing model for codefresh going to be like?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

@oriel can help

oriel avatar
oriel
02:37:34 AM

@oriel has joined the channel

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

for additional context see #gitops

oriel avatar

@btai we’re looking to have the model which will be per concurrent steps, so no matter how many build you’re running overall it’s all about the concurrency of steps. Are you looking for specific pricing? Or just general idea of how it will work?

btai avatar

Curious what the specific pricing will be

2019-05-02

mgrube avatar

When are you guys going to roll out the new pricing schema @oriel?

dustinvb avatar
dustinvb

Mark, I am opening this on your Codefresh Slack channel.

1
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

hahah! love this image

mgrube avatar

I made this a slack emoji a while back, some of my developers REALLY hate it, others love it

Michael Kolb avatar
Michael Kolb

How do you turn off the new projects feature…. It is breaking my ability to work with and launch pipelines

dustinvb avatar
dustinvb

@Michael Kolb Can you send this information to [email protected] along with some additional details around what items are no longer working after the Project Features implementation? Thank you.

2019-05-04

Codefresh Status - Incident History avatar
Codefresh Status - Incident History
03:20:12 PM

Docker Hub Planned Maintenance THIS IS A SCHEDULED EVENT May 4, 16:00 UTC  -  May 5, 02:15 UTC May 4, 15:04 UTC Scheduled - Docker Hub will be performing scheduled maintenance this Saturday May 4, 2019 from approximately 9:00AM to 7:15PM, US Pacific Daylight Time (UTC-7). During this window, Docker Hub will be operating in a read-only mode. Registry logins and image pulls will continue to work for a majority of this time frame. Pushes however will generally be unavailable. Maintenance activities, approximate timelines…

Docker Hub Planned Maintenance

Codefresh’s Status Page - Docker Hub Planned Maintenance.

Codefresh Status - Incident History avatar
Codefresh Status - Incident History
04:09:43 PM

Docker Hub Planned Maintenance May 4, 16:00 UTC In progress - Scheduled maintenance is currently in progress. We will provide updates as necessary. May 4, 15:04 UTC Scheduled - Docker Hub will be performing scheduled maintenance this Saturday May 4, 2019 from approximately 9:00AM to 7:15PM, US Pacific Daylight Time (UTC-7). During this window, Docker Hub will be operating in a read-only mode. Registry logins and image pulls will continue to work for a majority of this time frame. Pushes however will generally be…

Codefresh Status - Incident History avatar
Codefresh Status - Incident History
02:29:58 AM

Docker Hub Planned Maintenance May 5, 02:16 UTC Completed - The scheduled maintenance has been completed. May 4, 16:00 UTC In progress - Scheduled maintenance is currently in progress. We will provide updates as necessary. May 4, 15:04 UTC Scheduled - Docker Hub will be performing scheduled maintenance this Saturday May 4, 2019 from approximately 9:00AM to 7:15PM, US Pacific Daylight Time (UTC-7). During this window, Docker Hub will be operating in a read-only mode. Registry logins and image pulls will continue to work…

Docker Hub Planned Maintenance

Codefresh’s Status Page - Docker Hub Planned Maintenance.

2019-05-06

Codefresh Status - Incident History avatar
Codefresh Status - Incident History
04:05:13 PM

codefresh.io website is down May 6, 16:00 UTC Monitoring - Consumer website is back up. We are monitoring. May 6, 15:59 UTC Update - We are continuing to work on a fix for this issue. May 6, 15:56 UTC Identified - Our consumer facing website is down but you can still log into your services at https://g.codefresh.io

Our hosting provider for our consumer facing site is looking into server issues.

codefresh.io website is down

Codefresh’s Status Page - codefresh.io website is down.

Codefresh Status - Incident History avatar
Codefresh Status - Incident History
04:55:21 PM

codefresh.io website is down May 6, 16:36 UTC Resolved - This incident has been resolved. May 6, 16:00 UTC Monitoring - Consumer website is back up. We are monitoring. May 6, 15:59 UTC Update - We are continuing to work on a fix for this issue. May 6, 15:56 UTC Identified - Our consumer facing website is down but you can still log into your services at https://g.codefresh.io

Our hosting provider for our consumer facing site is looking into server issues.

2019-05-07

Codefresh Status - Incident History avatar
Codefresh Status - Incident History
10:55:16 AM

Build initialization issue May 7, 10:50 UTC Resolved - We had experienced a 30 minutes issue which affected initializing new builds. 2:51 am - 3:19 am PDT

Build initialization issue

Codefresh’s Status Page - Build initialization issue.

2019-05-10

oscarsullivan_old avatar
oscarsullivan_old

How do I go about launching two containers (a la docker-compose) in a pipeline? I run GOSS in my pipeline but it depends on access to a database which I’d like to be inside the pipeline instead of a real one

Nikola Velkovski avatar
Nikola Velkovski

You will need to run docker compose in daemon mode.

Nikola Velkovski avatar
Nikola Velkovski

so that execution can continue and you can do testing.

Nikola Velkovski avatar
Nikola Velkovski

the database should be inside the docker-compose

Nikola Velkovski avatar
Nikola Velkovski

and you will need a waiting script.

Nikola Velkovski avatar
Nikola Velkovski

what I do is stick this in the docker-compose for the app

    command:
      - /bin/sh
      - -c
      - |
        while ! nc -z mysql-test 3306; do
          echo "Database is not ready yet."
          sleep 1
        done
Nikola Velkovski avatar
Nikola Velkovski

mysql-test is the name of the service in docker-compose

Nikola Velkovski avatar
Nikola Velkovski

does this help ?

Nikola Velkovski avatar
Nikola Velkovski

also -exit-code-from is helpful https://docs.docker.com/compose/reference/up/

docker-compose up

Usage: up [options] [–scale SERVICE=NUM…] [SERVICE…] Options: -d, –detach Detached mode: Run containers in the background, print new container names. Incompatible with –abort-on-container-exit. –no-color Produce monochrome output. –quiet-pull Pull without…

2019-05-12

Codefresh Status - Incident History avatar
Codefresh Status - Incident History
04:14:53 PM

Codefresh UI doesn’t load May 12, 16:02 UTC Investigating - We are currently investigating an issue where Codefresh UI doesn’t load. Build automatic triggers are not affected.

Codefresh UI doesn't load

Codefresh’s Status Page - Codefresh UI doesn’t load.

Codefresh Status - Incident History avatar
Codefresh Status - Incident History
04:34:47 PM

Codefresh UI doesn’t load May 12, 16:20 UTC Resolved - The incident has been resolved May 12, 16:02 UTC Investigating - We are currently investigating an issue where Codefresh UI doesn’t load. Build automatic triggers are not affected.

2019-05-15

dustinvb avatar
dustinvb

@Olivier Vanden Bos please join me here. We run this community Slack in partnership with Cloud Posse.

Olivier Vanden Bos avatar
Olivier Vanden Bos
06:08:48 PM

@Olivier Vanden Bos has joined the channel

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

@Olivier Vanden Bos welcome!

1
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

doing public office hours now: https://zoom.us/j/684901853

James D. Bohrman avatar
James D. Bohrman

I wish I’d seen this

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Every Wednesday at 11:30 am pst

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Join is next week!

1
James D. Bohrman avatar
James D. Bohrman

In my calender weekly!

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

if anyone has questions on codefresh…

Olivier Vanden Bos avatar
Olivier Vanden Bos

Can I invite some of my developers to this slack channel ?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

please do - it’s open for everyone

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
Olivier Vanden Bos avatar
Olivier Vanden Bos

Question About pushing images to dockerhub

Olivier Vanden Bos avatar
Olivier Vanden Bos

I usually do that locally to push : docker tag game-client imbellus/game-client-build:1 docker push imbellus/game-client-build:1

Olivier Vanden Bos avatar
Olivier Vanden Bos

Error in code fresh is : Running push step: Pushing to Docker Registry Pulling image ovandenbos-imb/game-client18865fc9fba8ac10129b14677adfbac370858d320c646fa7697ad46791b9f90a Digest: sha256:18865fc9fba8ac10129b14677adfbac370858d320c646fa7697ad46791b9f90a Status: Image is up to date for [r.cfcr.io/ovandenbos-imb/game-client@sha256//r.cfcr.io/ovandenbos-imb/game-client@sha256:18865fc9fba8ac10129b14677adfbac370858d320c646fa7697ad46791b9f90a) Finished pulling [r.cfcr.io/ovandenbos-imb/game-client@sha256//r.cfcr.io/ovandenbos-imb/game-client@sha256:18865fc9fba8ac10129b14677adfbac370858d320c646fa7697ad46791b9f90a) from internal registry Tagging image as: [docker.io/game-client//docker.io/game-client:1) The push refers to repository [docker.io/library/game-client] denied: requested access to the resource is denied [SYSTEM] Error: Failed to push image [docker.io/game-client//docker.io/game-client:1;) caused by NonZeroExitCodeError: Container for operation: push failed with exit code: 12

Olivier Vanden Bos avatar
Olivier Vanden Bos

for the yaml: client_image: title: Building Docker Image type: build stage: build image_name: game-client working_directory: ./ tag: ‘${{CF_BRANCH_TAG_NORMALIZED}}’ dockerfile: Dockerfile

push_to_registry: title: Pushing to Docker Registry type: push stage: postbuild candidate: ‘${{client_image}}’ tag: ‘1’ registry: dockerhub

Olivier Vanden Bos avatar
Olivier Vanden Bos

any idea of what I am doing wrong ?

Olivier Vanden Bos avatar
Olivier Vanden Bos

‘dockerhub ‘ registry is setup and ‘Test’ successful

Olivier Vanden Bos avatar
Olivier Vanden Bos

the obvious step that I am missing is the ‘rename’ part in tagging : docker tag game-client imbellus/game-client-build

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

The image_name needs to be relative to DockerHub

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

e.g. for us, it would be cloudposse/image-client since cloudposse is our org

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Here’s how we do it

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
cloudposse/geodesic

Geodesic is a cloud automation shell. It's the fastest way to get up and running with a rock solid, production grade cloud platform built on top of strictly Open Source tools. ★ this repo! h…

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

this works because our CF_REPO_OWNER (cloudposse) is the same as our dockerhub

Olivier Vanden Bos avatar
Olivier Vanden Bos

Cool. lemme try.

Olivier Vanden Bos avatar
Olivier Vanden Bos

It worked thank

Olivier Vanden Bos avatar
Olivier Vanden Bos

Freestyle npm step stuck

Olivier Vanden Bos avatar
Olivier Vanden Bos

my log looks like that :

Olivier Vanden Bos avatar
Olivier Vanden Bos

the page is actually freezing and I cannot copy to the clipboard, but that’s a different issue

Olivier Vanden Bos avatar
Olivier Vanden Bos

this works locally for me

Olivier Vanden Bos avatar
Olivier Vanden Bos

maybe because we are using a private repo on git ?

Olivier Vanden Bos avatar
Olivier Vanden Bos

“dependencies”: { “chart.js”: “^2.8.0”, “chartjs-plugin-datalabels”: “^0.5.0”, “detect-browser”: “^4.4.0”, “gameui-design-system”: “<git+ssh://[email protected]/ImbellusBetta/gameui-design-system.git#v3.7.3>”, “lodash.debounce”: “^4.0.8”, “math3d”: “^0.2.2”, “object-path”: “^0.11.4”,

oriel avatar

@dustinvb can you please give this one a look when you get a chance?

dustinvb avatar
dustinvb

@Olivier Vanden Bos Can you send me the Build’s URL from the logs page you pulled the excerpt. I’d like to examine the commands in more detail there is a possibility that we need pass credentials to the step to allow access to private repository.

dustinvb avatar
dustinvb

I see this is using the ssh method to clone the private repository. I believe this is a Docker build process. I am checking now to see how we can get the context you’ve created and convert that to be able to specify a SSH key.

dustinvb avatar
dustinvb

I think we will need to incorporate something like the following into the Dockerfile itself using a combination of build arg to import the key to be used. Do you have a service account user that you can create an ssh key for that has access to the npm repository?

Olivier Vanden Bos avatar
Olivier Vanden Bos

Sorry @dustinvb this one I fixed. Found the doc and that fixed it. In deed, the ‘Freeze’ was really annoying and lack of logs (but could get better logs with the download panel)

dustinvb avatar
dustinvb

If you see this freeze again can you please send me the build’s url and the step and spot where the freeze occurred. I’d like to have support look. If you have the original I wouldn’t mind looking at that.

Olivier Vanden Bos avatar
Olivier Vanden Bos

I can

Olivier Vanden Bos avatar
Olivier Vanden Bos

this one is the latest one

Olivier Vanden Bos avatar
Olivier Vanden Bos

froze for 1h 10m

Olivier Vanden Bos avatar
Olivier Vanden Bos

I might have cancelled it

dustinvb avatar
dustinvb

Can I get your OS + version and Browser + version?

Olivier Vanden Bos avatar
Olivier Vanden Bos

Windows 10 Chrome Version 74.0.3729.157

2019-05-16

michal.matyjek avatar
michal.matyjek

Did you know https://codecov.io/ works with codefresh: https://docs.codecov.io/docs/supported-ci-providers?

I did not realize, since we did code coverage in composition and env variables did not get passed, but after passing these into the composition candidate made it “just work”:

- CODECOV_SLUG=${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
- CF_BUILD_URL=${{CF_BUILD_URL}}
- CF_BUILD_ID=${{CF_BUILD_ID}}
- CF_BRANCH=${{CF_BRANCH}}
- CF_REVISION=${{CF_REVISION}}

(on top of CODECOV_TOKEN)

Code Coverage Done Right | Codecov

Develop healthier code using Codecov’s leading, dedicated code coverage solution. Try it free

michal.matyjek avatar
michal.matyjek

^^ we had codecov working on codefresh already, but that just adds extra metadata on the codecov side - like link to build etc.

1
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Thanks for sharing

Mat Geist avatar
Mat Geist

playing with codefresh, ran into an interesting issue where not including the tag key for the build step, despite it being marked as having a default value in the docs, was throwing this error TypeError: Cannot read property 'branch' of undefined during the initialization process. couldnt find anything about this anywhere so hopefully this helps someone

2019-05-17

Mat Geist avatar
Mat Geist
05:27:08 PM

trying to use the codefresh build-harness to setup pipelines ( https://github.com/cloudposse/build-harness/tree/master/modules/codefresh ), running into an issue Error: Default git context is not specified. according to the spec, context is optional ( https://codefresh-io.github.io/cli/pipelines/spec/ ), and i cant find a reference to what the “auto select branch” option should be. looking at the yaml from an existing pipeline shows only the same 3 options im trying to provide in the spec template (location, repo, path)

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
cloudposse/codefresh

Codefresh repos and pipelines in code. Contribute to cloudposse/codefresh development by creating an account on GitHub.

Olivier Vanden Bos avatar
Olivier Vanden Bos

Running out of resources @dustinvb

Olivier Vanden Bos avatar
Olivier Vanden Bos

here are my current real blockers

Olivier Vanden Bos avatar
Olivier Vanden Bos

Error response from daemon: Error processing tar file(exit status 1): write /GameClient/Assets/Scenes/CoralReefRewardScene/R&D/Scenes/RS-LayerTest.unity: no spac e left on device

Olivier Vanden Bos avatar
Olivier Vanden Bos

@oriel FYI

dustinvb avatar
dustinvb

Okay this is why I put you on enterprise to begin with. I knew you were going to be building in a way that you’d need extra space. I believe these pipelines are around 40GB. Do you have an estimate on how big these Docker images might get?

dustinvb avatar
dustinvb

@francisco Could you assist here and just check this build out? We’re building using unity and the images are going to be very large. I am not sure but I think we’re pressing the storage limit defined in the runtime.

Olivier Vanden Bos avatar
Olivier Vanden Bos

40GB seems a lot

Olivier Vanden Bos avatar
Olivier Vanden Bos

Lemme check what’s our real size on Jenkins

Olivier Vanden Bos avatar
Olivier Vanden Bos

Docker source image with UNity is 7GB

Olivier Vanden Bos avatar
Olivier Vanden Bos

my full local repo that build 3 targets is around 8GB

Olivier Vanden Bos avatar
Olivier Vanden Bos

now are you including the git files themselves ? .git ?

Olivier Vanden Bos avatar
Olivier Vanden Bos

my .git looks like 20Gb

dustinvb avatar
dustinvb

Hmm well that should have fit. Let me check with my support team on this.

Olivier Vanden Bos avatar
Olivier Vanden Bos

General questions about best strategy to generate artifacts ala Jenkins

Olivier Vanden Bos avatar
Olivier Vanden Bos

we used to zip and upload to S3. I did add the S3 integration.

Olivier Vanden Bos avatar
Olivier Vanden Bos

Do you have any example on how to zip and upload ?

Olivier Vanden Bos avatar
Olivier Vanden Bos

We deploy as well as a static website - still on S3 - but not zipped this time. any useful plugin ?

Olivier Vanden Bos avatar
Olivier Vanden Bos

@dustinvb I am planning to use directly the aws s3-cli ? Is there anything simpler ? I do not see in the doc how to use the s3 artifact integration ? should I deal with the credentials in the script itself ?

dustinvb avatar
dustinvb
codefresh-contrib/s3copy

A plugin to work with s3 buckets. Contribute to codefresh-contrib/s3copy development by creating an account on GitHub.

dustinvb avatar
dustinvb

I am looking for a step to aid with archive now.

dustinvb avatar
dustinvb

For that s3 copy you just need to provide a service account in S3 with bucket access using these variables in the pipeline variables.

AWS_ACCESS_KEY_ID=<id> AWS_SECRET_ACCESS_KEY=<key> AWS_DEFAULT_REGION=<region>

If you plan on using this user over and over you may want to put these variables into a shared config you can import for other builds.

https://codefresh.io/docs/docs/configure-ci-cd-pipeline/shared-configuration/#creating-shared-configuration

Shared configuration

How to keep your pipelines DRY

dustinvb avatar
dustinvb

Sorry haven’t forgot still looking. Steps that often require this have this build in. Trying to find an a-la-carte example.

dustinvb avatar
dustinvb
  ArchiveFiles:
    image: alpine:latest
    commands:
      - apk add --update zip
      - tar -czvf ./archive.tgz ./folder/or/file.txt

I do not see that we have a step for this.

Please try the step below using an alpine image. I am checking with team about OOTB step.

Olivier Vanden Bos avatar
Olivier Vanden Bos

perfect thanks !

Olivier Vanden Bos avatar
Olivier Vanden Bos

@jafow FYI ^^

1
Mat Geist avatar
Mat Geist

ive traced my issue down to codefresh create -f failing no matter what i give it, giving me Error: "{\"status\":500,\"code\":\"1001\",\"name\":\"INTERNAL_SERVER_ERROR\",\"message\":\"Internal server error\",\"context\":{}}" not really sure where to go from here

dustinvb avatar
dustinvb

You go right here… Sorry about the delay. I am traveling and often offline on weekends.

Please send me your YAML file for review. It is possible you’re missing a value or somethign.

I have some recent examples I updated here for comparison.

https://github.com/codefresh-contrib/example-voting-app/tree/master/.codefresh/specs

codefresh-contrib/example-voting-app

Docker’s Example Voting App. Contribute to codefresh-contrib/example-voting-app development by creating an account on GitHub.

Mat Geist avatar
Mat Geist

thanks for the reply! https://gist.github.com/mgeist/163026ccfb89626808ec24ca647dc589 using https://codefresh-io.github.io/cli/pipelines/spec/ as a reference, specifically “Pipeline with a remote spec template brought from a git repository”

dustinvb avatar
dustinvb

Can you please try adding a name to your git context and let me know if that corrects the behavior? https://github.com/codefresh-contrib/example-voting-app/blob/master/.codefresh/specs/cd.yaml#L13

Name can be anything to identify the trigger.

I will make sure the team updates our spec examples if this resolves the issue.

codefresh-contrib/example-voting-app

Docker’s Example Voting App. Contribute to codefresh-contrib/example-voting-app development by creating an account on GitHub.

Mat Geist avatar
Mat Geist

same thing, code 1001, 500 internal server error

dustinvb avatar
dustinvb

Can you update your example yaml with the latest?

dustinvb avatar
dustinvb

Do you have a GIT context configured? Can you add these two fields?

https://github.com/codefresh-contrib/example-voting-app/blob/master/.codefresh/specs/dvts.yaml#L20-L21

context being the name of your context. If not, at a minimum please try to add the default revision.

codefresh-contrib/example-voting-app

Docker’s Example Voting App. Contribute to codefresh-contrib/example-voting-app development by creating an account on GitHub.

Mat Geist avatar
Mat Geist
# codefresh get contexts
NAME            TYPE
CF_HELM_DEFAULT helm-repository
github          git.github

and updated script: https://gist.github.com/mgeist/163026ccfb89626808ec24ca647dc589 no dice

Mat Geist avatar
Mat Geist

finally got to the bottom of this, turns out pipeline names will break if they contain /. thanks for the assistance and FYI @dustinvb

dustinvb avatar
dustinvb

Didn’t expect that to be the case. I will discuss with the team exposing this as an error on create.

jafow avatar

It seems like a step in my codefresh.yml ends and proceeds to the next step before the final command exits

jafow avatar

here’s what I’m trying to do:

jafow avatar

pull down terraform and unzip the archive

jafow avatar

here’s the steps in my yaml file:

steps:
  clone_repo:
    stage: prepare
    type: git-clone
    repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
    revision: '${{CF_REVISION}}'
    git: github
  wtf:
    stage: prepare
    image: alpine:latest
    commands:
      - 'apk add curl wget unzip file'
      - 'ls -l'
      - 'curl <https://releases.hashicorp.com/terraform/${{TERRAFORM_VERSION}}/terraform_${{TERRAFORM_VERSION}}_linux_amd64.zip> -o /tmp/terraform.zip'
  next_part:
    stage: prepare
    title: 'hello world'
    image: alpine:latest
    commands:
      - 'ls -lh'
      - 'unzip /tmp/terraform.zip'

jafow avatar

here’s some things I’ve tried:

  • fixing some nice typos
  • changing the step where curl runs
  • running curl with -s ?
jafow avatar

a common error that I get that makes me think the step is ending before the curl exits is this:

End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.
jafow avatar

thrown by unzip

jafow avatar

hey at least it’s friday tho ¯_(ツ)_/¯

jafow avatar

my work around for this was just to put these into a dockerfile and build it. that works really well

dustinvb avatar
dustinvb

I am glad you found a work around. Please note that while we do participate here our Intercom “chat” bubble is staffed 7am-6pm PDT M-F whenever these issues come up please check with the support staff there. We also have hours outside of the ones mentioned.

jafow avatar

thanks @dustinvb I’ll use the chat bubble next time

2019-05-20

Alejandro Rivera avatar
Alejandro Rivera

Hi, I’m trying to get a list of files that changed from current branch off a different branch. e.g. git diff $BRANCH –name-only on a pipeline. Seems that that other branches don’t get fetched so I ran a git fetch $BRANCH, but git asks for credentials. Got ssh key in place as suggested on the documentation but it’s not getting picked up by git. Any ideas on what I’m missing or a workaround for this?

Olivier Vanden Bos avatar
Olivier Vanden Bos

client_ui: title: Building Game UI image: ${{client_image}} stage: build_client working_directory: ${{main_clone}} commands: - mkdir -p ~/.ssh - ssh-keyscan -H github.com >> ~/.ssh/known_hosts - echo “${SSH_KEY}” | tr '”${SPLIT_CHAR}”' ‘\n’ > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ‘/bin/bash docker-build-ui.sh’

Olivier Vanden Bos avatar
Olivier Vanden Bos

@Alejandro Rivera ^^

1
Alejandro Rivera avatar
Alejandro Rivera

thanks Olivier!!!

Olivier Vanden Bos avatar
Olivier Vanden Bos

Cache wiped out on a yml change. is it expected ?

Olivier Vanden Bos avatar
Olivier Vanden Bos

Looking a 2 successive build - 27 min with cache and next one end up to be 2 hours

Olivier Vanden Bos avatar
Olivier Vanden Bos

@dustinvb is it expected ?

Olivier Vanden Bos avatar
Olivier Vanden Bos

literally the only changes on the depot were the yml file of codefresh..

oriel avatar

@Olivier Vanden Bos will check and get back to you as soon as possible. This is the same issue you described in the email you sent me right?

Olivier Vanden Bos avatar
Olivier Vanden Bos

They all seem related. It is almost if the codefrsh/volume was shared accross pipelines and concurrent build could collide somehow

Olivier Vanden Bos avatar
Olivier Vanden Bos

I managed to repro locally though - with simulating the volume persistent accross pipelines. I am still digging.

Olivier Vanden Bos avatar
Olivier Vanden Bos

Found the issue, was on our side

2019-05-21

2019-05-22

Codefresh Status - Incident History avatar
Codefresh Status - Incident History
05:34:54 PM

GitHub Incident: delay in notification deliveries May 22, 17:18 UTC Identified - GitHub is experiencing an incident related to their Notifications. This impacts email and webhook deliveries.

More information here: https://www.githubstatus.com/incidents/nf4gcjtcsqdb

GitHub Incident: delay in notification deliveries

Codefresh’s Status Page - GitHub Incident: delay in notification deliveries.

Incident on 2019-05-22 16:56 UTC

GitHub’s Status Page - Incident on 2019-05-22 16:56 UTC.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Public/Free Office Hours with Cloud Posse starting now!!

https://zoom.us/j/684901853

Codefresh Status - Incident History avatar
Codefresh Status - Incident History
12:00:05 AM

GitHub Incident: delay in notification deliveries May 22, 23:46 UTC Resolved - This incident has been resolved. May 22, 17:18 UTC Identified - GitHub is experiencing an incident related to their Notifications. This impacts email and webhook deliveries.

More information here: https://www.githubstatus.com/incidents/nf4gcjtcsqdb

GitHub Incident: delay in notification deliveries

Codefresh’s Status Page - GitHub Incident: delay in notification deliveries.

Incident on 2019-05-22 16:56 UTC

GitHub’s Status Page - Incident on 2019-05-22 16:56 UTC.

2019-05-23

2019-05-28

2019-05-29

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

public #office-hours starting now! join us here: https://zoom.us/j/684901853

2019-05-30

btai avatar

what is happening in “Initializing Process”

btai avatar

just started using codefresh and im getting “TypeError: Cannot read property ‘branch’ of undefined”

Mat Geist avatar
Mat Geist

adding a tag key to the build step fixed that error for me

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

can you share your yaml as a snippet?

btai avatar
version: '1.0'
stages:
  - prepare
  - build
steps:
  main_clone:
    title: Cloning repo
    type: git-clone
    repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
    revision: '${{CF_REVISION}}'
    stage: prepare
    git: github
  build_docker_image:
    title: Building Docker Image
    type: build
    stage: build
    image_name: bug-tracker
    working_directory: ./
    dockerfile: Dockerfile
btai avatar

haha

btai avatar

adding tag to build_docker_image

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

aha! yes

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
we require the tag here else the pipeline will fail to initialize by dustinvanbuskirk · Pull Request #76 · cloudposse/testing.cloudposse.co

@osterman Ran into an issue where pipeline would fail to initialize due to the tag argument not being present in the build step. Can you please review? I used the SHORT SHA for the tag.

btai avatar

do we get docker layer caching automatically w/codefresh

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

yes

btai avatar

the ui is so nice party_parrot

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

example of layer caching working

btai avatar

i see a borken image

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

in slack?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

wierd

Mat Geist avatar
Mat Geist

yeah slack does that sometimes.. refreshing or clicking will show it

Andriy Knysh (Cloud Posse) avatar
Andriy Knysh (Cloud Posse)

if you click on it, it shows

btai avatar

i see it now

btai avatar

do you guys use the codefresh image registry too?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

yep

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

we use that and ECR

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

for simpler setups without the requirements of ECR use the codefresh registry

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

ECR is trickier plus max 1000 tags per repo

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

(which means you cannot use same repo for prod and ci)

btai avatar

i see

btai avatar

bout to test out this layer caching

btai avatar

circle charges for it and its super fickle (barely ever works). but i believe codefresh has a persistent volume per account

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

PV per pipeline

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

i believe

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

@dustinvb

btai avatar

amazing

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
cloudposse/example-app

Example application for CI/CD demonstrations of Codefresh - cloudposse/example-app

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

here are our pipelines to get you started

btai avatar

how come your build_image doesnt require tag

btai avatar
cloudposse/example-app

Example application for CI/CD demonstrations of Codefresh - cloudposse/example-app

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

i think this is a recent thing

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

none of our pipelines have it, but they started breaking

dustinvb avatar
dustinvb

Yes, very recent. Already contacted my team about this to update in our docs.

dustinvb avatar
dustinvb

And Yes PV per pipeline. When successful volume stored for next pipeline execution./

btai avatar

are we supposed to setup the webhook in gh ourselves or does codefresh do that automatically for us?

btai avatar

i see that, but no webhook was created in my repo

btai avatar

i just created it myself (not sure if the above is a bug or im understanding it incorrectly)

dustinvb avatar
dustinvb

This should be happening automatically. Can you send me the time you setup the GIT Trigger, Trigger Name and the Pipeline you created this trigger on? I am also assuming you’re using GH SaaS?

btai avatar

what do you mean GH Saas?

btai avatar

yeah

btai avatar

So i had a git push that didnt trigger at this time Thu May 30 13:07:03 2019 -0700

btai avatar

thats PST btw

dustinvb avatar
dustinvb

You said the webhook was not under the repository settings?

dustinvb avatar
dustinvb

You had to add manually?

btai avatar

dming you privately

btai avatar

is there a way to resync your github repositories on codefresh? I created a new repo for shared codefresh configs (build, deploy, etc) and I’m trying to select that repo in the dropdown but it doesn’t show up

dustinvb avatar
dustinvb

This should be syncing automatically but we could be seeing some cache at work here. Can you gather your OS and Browser and send that over to our support team using the Intercom Chat Bubble widget?

2019-05-31

btai avatar

is there a way to delete/update helm repos in the codefresh ui?

    keyboard_arrow_up