Skip to content

💣 Bug: Apply failed => some error(s) occurred during plugins apply process #1298

Closed

Description

@bbkxm

What Happened?

./dtm apply -y

2022-12-04 23:12:04 ℹ [INFO]  Apply started.
2022-12-04 23:12:05 ℹ [INFO]  Using local backend. State file: devstream.state.
2022-12-04 23:12:05 ℹ [INFO]  Tool (repo-scaffolding/golang-github) found in config but doesn't exist in the state, will be created.
2022-12-04 23:12:05 ℹ [INFO]  Tool (githubactions-golang/default) found in config but doesn't exist in the state, will be created.
2022-12-04 23:12:05 ℹ [INFO]  Start executing the plan.
2022-12-04 23:12:05 ℹ [INFO]  Changes count: 2.
2022-12-04 23:12:05 ℹ [INFO]  -------------------- [  Processing progress: 1/2.  ] --------------------
2022-12-04 23:12:05 ℹ [INFO]  Processing: (repo-scaffolding/golang-github) -> Create ...
2022-12-04 23:12:05 ℹ [INFO]  github start to download repoTemplate...
2022-12-04 23:12:07 ⚠ [WARN]  repo render file failed: template: go-webapp-devstream-demo:19:18: executing "go-webapp-devstream-demo" at <.imageRepo>: map has no entry for key "imageRepo"
2022-12-04 23:12:07 ⚠ [WARN]  repoScaffolding render repoTemplate failed=> template: go-webapp-devstream-demo:19:18: executing "go-webapp-devstream-demo" at <.imageRepo>: map has no entry for key "imageRepo"
2022-12-04 23:12:07 !! [ERROR]  repo-scaffolding/golang-github Create failed with error: render RepoTemplate files failed
2022-12-04 23:12:07 ℹ [INFO]  -------------------- [  Processing aborted.  ] --------------------
2022-12-04 23:12:07 !! [ERROR]  Errors Map: key(repo-scaffolding/golang-github/Create) -> value(render RepoTemplate files failed)
2022-12-04 23:12:07 !! [ERROR]  Apply failed => some error(s) occurred during plugins apply process.

How to Reproduce?

./dtm show config -t quickstart > config.yaml
sed -i "s@YOUR_GITHUB_USERNAME_CASE_SENSITIVE@${GITHUB_USER}@g" config.yaml
sed -i "s@YOUR_DOCKER_USERNAME@${DOCKERHUB_USERNAME}@g" config.yaml
./dtm init
./dtm apply -y

Anything else

DevStream Version 0.10.1
Linux manjaro-xfce-21.3.7-220816-linux515

DevStream Version

latest

Activity

  1. added
    bugSomething isn't working
    on Dec 4, 2022
  2. daniel-hutao commented on Dec 5, 2022

    @daniel-hutao
    Member

    @bbkxm Could you please show me the rendered config.yaml(after sed)?

  3. karasart commented on Dec 5, 2022

    @karasart
    config:
      state: # state config, backend can be local, s3 or k8s
        backend: local
        options:
          stateFile: devstream.state
    
    tools:
    - name: repo-scaffolding
      instanceID: golang-github
      options:
        destinationRepo:
          owner: karasart
          org: ""
          repo: go-webapp-devstream-demo
          branch: main
          repoType: github
        sourceRepo:
          org: devstream-io
          repo: dtm-scaffolding-golang
          repoType: github
        vars:
          ImageRepo: karasart/devstream-test
    - name: githubactions-golang
      instanceID: default
      dependsOn: ["repo-scaffolding.golang-github"]
      options:
        owner: karasart
        repo: go-webapp-devstream-demo
        language:
          name: go
          version: "1.18"
        branch: main
        build:
          enable: True
        test:
          enable: True
          coverage:
            enable: True
        docker:
          enable: False
    
  4. bbkxm commented on Dec 5, 2022

    @bbkxm
    Author

    @bbkxm Could you please show me the rendered config.yaml(after sed)?

    config:
      state: # state config, backend can be local, s3 or k8s
        backend: local
        options:
          stateFile: devstream.state
    
    tools:
    - name: repo-scaffolding
      instanceID: golang-github
      options:
        destinationRepo:
          owner: bbkxm
          org: ""
          repo: go-webapp-devstream-demo
          branch: main
          repoType: github
        sourceRepo:
          org: devstream-io
          repo: dtm-scaffolding-golang
          repoType: github
        vars:
          ImageRepo: bbkxm/go-webapp-devstream-demo
    - name: githubactions-golang
      instanceID: default
      dependsOn: ["repo-scaffolding.golang-github"]
      options:
        owner: bbkxm
        repo: go-webapp-devstream-demo
        language:
          name: go
          version: "1.18"
        branch: main
        build:
          enable: True
        test:
          enable: True
          coverage:
            enable: True
        docker:
          enable: False
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions