Quantcast
Channel: CircleCI Discuss - Latest posts
Viewing all 14735 articles
Browse latest View live

Background step unable to start multiple servers

$
0
0

Hello community,

I would like to make e2e tests on two component in my application. To do it I need to start the two servers before running my tests. So I would like to run background step in which I would like to start my two server at the same time but it’s not working. I have only one server started but not the other and I don’t know why.

      - run:
      name: Expose services
      command: |
          npm start # front
          go run main.go # api
      background: true

Can someone help me to understand why I can’t start my two server ? I also tried to put this two command into a bash script.

#!/bin/bash

echo "Starting services..."
npm start &
echo "Web app expose to 8000"
go run main.go &
echo "Web app expose to 8001"

with the following config but it’s also not working.

- run:
  name: Expose services
  command: ./expose.sh
  background: true

I also tried to add & at the end of each command to run my command in background but it’s not working.

   - run:
      name: Expose services
      command: |
          npm start &
          go run main.go &
      background: true

I know that I can put each command in different steps but I would like to know if it’s possible to refactor it into one step ?

Thanks you very much.


HTTP 502 From Bintray

$
0
0

Hi,

I am getting the following when running from CircleCI:

Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.3.61.
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.61/kotlin-stdlib-1.3.61.pom’.
Could not GET ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.61/kotlin-stdlib-1.3.61.pom’. Received status code 502 from server: Bad Gateway

The build works fine locally, and there aren’t any issues reported on Bintray

Any ideas?

HTTP 502 From Bintray

$
0
0

This has seemed to resolve itself.

Trying to figure out how many user seats we need

$
0
0

We are an organization with 5 developers, but all of our projects are open source. We are mostly interested in a paid plan in order to have more builds going in parallel and also because a couple of our projects would benefit from larger build environments (e.g., more RAM for docker dependencies). So can we get by with the minimum of 3 seats, or would we need 5?

I’m also not sure how we can make use of the Open Source plan (400,000 credits/mo. for open source builds). Is it because I authorized CircleCI to see both public and private repos, even though we only use CircleCI to test public repos?

PostgreSQL - Alpine version for 11.7 - any reason it does not exist?

PostgreSQL - Alpine version for 11.7 - any reason it does not exist?

Docker image for executor with both Maven and Python

$
0
0

Hi,

What is the easiest way to obtain executor docker image with both Maven and Python?

The predefined images seem to have either one of the other.

Docker image for executor with both Java and Python

$
0
0

Hi @rafalry! The easiest way to accomplish this would be to use a custom Docker image, since you’ll have fine-grain control over the version of each that is installed, and be able to bundle in any other package dependencies with it for less complex configurations :slight_smile: Otherwise, manually installing one package or another would be necessary.


Where is the Insights in the new UI?

$
0
0

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.

Environment variable expansion in Windows bash shell

$
0
0
version: 2.1

orbs:
  win: circleci/windows@2.4.0

jobs:
  build:
    executor: win/default
    
    environment:
      THIRDPARTY_HOME: C:/Users/circleci/thirdparty
      CMAKE_HOME: ${THIRDPARTY_HOME}/cmake-3.16.4-win64-x64
      CMAKE_BIN: ${CMAKE_HOME}/bin/cmake.exe

    steps:
       - run:
             shell: bash.exe
             command: ${CMAKE_BIN}

results in ${CMAKE_HOME}/bin/cmake.exe unknown file or dirctory, does CircleCI support env variable expansion in Wndows bash shell?

Yarn cached install slow

$
0
0

Ran into the same issue and after a long while of debugging was able to isolate this to two issues which you may also be facing.

Through using the --verbose flag on the yarn install I realized most of the time was spent fetching packages, indicating the cache wasn’t loading correctly. The solution to this first issue was due to installing yarn after restoring the cache. We were installing a version of yarn that used a different cache directory, so moving the yarn install to before the restore_cache step helped here.

But after this, the timing did not decrease significantly. Now we realized that a majority of the install time was spent linking dependencies. This was because we were not caching the node_modules (and if you utilize yarn workspaces, the subsequent workspace node_modules link). Without caching the node_modules as well, the install still takes a lot of time on i/o operations to move the files around.

If you use yarn workspaces then you need something like:

    - save_cache:
        key: <key>
        paths:
          - node_modules
          - workspace1/node_modules
          - workspace2/node_modules

Hope this helps!

Rollout of pipelines functionality

$
0
0

Hi @marc

Thank you for the detailed reply, and apologies my late response.

I was trying to highlight that a breaking change should be reflected in the version number – config that worked in version 2 broke in version 2.1, so following semver, the new version should have been 3.

Or is the major part of the config version tied to the overall CircleCI version?

In response to your questions…

Did you get a similar error message?

Yes, that was like the error message I received. It was fixed by replacing the : with _.

Do you have any thoughts on what error message that we could show to make it clear to you what the problem is?

It would be more useful if the line number where the error occurs is displayed – as it stands, I have no idea which job has the invalid name.

True, I can (and did) look at the regex, but that’s only part of the solution: I need to be able to go straight to the source of the error.

Thanks again for your reply.

kind regards

Matt

Not copied hidden files on local build by circleci cli

$
0
0

This doesn’t work, you still get no such file or directory for /tmp/_circleci_local_build_repo/, if you instead mkdir -p the whole path /tmp/_circleci_local_build_repo/ then you get a repo not found error from the git ls-files instead.

Circleci gives me Are you sure you want to continue connecting (yes/no/[fingerprint])? when trying to pull from another private repo during terraform init

Environment variable expansion in Windows bash shell

$
0
0

Hi!

Welcome to CircleCI Discuss! Currently the config.yml does not support nested environment variables. I could not find any ideas about this on https://ideas.circleci.com/ideas/ so I highly recommend you make a post there! This is something that I am sure many people would find useful.


Install a package from Private Github repo

$
0
0

Hi,

I’m looking for a way to use yarn add private github_repo for installing it on Circle CI.
I’ve googled a way to do that, unfortunately, I haven’t found any clues yet.

Has anyone had an idea/experience to do that?

Using version 2

Thank you in advance

Add a GitHub App user to a restricted context

$
0
0

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.

Environment variable expansion in Windows bash shell

Schema issues when trying to use persist_to_workspace

$
0
0

Wow I feel stupid… Thanks Gordon.

"test" replaced with "****" in output

$
0
0

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.

Viewing all 14735 articles
Browse latest View live