Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DevEx 2.0 #1

Open
8 tasks
jeffmccune opened this issue Jul 18, 2019 · 3 comments
Open
8 tasks

DevEx 2.0 #1

jeffmccune opened this issue Jul 18, 2019 · 3 comments

Comments

@jeffmccune
Copy link
Member

jeffmccune commented Jul 18, 2019

TODO

  • Define a pipeline with a lint job
  • Execute the lint job locally. Interface: make check
  • Execute the lint job in CI.
  • Add a second job to the pipeline. Integration test?
  • Execute the integration job locally.
  • Execute the integration job in CI.
  • Document steps
  • Document how secrets are managed.

Dependencies

As minimal as possible. Goal:

  • make
  • gitlab-runner
  • Docker

References

@jeffmccune
Copy link
Member Author

jeffmccune commented Jul 18, 2019

Issue: gitlab-runner locally does not build uncommitted changes. See 1683

gitlab-runner exec docker hello
Runtime platform                                    arch=amd64 os=darwin pid=76831 revision=0e5417a3 version=12.0.1
WARNING: You most probably have uncommitted changes.
WARNING: These changes will not be tested.
Running with gitlab-runner 12.0.1 (0e5417a3)
Using Docker executor with image gcr.io/cloud-foundation-cicd/cft/lint:2.4.0 ...
Pulling docker image gcr.io/cloud-foundation-cicd/cft/lint:2.4.0 ...
Using docker image sha256:951b518f7c952c900f56c4628d1bf7f4d073d0db67c04fd89e37f138a4ced8e4 for gcr.io/cloud-foundation-cicd/cft/lint:2.4.0 ...
Running on runner--project-0-concurrent-0 via jmccune-macbookpro.roam.corp.google.com...
Fetching changes...
Initialized empty Git repository in /builds/project-0/.git/
Created fresh repository.
From /Users/jmccune/projects/gcp/cft/terraform-google-pubsub
 * [new branch]      devex2.0/runner -> origin/devex2.0/runner
 * [new branch]      master          -> origin/master
 * [new tag]         v0.1.0          -> v0.1.0
 * [new tag]         v0.2.0          -> v0.2.0
Checking out 8f4dfcfd as devex2.0/runner...

Skipping Git submodules setup
$ test/hello_world
/bin/bash: line 31: test/hello_world: No such file or directory
ERROR: Job failed: exit code 1
FATAL: exit code 1

@jeffmccune
Copy link
Member Author

Compatiblity table of what gitlab-runner exec can and cannot do is at:

@jeffmccune
Copy link
Member Author

Explore data only containers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant