Skip to content

Commit

Permalink
Merge branch 'master' into machine-runner-3-outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
rosieyohannan authored Dec 11, 2024
2 parents 338ad58 + 6017124 commit e251eff
Show file tree
Hide file tree
Showing 162 changed files with 318 additions and 424 deletions.
3 changes: 1 addition & 2 deletions jekyll/_cci2/about-circleci.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= CircleCI overview
:page-layout: classic-docs
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/add-ssh-key.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Add additional SSH keys to CircleCI
:page-layout: classic-docs
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/android-machine-image.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Android images with the machine executor
:page-layout: classic-docs
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/api-developers-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= CircleCI API developer's guide
:page-description: API guide for internal and external CircleCI developers
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/api-intro.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= API v2 introduction
:description: Introduction to the CircleCI API
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/artifacts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Storing build artifacts
:page-description: Example of uploading artifacts created during a build
Expand Down
12 changes: 6 additions & 6 deletions jekyll/_cci2/audit-logs.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
description: "This document describes the ways CircleCI customers can access their audit logs."
version:
- Cloud
- Server v4.x
- Server v3.x
contentTags:
platform:
- Cloud
- Server v4+
---
= Audit logs
:page-description: "This document describes the ways CircleCI customers can access their audit logs."
:page-layout: classic-docs
:page-liquid:
:icons: font
Expand All @@ -20,7 +20,7 @@ If you have administrator permissions for your organization, you can access the
. Select **Organization Settings** in the web app sidebar.
. Select **Security** from the menu.
. Scroll down to the **Audit Log** section and specify a date range.
. Click **Request audit logs** to download audit logs as a CSV file. Audit log fields with nested data contain JSON blobs.
. Select **Request audit logs** to download audit logs as a CSV file. Audit log fields with nested data contain JSON blobs.

