A build can be green and still fail the first request from a real user. I was reminded of this while releasing a new version of my personal software engineering portfolio. The application had passed its local build and test checks, but production introduced conditions that the local environment had not exercised.
My previous full-stack and DevOps work with AWS EKS, Kubernetes, Argo CD and GitHub Actions has given me a useful way to think about this problem: delivery is a chain of independently verifiable steps, not a single green indicator. A successful build is evidence that one of those steps worked.
What happened during the release
The new portfolio included a publishing workspace backed by Firebase. The local verification covered the application and emulator-based publishing workflow. A successful local run, however, did not establish that the hosted application could load its production dependencies or obtain its real cloud credentials.
The first production build was stopped by a configuration validation check. After correcting the environment configuration, the hosting platform reported a successful deployment. Opening the public homepage still returned HTTP 500.
The runtime log reported ERR_REQUIRE_ESM while loading a dependency in the Firebase Admin authentication chain. The build had succeeded, but the server could not load that module graph when it handled the request. After applying a runtime compatibility setting and redeploying, I could open the application again.
A second failure then appeared: Google sign-in succeeded in the browser, but the application's server-side session endpoint returned HTTP 503. That distinction mattered. The browser could establish the user's identity; it did not prove that the backend could authenticate to its cloud services.
I found a transcription mismatch in the configured workload identity identifiers. After replacing them with the exact values copied from the hosting platform, I was able to enter the writing workspace and open the new-note editor. That sequence is evidence of recovery for the observed login path, not proof that every production operation or future credential refresh works.
Separate the release into four verification gates
I find it helpful to ask four separate questions during a release:
| Gate | Question | Useful evidence |
|---|---|---|
| Build | Can the reviewed source produce an artifact? | Clean install, compilation, tests and a known commit |
| Runtime | Can the deployed artifact execute? | Actual runtime version, cold-start logs and HTTP responses |
| Identity and dependencies | Can the service reach its required resources? | Verified identity claims, scoped IAM and real dependency operations |
| User journey | Can the intended user finish the task? | End-to-end checks through the deployed application |
An emulator is valuable for testing behavior and failure cases, but it is not evidence that a real cloud trust relationship is configured correctly. Similarly, a successful health endpoint is useful, but it is not a substitute for checking a critical application workflow.
Reproduce the runtime, not just the source
When a dependency loads locally and fails after deployment, I start by comparing environments. I check the runtime major version, package-manager version, lockfile, module resolution and the actual packaged server artifact. The relevant versions are those used by the running deployment, not just the versions selected in a dashboard.
For a Node.js project, a useful starting point is:
node --version
npm --version
npm ci
npm ls firebase-admin jwks-rsa jose
npm run buildThese commands establish the installed dependency tree and a local build baseline. They do not reproduce the hosting platform by themselves. I would also inspect its build log and function runtime, then make a real request to a representative server-rendered route.
A broad Node.js engine range can allow an unexpected major upgrade on a managed platform. I prefer declaring the supported major explicitly and keeping the local environment, CI and hosting configuration aligned. Vercel documents how its Node.js version selection works. The Node.js module documentation is also a better starting point for diagnosing CommonJS and ESM compatibility than blindly changing dependencies or disabling checks.
A compatibility setting can be a useful recovery action. I would not call it a permanent fix without proving that the resulting dependency and runtime combination is supported and repeatable.
Treat service identity as a separate system
There are two distinct identities in an authenticated cloud application: the person signing in and the workload acting on that person's request. They can succeed or fail independently.
With workload identity federation, an external runtime exchanges an identity assertion for temporary cloud credentials. This avoids keeping a long-lived service account key in the application. The trust policy must still match the intended issuer, audience, workload and environment, and the resulting service identity needs the permissions required by the application.
In my case, using exact identifiers copied from the platform was more reliable than transcribing them from an image. I also want the policy to fail closed when the workload does not match. A broad IAM grant might hide a configuration mistake, but it would undermine the reason for using a restricted identity in the first place.
For reference, the Vercel OIDC claim reference documents the workload claims, and Google Cloud's federation best practices describe how to restrict external trust. Never put raw tokens, session cookies or credentials into diagnostic logs.
Apply the same thinking to Kubernetes and GitOps
This reasoning is not limited to serverless deployments. In an EKS-based application, a successful image build and a synchronized GitOps application are important signals, but I still want evidence that the new workload is ready and that the service works through its intended network path.
For example, the following read-only commands illustrate the initial checks for a hypothetical deployment named web in a namespace named example:
kubectl -n example rollout status deployment/web --timeout=120s
kubectl -n example get pods
kubectl -n example get serviceI would then test the relevant application endpoint through its normal ingress or load balancer. Kubernetes readiness probes help decide whether a container should receive traffic, and Argo CD resource health provides additional information about deployed resources. Neither automatically verifies an entire business workflow.
These commands and examples are a proposed general workflow, not a record of commands executed against a former employer's infrastructure.
A practical release checklist
Before I call a release ready, I want the following questions answered:
Provenance: Which commit and dependency lockfile produced the deployed artifact?
Parity: Which runtime and package-manager versions actually built and run it?
Public smoke test: Does a fresh request to the real application return the expected status and content?
Private workflow: Does an authorized user complete the critical workflow, and is unauthorized access still denied?
External dependencies: Do real reads and an approved test write work using the intended restricted identity?
Recovery: Can the previous version be restored without confusing application rollback with data recovery?
For a public HTTP check, I can start with the following example and replace the domain with the deployment being reviewed:
curl -sS -o /dev/null -w "HTTP %{http_code}\n" https://example.com/I would check the expected response body and relevant application state as well. If the service handles private content, production smoke tests should use approved test data and avoid accidentally publishing it.
The lesson I am taking forward
A successful deployment should be a conclusion supported by multiple pieces of evidence. Build checks, runtime checks, cloud identity and real user journeys each answer different questions.
The portfolio's observed login recovery is a useful example of why these boundaries matter. It is not a benchmark, a comprehensive production audit or a guarantee of future availability. In particular, the observed recovery does not establish long-running credential renewal, production backup restoration or every publishing operation. Those remain distinct checks.
The next time I design or improve a delivery pipeline, I want its release criteria to make that distinction explicit: not merely that the software was delivered, but that the intended workflow has been verified.
Sources
- Vercel: Supported Node.js versions Managed Node.js version selection and package.json engine precedence.
- Node.js: CommonJS modules and loading ECMAScript modules using require() Module interoperability and the constraints of requiring ESM.
- Vercel: OIDC Federation Reference Issuer, audience, subject and workload identity claims.
- Google Cloud: Best practices for Workload Identity Federation Restricted federated trust and stable identifying attributes.
- Kubernetes: Deployments Deployment rollout status and progression.
- Kubernetes: Liveness, Readiness, and Startup Probes Readiness as evidence of whether traffic should reach a workload.
- Argo CD: Resource Health Health assessments for Kubernetes resources and applications.