NOTE: In some situations, the internal machinery may generate duplicate events in the audit logs. The `id` field of the downloaded logs is unique per event and can be used to identify duplicate entries.

Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/authorize-google-cloud-sdk.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server 4.x
- Server 3.x
- Server v4+
---
= Authorize Google Cloud SDK
:description: How to authorize the Google Cloud SDK
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
contentTags:
platform:
- Cloud
- Server
- Cloud
- Server v4+
---
= Automate LLM evaluation testing with the CircleCI Evals orb
:description: How to use CircleCI Evals orb.
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/benefits-of-circleci.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Benefits of CircleCI
:page-layout: classic-docs
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/browser-testing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Browser testing
:page-description: Browser Testing on CircleCI
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/building-docker-images.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Run Docker commands
:page-description: How to build Docker images using the Docker execution environment
Expand Down
5 changes: 2 additions & 3 deletions jekyll/_cci2/caching-strategy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Caching strategies
:page-description: A guide to the various caching strategies available for managing dependency caches in CircleCI.
Expand Down Expand Up @@ -95,7 +94,7 @@ If you find that a cache is not restored, see link:https://support.circleci.com/
[#cache-unused-or-superfluous-dependencies]
=== Cache unused or superfluous dependencies

Depending on what language and package management system you are using, you may be able to leverage tools that clear or "`prune`" unnecessary dependencies.
Depending on what language and package management system you are using, you may be able to leverage tools that clear or _prune_ unnecessary dependencies.

For example, the node-prune package removes unnecessary files (Markdown, TypeScript files, etc.) from `node_modules`.

Expand Down
9 changes: 4 additions & 5 deletions jekyll/_cci2/caching.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Caching dependencies
:page-description: This document is a guide to caching dependencies in CircleCI pipelines.
Expand Down Expand Up @@ -218,14 +217,14 @@ Consider a workflow of 3 jobs, where Job3 depends on Job1 and Job2: `+{Job1, Job

In a run of the workflow, Job3 may use the cache written by Job1 _or_ Job2. Since caches are immutable, this would be whichever job saved its cache first.

This is usually undesirable, because the results are not deterministic. Part of the result depends on chance.
A caching scenario like this is usually undesirable, because the results are not deterministic. Part of the result depends on chance.

You can make this workflow deterministic by changing the job dependencies. For example, make Job1 and Job2 write to different caches, and Job3 loads from only one. Or ensure there can be only one ordering: `+Job1 -> Job2 -> Job3+`.

[#caching-race-condition-example-2]
=== Caching race condition example 2

There are more complex cases where jobs can save using a dynamic key like {% raw %}`node-cache-{{ checksum "package-lock.json" }}`{% endraw %} and restore using a partial key match like `node-cache-`.
A more complex caching example could be using a dynamic key, for example, {% raw %}`node-cache-{{ checksum "package-lock.json" }}`{% endraw %} and restoring using a partial key match, for example, `node-cache-`.

A race condition is still possible, but the details may change. For instance, the downstream job uses the cache from the upstream job that ran last.

Expand All @@ -234,7 +233,7 @@ Another race condition is possible when sharing caches between jobs. Consider a
[#using-caching-in-monorepos]
== Using caching in monorepos

There are many different approaches to utilizing caching in monorepos. The following approach can be used whenever you need to manage a shared cache based on multiple files in different parts of your monorepo.
The following example is one approach to managing a shared cache based on multiple files in different parts of your monorepo.

[#creating-and-building-a-concatenated-package-lock-file]
=== Creating and building a concatenated `package-lock` file
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/circleci-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ description: "Listing of available Docker images maintained by CircleCI"
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---


Expand Down
4 changes: 2 additions & 2 deletions jekyll/_cci2/code-coverage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+

---
= Generate code coverage metrics
:page-description: Generate code coverage metrics for different languages.
Expand Down
4 changes: 2 additions & 2 deletions jekyll/_cci2/collect-test-data.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+

sectionTags:
javascript:
- "#jest"
Expand Down
4 changes: 2 additions & 2 deletions jekyll/_cci2/concepts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+

---
= Concepts
:description: CircleCI concepts
Expand Down
4 changes: 2 additions & 2 deletions jekyll/_cci2/concurrency.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+

---
= Concurrency
:page-layout: classic-docs
Expand Down
4 changes: 2 additions & 2 deletions jekyll/_cci2/config-editor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+

---
= Using the CircleCI in-app configuration editor
:page-description: Docs page on In-app configuration editor use and features
Expand Down
5 changes: 2 additions & 3 deletions jekyll/_cci2/config-intro.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Configuration introduction
:page-layout: classic-docs
Expand Down Expand Up @@ -316,7 +315,7 @@ To approve the job, click the thumbs up icon to the right of the _Hold-for-Appro

Now you will see a tick in the Actions column and your jobs should complete.

Click on the _Now-Complete_ job, then the _Approval Complete_ step. You should see the output of your command: `The work is now complete`.
Select the _Now-Complete_ job, then the _Approval Complete_ step. You should see the output of your command: `The work is now complete`.

image::config-approval-complete.png[Approval complete]

Expand Down
2 changes: 1 addition & 1 deletion jekyll/_cci2/config-policies-for-self-hosted-runner.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Learn how to write a policy to restrict which projects can run jobs
contentTags:
platform:
- Cloud
- Server v4.x
- Server v4+
---
= Config policies for self-hosted runner
:page-layout: classic-docs
Expand Down
8 changes: 4 additions & 4 deletions jekyll/_cci2/config-policy-management-overview.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Config policies for CircleCI project configurations.
contentTags:
platform:
- Cloud
- Server v4.x
- Server v4+
---
= Config policies overview
:page-layout: classic-docs
Expand Down Expand Up @@ -173,13 +173,13 @@ In OPA, rules can produce any type of output. At CircleCI, rules that produce vi
* String array
* Map of string to string

This is because rule violations must produce error messages that individual contributors and SecOps can act upon.
This restriction is in place so that rule violations produce error messages that individual contributors and SecOps can act upon.
Helper rules that produce differently typed outputs can still be defined, but rules that will be considered when making CircleCI decisions must have the output types specified above. For more information see the <<#enablement>> section below.

[#evaluation]
===== Evaluation

This is how the decision engine determines if a config violates the given policy. The evaluation defines the name and ID of the rule, checks a condition, and returns a user-friendly string describing the violation. Rule evaluations include the **rule name** and an **optional rule ID**. The rule name will be used to enable and set the enforcement level for a rule.
Evaluation is how the decision engine determines if a config violates the given policy. The evaluation defines the name and ID of the rule, checks a condition, and returns a user-friendly string describing the violation. Rule evaluations include the **rule name** and an **optional rule ID**. The rule name will be used to enable and set the enforcement level for a rule.

[source,rego]
----
Expand Down Expand Up @@ -426,7 +426,7 @@ workflows:

In the above example, the policy is bypassed and will **not trigger**. The policy inspects `jobs` and does not find a `resource_class == "large"`.

This is problematic because once the configuration is compiled, the job `test` will have a `resource_class == "large"`.
This example is problematic because once the configuration is compiled, the job `test` will have a `resource_class == "large"`.

Another way this policy could be unintentionally bypassed is by using parameters. Consider the following configuration, which uses a parameter to set the resource class for an executor:

Expand Down
2 changes: 1 addition & 1 deletion jekyll/_cci2/config-policy-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Open preview of config policies for CircleCI. Reference page for fu
contentTags:
platform:
- Cloud
- Server v4.x
- Server v4+
---
= Config policy reference
:page-layout: classic-docs
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/configuration-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ readtime: false
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
sectionTags:
config-version-2:
- "#version"
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/contexts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Using contexts
:page-description: Secured, cross-project resources
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/convenience-images-support-policy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= CircleCI convenience images support policy
:page-layout: classic-docs
Expand Down
3 changes: 1 addition & 2 deletions jekyll/_cci2/create-an-orb.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
contentTags:
platform:
- Cloud
- Server v4.x
- Server v3.x
- Server v4+
---
= Create an orb
:page-layout: classic-docs
Expand Down
12 changes: 6 additions & 6 deletions jekyll/_cci2/create-and-manage-config-policies.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Learn how to write and manage config policies for CircleCI project
contentTags:
platform:
- Cloud
- Server v4.x
- Server v4+
---
= Create and manage config policies
:page-layout: classic-docs
Expand Down Expand Up @@ -84,11 +84,11 @@ For the config policies pipeline recommended in this guide you will need to secu

You can do this using a context. For more information about setting up and using contexts to securely manage environment variables see the xref:contexts#[Using contexts] page. You might already have a context set up for this or you might want to create a new one. For this example the context name `my-context` is used.

. In the CircleCI web app, select **Organization settings > Contexts**
. Click **Create Context** and enter a name for your context, for example `my-context`
. Click your new context name in the list to access options
. Click **Add Environment Variable** and enter `CIRCLECI_CLI_TOKEN` for the environment variable name, and your personal API token string for the value (For more information about this see the xref:local-cli#configure-the-cli[Installing the CircleCI local CLI] page). Then click **Add Environment Variable** again to complete.
. Click **Add Environment Variable** and enter `ORG_ID` for the environment variable name, and your organization ID for the value.
. In the CircleCI web app, select **Organization settings > Contexts**.
. Select **Create Context** and enter a name for your context, for example `my-context`.
. Select your new context name in the list to access options.
. Select **Add Environment Variable** and enter `CIRCLECI_CLI_TOKEN` for the environment variable name, and your personal API token string for the value (For more information about this see the xref:local-cli#configure-the-cli[Installing the CircleCI local CLI] page). Then click **Add Environment Variable** again to complete.
. Select **Add Environment Variable** and enter `ORG_ID` for the environment variable name, and your organization ID for the value.
+
{% include snippets/find-organization-id.adoc %}

Expand Down
Loading

0 comments on commit e251eff

Please sign in to comment.